Searched defs:exceptionState (Results 101 - 125 of 277) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/WebKit/Source/modules/beacon/
H A DNavigatorBeacon.cpp43 bool NavigatorBeacon::canSendBeacon(ExecutionContext* context, const KURL& url, ExceptionState& exceptionState) argument
46 exceptionState.throwDOMException(SyntaxError, "The URL argument is ill-formed or unsupported.");
51 exceptionState.throwDOMException(SyntaxError, "Beacons are only supported over HTTP(S).");
57 exceptionState.throwSecurityError("Refused to send beacon to '" + url.elidedString() + "' because it violates the document's Content Security Policy.");
91 bool NavigatorBeacon::sendBeacon(ExecutionContext* context, Navigator& navigator, const String& urlstring, const String& data, ExceptionState& exceptionState) argument
93 return NavigatorBeacon::from(navigator).sendBeacon(context, urlstring, data, exceptionState);
96 bool NavigatorBeacon::sendBeacon(ExecutionContext* context, const String& urlstring, const String& data, ExceptionState& exceptionState) argument
99 if (!canSendBeacon(context, url, exceptionState))
107 bool NavigatorBeacon::sendBeacon(ExecutionContext* context, Navigator& navigator, const String& urlstring, PassRefPtr<ArrayBufferView> data, ExceptionState& exceptionState) argument
109 return NavigatorBeacon::from(navigator).sendBeacon(context, urlstring, data, exceptionState);
112 sendBeacon(ExecutionContext* context, const String& urlstring, PassRefPtr<ArrayBufferView> data, ExceptionState& exceptionState) argument
123 sendBeacon(ExecutionContext* context, Navigator& navigator, const String& urlstring, PassRefPtrWillBeRawPtr<Blob> data, ExceptionState& exceptionState) argument
128 sendBeacon(ExecutionContext* context, const String& urlstring, PassRefPtrWillBeRawPtr<Blob> data, ExceptionState& exceptionState) argument
139 sendBeacon(ExecutionContext* context, Navigator& navigator, const String& urlstring, PassRefPtrWillBeRawPtr<DOMFormData> data, ExceptionState& exceptionState) argument
144 sendBeacon(ExecutionContext* context, const String& urlstring, PassRefPtrWillBeRawPtr<DOMFormData> data, ExceptionState& exceptionState) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
H A DIDBFactory.cpp73 IDBRequest* IDBFactory::getDatabaseNames(ScriptState* scriptState, ExceptionState& exceptionState) argument
79 exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
94 IDBOpenDBRequest* IDBFactory::open(ScriptState* scriptState, const String& name, unsigned long long version, ExceptionState& exceptionState) argument
98 exceptionState.throwTypeError("The version provided must not be 0.");
101 return openInternal(scriptState, name, version, exceptionState);
104 IDBOpenDBRequest* IDBFactory::openInternal(ScriptState* scriptState, const String& name, int64_t version, ExceptionState& exceptionState) argument
109 exceptionState.throwTypeError("The name provided must not be empty.");
115 exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
132 IDBOpenDBRequest* IDBFactory::open(ScriptState* scriptState, const String& name, ExceptionState& exceptionState) argument
135 return openInternal(scriptState, name, IDBDatabaseMetadata::NoIntVersion, exceptionState);
138 deleteDatabase(ScriptState* scriptState, const String& name, ExceptionState& exceptionState) argument
164 cmp(ScriptState* scriptState, const ScriptValue& firstValue, const ScriptValue& secondValue, ExceptionState& exceptionState) argument
[all...]
H A DIDBIndex.cpp73 IDBRequest* IDBIndex::openCursor(ScriptState* scriptState, const ScriptValue& range, const String& directionString, ExceptionState& exceptionState) argument
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())
97 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::databaseClosedErrorMessage);
112 IDBRequest* IDBIndex::count(ScriptState* scriptState, const ScriptValue& range, ExceptionState& exceptionState) argument
142 openKeyCursor(ScriptState* scriptState, const ScriptValue& range, const String& directionString, ExceptionState& exceptionState) argument
175 get(ScriptState* scriptState, const ScriptValue& key, ExceptionState& exceptionState) argument
181 getKey(ScriptState* scriptState, const ScriptValue& key, ExceptionState& exceptionState) argument
187 getInternal(ScriptState* scriptState, const ScriptValue& key, ExceptionState& exceptionState, bool keyOnly) argument
[all...]
H A DIDBKeyRange.cpp36 IDBKeyRange* IDBKeyRange::fromScriptValue(ExecutionContext* context, const ScriptValue& value, ExceptionState& exceptionState) argument
47 exceptionState.throwDOMException(DataError, IDBDatabase::notValidKeyErrorMessage);
78 IDBKeyRange* IDBKeyRange::only(IDBKey* key, ExceptionState& exceptionState) argument
81 exceptionState.throwDOMException(DataError, IDBDatabase::notValidKeyErrorMessage);
88 IDBKeyRange* IDBKeyRange::only(ExecutionContext* context, const ScriptValue& keyValue, ExceptionState& exceptionState) argument
92 exceptionState.throwDOMException(DataError, IDBDatabase::notValidKeyErrorMessage);
99 IDBKeyRange* IDBKeyRange::lowerBound(ExecutionContext* context, const ScriptValue& boundValue, bool open, ExceptionState& exceptionState) argument
103 exceptionState.throwDOMException(DataError, IDBDatabase::notValidKeyErrorMessage);
110 IDBKeyRange* IDBKeyRange::upperBound(ExecutionContext* context, const ScriptValue& boundValue, bool open, ExceptionState& exceptionState) argument
114 exceptionState
121 bound(ExecutionContext* context, const ScriptValue& lowerValue, const ScriptValue& upperValue, bool lowerOpen, bool upperOpen, ExceptionState& exceptionState) argument
[all...]
H A DIDBObjectStore.h78 IDBIndex* createIndex(ScriptState* scriptState, const String& name, const String& keyPath, const IDBIndexParameters& options, ExceptionState& exceptionState) argument
80 return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState);
82 IDBIndex* createIndex(ScriptState* scriptState, const String& name, const Vector<String>& keyPath, const IDBIndexParameters& options, ExceptionState& exceptionState) argument
84 return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState);
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/
H A DHeaders.cpp30 Headers* Headers::create(const Headers* init, ExceptionState& exceptionState) argument
36 headers->fillWith(init, exceptionState);
41 Headers* Headers::create(const Dictionary& init, ExceptionState& exceptionState) argument
47 headers->fillWith(init, exceptionState);
70 void Headers::append(const String& name, const String& value, ExceptionState& exceptionState) argument
77 exceptionState.throwTypeError("Invalid name");
81 exceptionState.throwTypeError("Invalid value");
86 exceptionState.throwTypeError("Headers are immutable");
105 void Headers::remove(const String& name, ExceptionState& exceptionState) argument
110 exceptionState
134 get(const String& name, ExceptionState& exceptionState) argument
149 getAll(const String& name, ExceptionState& exceptionState) argument
164 has(const String& name, ExceptionState& exceptionState) argument
177 set(const String& name, const String& value, ExceptionState& exceptionState) argument
221 fillWith(const Headers* object, ExceptionState& exceptionState) argument
237 fillWith(const Dictionary& object, ExceptionState& exceptionState) argument
310 TrackExceptionState exceptionState; local
[all...]
H A DRespondWithObserver.cpp86 void RespondWithObserver::respondWith(ScriptState* scriptState, const ScriptValue& value, ExceptionState& exceptionState) argument
90 exceptionState.throwDOMException(InvalidStateError, "respondWith is already called.");
H A DResponse.cpp38 TrackExceptionState exceptionState; local
40 headers->append(i->key, i->value, exceptionState);
41 if (exceptionState.hadException())
49 Response* Response::create(ExecutionContext* context, Blob* body, const Dictionary& responseInit, ExceptionState& exceptionState) argument
51 return create(context, body, ResponseInit(responseInit), exceptionState);
54 Response* Response::create(ExecutionContext* context, const String& body, const Dictionary& responseInit, ExceptionState& exceptionState) argument
62 return create(context, blob.get(), ResponseInit(responseInit), exceptionState);
65 Response* Response::create(ExecutionContext* context, const ArrayBuffer* body, const Dictionary& responseInit, ExceptionState& exceptionState) argument
71 return create(context, blob.get(), ResponseInit(responseInit), exceptionState);
74 Response* Response::create(ExecutionContext* context, const ArrayBufferView* body, const Dictionary& responseInit, ExceptionState& exceptionState) argument
83 create(ExecutionContext* context, Blob* body, const ResponseInit& responseInit, ExceptionState& exceptionState) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DAudioBuffer.cpp58 AudioBuffer* AudioBuffer::create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState& exceptionState) argument
61 exceptionState.throwDOMException(
74 exceptionState.throwDOMException(
87 exceptionState.throwDOMException(
99 exceptionState.throwDOMException(
177 PassRefPtr<Float32Array> AudioBuffer::getChannelData(unsigned channelIndex, ExceptionState& exceptionState) argument
180 exceptionState.throwDOMException(IndexSizeError, "channel index (" + String::number(channelIndex) + ") exceeds number of channels (" + String::number(m_channels.size()) + ")");
H A DAudioScheduledSourceNode.cpp137 void AudioScheduledSourceNode::start(double when, ExceptionState& exceptionState) argument
142 exceptionState.throwDOMException(
149 exceptionState.throwDOMException(
159 void AudioScheduledSourceNode::stop(double when, ExceptionState& exceptionState) argument
164 exceptionState.throwDOMException(
171 exceptionState.throwDOMException(
H A DAudioScheduledSourceNode.h60 void start(ExceptionState& exceptionState) { start(0.0, exceptionState); } argument
62 void stop(ExceptionState& exceptionState) { stop(0.0, exceptionState); } argument
H A DConvolverNode.cpp117 void ConvolverNode::setBuffer(AudioBuffer* buffer, ExceptionState& exceptionState) argument
125 exceptionState.throwDOMException(
/external/chromium_org/third_party/WebKit/Source/web/
H A DSharedWorkerRepositoryClientImpl.cpp112 void SharedWorkerRepositoryClientImpl::connect(PassRefPtrWillBeRawPtr<SharedWorker> worker, PassOwnPtr<WebMessagePortChannel> port, const KURL& url, const String& name, ExceptionState& exceptionState) argument
122 exceptionState.throwDOMException(URLMismatchError, "The location of the SharedWorker named '" + name + "' does not exactly match the provided URL ('" + url.elidedString() + "').");
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
H A DDictionary.h79 ConversionContext(const String& interfaceName, const String& methodName, ExceptionState& exceptionState) argument
82 , m_exceptionState(exceptionState)
91 ExceptionState& exceptionState() const { return m_exceptionState; } function in class:blink::Dictionary::ConversionContext
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DCSSStyleSheet.h73 void removeRule(unsigned index, ExceptionState& exceptionState) { deleteRule(index, exceptionState); } argument
/external/chromium_org/third_party/WebKit/Source/core/dom/
H A DCharacterData.cpp58 String CharacterData::substringData(unsigned offset, unsigned count, ExceptionState& exceptionState) argument
61 exceptionState.throwDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length()) + ").");
94 void CharacterData::insertData(unsigned offset, const String& data, ExceptionState& exceptionState, RecalcStyleBehavior recalcStyleBehavior) argument
97 exceptionState.throwDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length()) + ").");
109 static bool validateOffsetCount(unsigned offset, unsigned count, unsigned length, unsigned& realCount, ExceptionState& exceptionState) argument
112 exceptionState.throwDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length) + ").");
127 void CharacterData::deleteData(unsigned offset, unsigned count, ExceptionState& exceptionState, RecalcStyleBehavior recalcStyleBehavior) argument
130 if (!validateOffsetCount(offset, count, length(), realCount, exceptionState))
141 void CharacterData::replaceData(unsigned offset, unsigned count, const String& data, ExceptionState& exceptionState) argument
144 if (!validateOffsetCount(offset, count, length(), realCount, exceptionState))
[all...]
H A DDatasetDOMStringMap.cpp188 void DatasetDOMStringMap::setItem(const String& name, const String& value, ExceptionState& exceptionState) argument
191 exceptionState.throwDOMException(SyntaxError, "'" + name + "' is not a valid property name.");
195 m_element->setAttribute(convertPropertyNameToAttributeName(name), AtomicString(value), exceptionState); local
H A DMessagePort.cpp65 void MessagePort::postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, ExceptionState& exceptionState) argument
78 exceptionState.throwDOMException(DataCloneError, "Port at index " + String::number(i) + " contains the source port.");
82 channels = MessagePort::disentanglePorts(ports, exceptionState);
83 if (exceptionState.hadException())
212 PassOwnPtr<MessagePortChannelArray> MessagePort::disentanglePorts(const MessagePortArray* ports, ExceptionState& exceptionState) argument
231 exceptionState.throwDOMException(DataCloneError, "Port at index " + String::number(i) + " is " + type + ".");
H A DNodeIterator.cpp88 PassRefPtrWillBeRawPtr<Node> NodeIterator::nextNode(ExceptionState& exceptionState) argument
98 bool nodeWasAccepted = acceptNode(provisionalResult.get(), exceptionState) == NodeFilter::FILTER_ACCEPT;
99 if (exceptionState.hadException())
112 PassRefPtrWillBeRawPtr<Node> NodeIterator::previousNode(ExceptionState& exceptionState) argument
122 bool nodeWasAccepted = acceptNode(provisionalResult.get(), exceptionState) == NodeFilter::FILTER_ACCEPT;
123 if (exceptionState.hadException())
/external/chromium_org/third_party/WebKit/Source/core/events/
H A DMessageEvent.cpp129 PassRefPtrWillBeRawPtr<MessageEvent> MessageEvent::create(const AtomicString& type, const MessageEventInit& initializer, ExceptionState& exceptionState) argument
132 exceptionState.throwTypeError("The optional 'source' property is neither a Window nor MessagePort.");
/external/chromium_org/third_party/WebKit/Source/core/frame/
H A DImageBitmapTest.cpp209 TrackExceptionState exceptionState; local
210 toCanvasRenderingContext2D(context)->drawImage(imageBitmapDerived.get(), 0, 0, exceptionState);
H A DLocation.cpp150 void Location::setProtocol(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, const String& protocol, ExceptionState& exceptionState) argument
156 exceptionState.throwDOMException(SyntaxError, "'" + protocol + "' is an invalid protocol.");
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DHTMLOptionsCollection.cpp71 void HTMLOptionsCollection::add(PassRefPtrWillBeRawPtr<HTMLOptionElement> element, ExceptionState& exceptionState) argument
73 add(element, length(), exceptionState);
76 void HTMLOptionsCollection::add(PassRefPtrWillBeRawPtr<HTMLOptionElement> element, int index, ExceptionState& exceptionState) argument
81 exceptionState.throwTypeError("The element provided was not an HTMLOptionElement.");
86 exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is less than -1.");
93 select.add(newOption, 0, exceptionState);
95 select.addBeforeOptionAtIndex(newOption, index, exceptionState);
97 ASSERT(!exceptionState.hadException());
115 void HTMLOptionsCollection::setLength(unsigned length, ExceptionState& exceptionState) argument
117 toHTMLSelectElement(ownerNode()).setLength(length, exceptionState);
137 anonymousIndexedSetter(unsigned index, PassRefPtrWillBeRawPtr<HTMLOptionElement> value, ExceptionState& exceptionState) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/core/html/forms/
H A DBaseDateAndTimeInputType.cpp66 void BaseDateAndTimeInputType::setValueAsDouble(double newValue, TextFieldEventBehavior eventBehavior, ExceptionState& exceptionState) const
68 setValueAsDecimal(Decimal::fromDouble(newValue), eventBehavior, exceptionState); local
/external/chromium_org/third_party/WebKit/Source/core/inspector/
H A DInspectorDOMStorageAgent.cpp55 static bool hadException(ExceptionState& exceptionState, ErrorString* errorString) argument
57 if (!exceptionState.hadException())
60 switch (exceptionState.code()) {
130 TrackExceptionState exceptionState; local
131 for (unsigned i = 0; i < storageArea->length(exceptionState, frame); ++i) {
132 String name(storageArea->key(i, exceptionState, frame));
133 if (hadException(exceptionState, errorString))
135 String value(storageArea->getItem(name, exceptionState, frame));
136 if (hadException(exceptionState, errorString))
146 static String toErrorString(ExceptionState& exceptionState) argument
162 TrackExceptionState exceptionState; local
176 TrackExceptionState exceptionState; local
[all...]

Completed in 331 milliseconds

1234567891011>>