HomeSort by relevance Sort by last modified time
    Searched refs:exceptionState (Results 1 - 25 of 321) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/third_party/WebKit/Source/core/svg/
SVGAnimatedEnumerationBase.cpp 35 #include "bindings/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 54 void clear(ExceptionState& exceptionState)
57 exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only.");
65 String initialize(const String& item, ExceptionState& exceptionState)
68 exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only.");
78 String getItem(unsigned long index, ExceptionState& exceptionState)
80 return target()->getItem(index, exceptionState);
83 String insertItemBefore(const String& item, unsigned long index, ExceptionState& exceptionState
    [all...]
SVGAngleTearOff.cpp 34 #include "bindings/v8/ExceptionState.h"
50 void SVGAngleTearOff::setValue(float value, ExceptionState& exceptionState)
53 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
61 void SVGAngleTearOff::setValueInSpecifiedUnits(float value, ExceptionState& exceptionState)
64 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
72 void SVGAngleTearOff::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState& exceptionState)
75 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.")
    [all...]
SVGRectTearOff.cpp 35 #include "bindings/v8/ExceptionState.h"
46 void SVGRectTearOff::setX(float f, ExceptionState& exceptionState)
49 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
57 void SVGRectTearOff::setY(float f, ExceptionState& exceptionState)
60 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
68 void SVGRectTearOff::setWidth(float f, ExceptionState& exceptionState)
71 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.")
    [all...]
SVGTransformTearOff.cpp 34 #include "bindings/v8/ExceptionState.h"
58 void SVGTransformTearOff::setMatrix(PassRefPtr<SVGMatrixTearOff> matrix, ExceptionState& exceptionState)
61 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
69 void SVGTransformTearOff::setTranslate(float tx, float ty, ExceptionState& exceptionState)
72 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
80 void SVGTransformTearOff::setScale(float sx, float sy, ExceptionState& exceptionState)
83 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.")
    [all...]
SVGPreserveAspectRatioTearOff.cpp 35 #include "bindings/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/v8/ExceptionState.h"
54 String Storage::anonymousIndexedGetter(unsigned index, ExceptionState& exceptionState)
56 return anonymousNamedGetter(AtomicString::number(index), exceptionState);
59 String Storage::anonymousNamedGetter(const AtomicString& name, ExceptionState& exceptionState)
61 bool found = contains(name, exceptionState);
62 if (exceptionState.hadException() || !found)
64 String result = getItem(name, exceptionState);
65 if (exceptionState.hadException()
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/xml/
XPathEvaluator.cpp 30 #include "bindings/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/v8/ExceptionState.h"
46 PassRefPtrWillBeRawPtr<File> FileEntrySync::file(ExceptionState& exceptionState)
48 return filesystem()->createFile(this, exceptionState);
51 FileWriterSync* FileEntrySync::createWriter(ExceptionState& exceptionState)
53 return filesystem()->createWriter(this, exceptionState);
  /external/chromium_org/third_party/WebKit/Source/core/dom/custom/
CustomElementException.cpp 34 #include "bindings/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(NotSupportedError, 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/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/v8/custom/
V8HTMLOptionsCollectionCustom.cpp 37 #include "bindings/v8/ExceptionState.h"
49 ExceptionState exceptionState(ExceptionState::ExecutionContext, "add", "HTMLOptionsCollection", info.Holder(), info.GetIsolate());
51 exceptionState.throwTypeError("The element provided was not an HTMLOptionElement.");
57 impl->add(option, exceptionState);
59 int index = toInt32(info[1], exceptionState);
60 if (exceptionState.throwIfNeeded())
63 impl->add(option, index, exceptionState);
67 exceptionState.throwIfNeeded()
    [all...]
V8ClientCustom.cpp 9 #include "bindings/v8/ExceptionState.h"
20 ExceptionState exceptionState(ExceptionState::ExecutionContext, "postMessage", "ServiceWorker", info.Holder(), info.GetIsolate());
26 if (!SerializedScriptValue::extractTransferables(info[transferablesArgIndex], transferablesArgIndex, ports, arrayBuffers, exceptionState, info.GetIsolate())) {
27 exceptionState.throwIfNeeded();
31 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &ports, &arrayBuffers, exceptionState, info.GetIsolate());
32 if (exceptionState.throwIfNeeded())
35 client->postMessage(context, message.release(), &ports, exceptionState);
36 exceptionState.throwIfNeeded()
    [all...]
V8DedicatedWorkerGlobalScopeCustom.cpp 35 #include "bindings/v8/ExceptionState.h"
46 ExceptionState exceptionState(ExceptionState::ExecutionContext, "postMessage", "WorkerGlobalScope", info.Holder(), info.GetIsolate());
52 if (!SerializedScriptValue::extractTransferables(info[transferablesArgIndex], transferablesArgIndex, ports, arrayBuffers, exceptionState, info.GetIsolate())) {
53 exceptionState.throwIfNeeded();
57 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &ports, &arrayBuffers, exceptionState, info.GetIsolate());
58 if (exceptionState.throwIfNeeded())
61 workerGlobalScope->postMessage(message.release(), &ports, exceptionState);
62 exceptionState.throwIfNeeded()
    [all...]
V8MessagePortCustom.cpp 35 #include "bindings/v8/ExceptionState.h"
45 ExceptionState exceptionState(ExceptionState::ExecutionContext, "postMessage", "MessagePort", info.Holder(), info.GetIsolate());
51 if (!SerializedScriptValue::extractTransferables(info[transferablesArgIndex], transferablesArgIndex, portArray, arrayBufferArray, exceptionState, info.GetIsolate())) {
52 exceptionState.throwIfNeeded();
56 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &portArray, &arrayBufferArray, exceptionState, info.GetIsolate());
57 if (exceptionState.throwIfNeeded())
59 messagePort->postMessage(message.release(), &portArray, exceptionState);
60 exceptionState.throwIfNeeded()
    [all...]
V8ServiceWorkerCustom.cpp 9 #include "bindings/v8/ExceptionState.h"
20 ExceptionState exceptionState(ExceptionState::ExecutionContext, "postMessage", "ServiceWorker", info.Holder(), info.GetIsolate());
26 if (!SerializedScriptValue::extractTransferables(info[transferablesArgIndex], transferablesArgIndex, ports, arrayBuffers, exceptionState, info.GetIsolate())) {
27 exceptionState.throwIfNeeded();
31 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &ports, &arrayBuffers, exceptionState, info.GetIsolate());
32 if (exceptionState.throwIfNeeded())
34 worker->postMessage(message.release(), &ports, exceptionState);
35 exceptionState.throwIfNeeded()
    [all...]
V8WorkerCustom.cpp 35 #include "bindings/v8/ExceptionState.h"
46 ExceptionState exceptionState(ExceptionState::ExecutionContext, "postMessage", "Worker", info.Holder(), info.GetIsolate());
52 if (!SerializedScriptValue::extractTransferables(info[transferablesArgIndex], transferablesArgIndex, ports, arrayBuffers, exceptionState, info.GetIsolate())) {
53 exceptionState.throwIfNeeded();
57 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &ports, &arrayBuffers, exceptionState, info.GetIsolate());
58 if (exceptionState.throwIfNeeded())
60 worker->postMessage(message.release(), &ports, exceptionState);
61 exceptionState.throwIfNeeded()
    [all...]
V8CryptoCustom.cpp 29 #include "bindings/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/core/fileapi/
FileReaderSync.cpp 34 #include "bindings/v8/ExceptionState.h"
49 PassRefPtr<ArrayBuffer> FileReaderSync::readAsArrayBuffer(ExecutionContext* executionContext, Blob* blob, ExceptionState& exceptionState)
52 exceptionState.throwDOMException(NotFoundError, FileError::notFoundErrorMessage);
57 startLoading(executionContext, loader, *blob, exceptionState);
62 String FileReaderSync::readAsBinaryString(ExecutionContext* executionContext, Blob* blob, ExceptionState& exceptionState)
65 exceptionState.throwDOMException(NotFoundError, FileError::notFoundErrorMessage);
70 startLoading(executionContext, loader, *blob, exceptionState);
74 String FileReaderSync::readAsText(ExecutionContext* executionContext, Blob* blob, const String& encoding, ExceptionState& exceptionState
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
IDBIndex.cpp 29 #include "bindings/v8/ExceptionState.h"
74 IDBRequest* IDBIndex::openCursor(ScriptState* scriptState, const ScriptValue& range, const String& directionString, ExceptionState& exceptionState)
78 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::indexDeletedErrorMessage);
82 exceptionState.throwDOMException(TransactionInactiveError, IDBDatabase::transactionFinishedErrorMessage);
86 exceptionState.throwDOMException(TransactionInactiveError, IDBDatabase::transactionInactiveErrorMessage);
89 blink::WebIDBCursorDirection direction = IDBCursor::stringToDirection(directionString, exceptionState);
90 if (exceptionState.hadException())
93 IDBKeyRange* keyRange = IDBKeyRange::fromScriptValue(scriptState->executionContext(), range, exceptionState);
94 if (exceptionState.hadException()
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/canvas/
DataView.cpp 29 #include "bindings/v8/ExceptionState.h"
133 T DataView::getData(unsigned byteOffset, bool littleEndian, ExceptionState& exceptionState) const
136 exceptionState.throwDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
148 void DataView::setData(unsigned byteOffset, T value, bool littleEndian, ExceptionState& exceptionState)
151 exceptionState.throwDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
162 int8_t DataView::getInt8(unsigned byteOffset, ExceptionState& exceptionState)
164 return getData<int8_t>(byteOffset, false, exceptionState);
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/workers/
AbstractWorker.cpp 34 #include "bindings/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/v8/ExceptionState.h"
50 void NavigatorMediaStream::webkitGetUserMedia(Navigator& navigator, const Dictionary& options, PassOwnPtr<NavigatorUserMediaSuccessCallback> successCallback, PassOwnPtr<NavigatorUserMediaErrorCallback> errorCallback, ExceptionState& exceptionState)
57 exceptionState.throwDOMException(NotSupportedError, "No user media controller available; is this a detached window?");
61 RefPtrWillBeRawPtr<UserMediaRequest> request = UserMediaRequest::create(navigator.frame()->document(), userMedia, options, successCallback, errorCallback, exceptionState);
63 ASSERT(exceptionState.hadException());
70 void NavigatorMediaStream::getMediaDevices(Navigator& navigator, PassOwnPtr<MediaDeviceInfoCallback> callback, ExceptionState& exceptionState)
74 exceptionState.throwDOMException(NotSupportedError, "No media device controller available; is this a detached window?");
78 RefPtrWillBeRawPtr<MediaDevicesRequest> request = MediaDevicesRequest::create(navigator.frame()->document(), userMedia, callback, exceptionState);
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/webdatabase/
DatabaseSync.cpp 34 #include "bindings/v8/ExceptionState.h"
76 void DatabaseSync::changeVersion(const String& oldVersion, const String& newVersion, PassOwnPtr<SQLTransactionSyncCallback> changeVersionCallback, ExceptionState& exceptionState)
83 exceptionState.throwDOMException(SQLDatabaseError, "Unable to change version from within a transaction.");
88 transaction->begin(exceptionState);
89 if (exceptionState.hadException()) {
98 exceptionState.throwDOMException(UnknownError, SQLError::unknownErrorMessage);
105 exceptionState.throwDOMException(VersionError, SQLError::versionErrorMessage);
110 transaction->execute(exceptionState);
111 if (exceptionState.hadException())
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/dom/
TreeWalker.cpp 29 #include "bindings/v8/ExceptionState.h"
43 void TreeWalker::setCurrentNode(PassRefPtrWillBeRawPtr<Node> node, ExceptionState& exceptionState)
46 exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::argumentNullOrIncorrectType(1, "Node"));
58 Node* TreeWalker::parentNode(ExceptionState& exceptionState)
65 short acceptNodeResult = acceptNode(node.get(), exceptionState);
66 if (exceptionState.hadException())
74 Node* TreeWalker::firstChild(ExceptionState& exceptionState)
    [all...]

Completed in 522 milliseconds

1 2 3 4 5 6 7 8 91011>>