/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGAnimatedEnumerationBase.cpp | 35 #include "bindings/core/v8/ExceptionState.h" 45 void SVGAnimatedEnumerationBase::setBaseVal(unsigned short value, ExceptionState& exceptionState) 48 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only."); 52 baseValue()->setValue(value, exceptionState); 53 if (exceptionState.hadException())
|
SVGStringListTearOff.h | 56 void clear(ExceptionState& exceptionState) 59 exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only."); 67 String initialize(const String& item, ExceptionState& exceptionState) 70 exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only."); 80 String getItem(unsigned long index, ExceptionState& exceptionState) 82 return target()->getItem(index, exceptionState); 85 String insertItemBefore(const String& item, unsigned long index, ExceptionState& exceptionState [all...] |
SVGAngleTearOff.cpp | 34 #include "bindings/core/v8/ExceptionState.h" 49 void SVGAngleTearOff::setValue(float value, ExceptionState& exceptionState) 52 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only."); 60 void SVGAngleTearOff::setValueInSpecifiedUnits(float value, ExceptionState& exceptionState) 63 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only."); 71 void SVGAngleTearOff::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState& exceptionState) 74 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.") [all...] |
SVGRectTearOff.cpp | 35 #include "bindings/core/v8/ExceptionState.h" 45 void SVGRectTearOff::setX(float f, ExceptionState& exceptionState) 48 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only."); 56 void SVGRectTearOff::setY(float f, ExceptionState& exceptionState) 59 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only."); 67 void SVGRectTearOff::setWidth(float f, ExceptionState& exceptionState) 70 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.") [all...] |
SVGTransformTearOff.cpp | 34 #include "bindings/core/v8/ExceptionState.h" 57 void SVGTransformTearOff::setMatrix(PassRefPtr<SVGMatrixTearOff> matrix, ExceptionState& exceptionState) 60 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only."); 68 void SVGTransformTearOff::setTranslate(float tx, float ty, ExceptionState& exceptionState) 71 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only."); 79 void SVGTransformTearOff::setScale(float sx, float sy, ExceptionState& exceptionState) 82 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.") [all...] |
SVGPreserveAspectRatioTearOff.cpp | 35 #include "bindings/core/v8/ExceptionState.h" 40 void SVGPreserveAspectRatioTearOff::setAlign(unsigned short align, ExceptionState& exceptionState) 43 exceptionState.throwDOMException(NotSupportedError, "The alignment provided is invalid."); 47 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only."); 54 void SVGPreserveAspectRatioTearOff::setMeetOrSlice(unsigned short meetOrSlice, ExceptionState& exceptionState) 57 exceptionState.throwDOMException(NotSupportedError, "The meetOrSlice provided is invalid."); 61 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
|
/external/chromium_org/third_party/WebKit/Source/core/storage/ |
Storage.cpp | 29 #include "bindings/core/v8/ExceptionState.h" 51 String Storage::anonymousIndexedGetter(unsigned index, ExceptionState& exceptionState) 53 return anonymousNamedGetter(AtomicString::number(index), exceptionState); 56 String Storage::anonymousNamedGetter(const AtomicString& name, ExceptionState& exceptionState) 58 bool found = contains(name, exceptionState); 59 if (exceptionState.hadException() || !found) 61 String result = getItem(name, exceptionState); 62 if (exceptionState.hadException() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/xml/ |
XPathEvaluator.cpp | 30 #include "bindings/core/v8/ExceptionState.h" 42 PassRefPtrWillBeRawPtr<XPathExpression> XPathEvaluator::createExpression(const String& expression, PassRefPtrWillBeRawPtr<XPathNSResolver> resolver, ExceptionState& exceptionState) 44 return XPathExpression::createExpression(expression, resolver, exceptionState); 53 PassRefPtrWillBeRawPtr<XPathNSResolver> resolver, unsigned short type, XPathResult* result, ExceptionState& exceptionState) 56 exceptionState.throwDOMException(NotSupportedError, "The context node provided is null."); 61 exceptionState.throwDOMException(NotSupportedError, "The node provided is '" + contextNode->nodeName() + "', which is not a valid context node type."); 65 RefPtrWillBeRawPtr<XPathExpression> expr = createExpression(expression, resolver, exceptionState); 66 if (exceptionState.hadException() [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/ |
FileEntrySync.cpp | 34 #include "bindings/core/v8/ExceptionState.h" 45 PassRefPtrWillBeRawPtr<File> FileEntrySync::file(ExceptionState& exceptionState) 47 return filesystem()->createFile(this, exceptionState); 50 FileWriterSync* FileEntrySync::createWriter(ExceptionState& exceptionState) 52 return filesystem()->createWriter(this, exceptionState);
|
/external/chromium_org/third_party/WebKit/Source/core/dom/custom/ |
CustomElementException.cpp | 34 #include "bindings/core/v8/ExceptionState.h" 44 void CustomElementException::throwException(Reason reason, const AtomicString& type, ExceptionState& exceptionState) 48 exceptionState.throwDOMException(NotSupportedError, preamble(type) + "Elements cannot be registered from extensions."); 52 exceptionState.throwDOMException(NotSupportedError, preamble(type) + "Prototype constructor property is not configurable."); 56 exceptionState.throwDOMException(InvalidStateError, preamble(type) + "The context is no longer valid."); 60 exceptionState.throwDOMException(InvalidStateError, preamble(type) + "The context is no longer valid."); 64 exceptionState.throwDOMException(InvalidStateError, preamble(type) + "The context is no longer valid."); 68 exceptionState.throwDOMException(NotSupportedError, preamble(type) + "The tag name specified in 'extends' is not a valid tag name."); 72 exceptionState.throwDOMException(NotSupportedError, preamble(type) + "The tag name specified in 'extends' is a cu (…) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
DOMWindowBase64.cpp | 36 #include "bindings/core/v8/ExceptionState.h" 43 String DOMWindowBase64::btoa(const String& stringToEncode, ExceptionState& exceptionState) 49 exceptionState.throwDOMException(InvalidCharacterError, "The string to be encoded contains characters outside of the Latin1 range."); 56 String DOMWindowBase64::atob(const String& encodedString, ExceptionState& exceptionState) 62 exceptionState.throwDOMException(InvalidCharacterError, "The string to be decoded contains characters outside of the Latin1 range."); 67 exceptionState.throwDOMException(InvalidCharacterError, "The string to be decoded is not correctly encoded.");
|
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/custom/ |
V8HTMLOptionsCollectionCustom.cpp | 34 #include "bindings/core/v8/ExceptionState.h" 48 ExceptionState exceptionState(ExceptionState::ExecutionContext, "add", "HTMLOptionsCollection", info.Holder(), info.GetIsolate()); 50 exceptionState.throwTypeError("The element provided was not an HTMLOptionElement."); 56 impl->add(option, exceptionState); 58 int index = toInt32(info[1], exceptionState); 59 if (exceptionState.throwIfNeeded()) 62 impl->add(option, index, exceptionState); 66 exceptionState.throwIfNeeded() [all...] |
V8FileCustom.cpp | 34 #include "bindings/core/v8/ExceptionState.h" 41 ExceptionState exceptionState(ExceptionState::ConstructionContext, "File", info.Holder(), info.GetIsolate()); 44 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length())); 45 exceptionState.throwIfNeeded(); 51 exceptionState.throwTypeError(ExceptionMessages::argumentNullOrIncorrectType(1, "Array")); 52 exceptionState.throwIfNeeded(); 61 exceptionState.throwTypeError("The 3rd argument is not of type Object."); 62 exceptionState.throwIfNeeded() [all...] |
V8ElementCustom.cpp | 35 #include "bindings/core/v8/ExceptionState.h" 50 ExceptionState exceptionState(ExceptionState::SetterContext, "scrollLeft", "Element", info.Holder(), info.GetIsolate()); 55 impl->setScrollLeft(scrollOptionsHorizontal, exceptionState); 56 exceptionState.throwIfNeeded(); 60 TONATIVE_VOID_EXCEPTIONSTATE(float, position, toFloat(value, exceptionState), exceptionState); 66 ExceptionState exceptionState(ExceptionState::SetterContext, "scrollTop", "Element", info.Holder(), info.GetIsolate()) [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/ |
PostMessage.h | 8 #include "bindings/core/v8/ExceptionState.h" 24 ExceptionState exceptionState(ExceptionState::ExecutionContext, "postMessage", interfaceName, info.Holder(), info.GetIsolate()); 29 if (!SerializedScriptValue::extractTransferables(info[transferablesArgIndex], transferablesArgIndex, ports, arrayBuffers, exceptionState, info.GetIsolate())) { 30 exceptionState.throwIfNeeded(); 34 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &ports, &arrayBuffers, exceptionState, info.GetIsolate()); 35 if (exceptionState.throwIfNeeded()) 37 // FIXME: Only pass context/exceptionState if instance really requires it. 39 instance->postMessage(context, message.release(), &ports, exceptionState); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/fileapi/ |
FileReaderSync.cpp | 34 #include "bindings/core/v8/ExceptionState.h" 48 PassRefPtr<ArrayBuffer> FileReaderSync::readAsArrayBuffer(ExecutionContext* executionContext, Blob* blob, ExceptionState& exceptionState) 51 exceptionState.throwDOMException(NotFoundError, FileError::notFoundErrorMessage); 56 startLoading(executionContext, loader, *blob, exceptionState); 61 String FileReaderSync::readAsBinaryString(ExecutionContext* executionContext, Blob* blob, ExceptionState& exceptionState) 64 exceptionState.throwDOMException(NotFoundError, FileError::notFoundErrorMessage); 69 startLoading(executionContext, loader, *blob, exceptionState); 73 String FileReaderSync::readAsText(ExecutionContext* executionContext, Blob* blob, const String& encoding, ExceptionState& exceptionState [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/modules/v8/custom/ |
V8CryptoCustom.cpp | 29 #include "bindings/core/v8/ExceptionState.h" 40 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getRandomValues", "Crypto", info.Holder(), info.GetIsolate()); 42 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length())); 43 exceptionState.throwIfNeeded(); 49 exceptionState.throwTypeError("First argument is not an ArrayBufferView"); 55 crypto->getRandomValues(arrayBufferView, exceptionState); 58 if (exceptionState.throwIfNeeded())
|
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/ |
IDBIndex.cpp | 29 #include "bindings/core/v8/ExceptionState.h" 73 IDBRequest* IDBIndex::openCursor(ScriptState* scriptState, const ScriptValue& range, const String& directionString, ExceptionState& exceptionState) 77 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::indexDeletedErrorMessage); 81 exceptionState.throwDOMException(TransactionInactiveError, IDBDatabase::transactionFinishedErrorMessage); 85 exceptionState.throwDOMException(TransactionInactiveError, IDBDatabase::transactionInactiveErrorMessage); 88 WebIDBCursorDirection direction = IDBCursor::stringToDirection(directionString, exceptionState); 89 if (exceptionState.hadException()) 92 IDBKeyRange* keyRange = IDBKeyRange::fromScriptValue(scriptState->executionContext(), range, exceptionState); 93 if (exceptionState.hadException() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
DataView.cpp | 29 #include "bindings/core/v8/ExceptionState.h" 134 T DataView::getData(unsigned byteOffset, bool littleEndian, ExceptionState& exceptionState) const 137 exceptionState.throwDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range."); 149 void DataView::setData(unsigned byteOffset, T value, bool littleEndian, ExceptionState& exceptionState) 152 exceptionState.throwDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range."); 163 int8_t DataView::getInt8(unsigned byteOffset, ExceptionState& exceptionState) 165 return getData<int8_t>(byteOffset, false, exceptionState); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/workers/ |
AbstractWorker.cpp | 34 #include "bindings/core/v8/ExceptionState.h" 51 KURL AbstractWorker::resolveURL(const String& url, ExceptionState& exceptionState) 56 exceptionState.throwDOMException(SyntaxError, "'" + url + "' is not a valid URL."); 62 exceptionState.throwSecurityError("Script at '" + scriptURL.elidedString() + "' cannot be accessed from origin '" + executionContext()->securityOrigin()->toString() + "'."); 67 exceptionState.throwSecurityError("Access to the script at '" + scriptURL.elidedString() + "' is denied by the document's Content Security Policy.");
|
/external/chromium_org/third_party/WebKit/Source/modules/mediastream/ |
NavigatorMediaStream.cpp | 27 #include "bindings/core/v8/ExceptionState.h" 50 void NavigatorMediaStream::webkitGetUserMedia(Navigator& navigator, const Dictionary& options, NavigatorUserMediaSuccessCallback* successCallback, NavigatorUserMediaErrorCallback* errorCallback, ExceptionState& exceptionState) 57 exceptionState.throwDOMException(NotSupportedError, "No user media controller available; is this a detached window?"); 61 UserMediaRequest* request = UserMediaRequest::create(navigator.frame()->document(), userMedia, options, successCallback, errorCallback, exceptionState); 63 ASSERT(exceptionState.hadException()); 70 void NavigatorMediaStream::getMediaDevices(Navigator& navigator, MediaDeviceInfoCallback* callback, ExceptionState& exceptionState) 74 exceptionState.throwDOMException(NotSupportedError, "No media device controller available; is this a detached window?"); 78 MediaDevicesRequest* request = MediaDevicesRequest::create(navigator.frame()->document(), userMedia, callback, exceptionState); [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/ |
Headers.cpp | 9 #include "bindings/core/v8/ExceptionState.h" 25 Headers* Headers::create(ExceptionState&) 30 Headers* Headers::create(const Headers* init, ExceptionState& exceptionState) 36 headers->fillWith(init, exceptionState); 41 Headers* Headers::create(const Dictionary& init, ExceptionState& exceptionState) 47 headers->fillWith(init, exceptionState); 70 void Headers::append(const String& name, const String& value, ExceptionState& exceptionState) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
TreeWalker.cpp | 29 #include "bindings/core/v8/ExceptionState.h" 42 void TreeWalker::setCurrentNode(PassRefPtrWillBeRawPtr<Node> node, ExceptionState& exceptionState) 45 exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::argumentNullOrIncorrectType(1, "Node")); 57 Node* TreeWalker::parentNode(ExceptionState& exceptionState) 64 short acceptNodeResult = acceptNode(node.get(), exceptionState); 65 if (exceptionState.hadException()) 73 Node* TreeWalker::firstChild(ExceptionState& exceptionState) [all...] |
ChildNode.h | 25 static void remove(Node& node, ExceptionState& exceptionState) 27 return node.remove(exceptionState);
|
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
DOMEditor.cpp | 34 #include "bindings/core/v8/ExceptionState.h" 57 virtual bool perform(ExceptionState& exceptionState) OVERRIDE 60 return redo(exceptionState); 63 virtual bool undo(ExceptionState& exceptionState) OVERRIDE 65 m_parentNode->insertBefore(m_node.get(), m_anchorNode.get(), exceptionState); 66 return !exceptionState.hadException(); 69 virtual bool redo(ExceptionState& exceptionState) OVERRID [all...] |