Searched refs:exceptionState (Results 201 - 225 of 332) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DWaveShaperNode.cpp58 void WaveShaperNode::setOversample(const String& type, ExceptionState& exceptionState) argument
/external/chromium_org/third_party/WebKit/Source/core/frame/
H A DHistory.cpp130 void History::stateObjectAdded(PassRefPtr<SerializedScriptValue> data, const String& /* title */, const String& urlString, FrameLoadType type, ExceptionState& exceptionState) argument
138 exceptionState.throwSecurityError("A history state object with URL '" + fullURL.elidedString() + "' cannot be created in a document with origin '" + m_frame->document()->securityOrigin()->toString() + "'.");
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/
H A DDirectoryReaderSync.cpp104 EntrySyncHeapVector DirectoryReaderSync::readEntries(ExceptionState& exceptionState) argument
114 FileError::throwDOMException(exceptionState, m_errorCode);
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
H A DIDBTransaction.cpp114 IDBObjectStore* IDBTransaction::objectStore(const String& name, ExceptionState& exceptionState) argument
117 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::transactionFinishedErrorMessage);
126 exceptionState.throwDOMException(NotFoundError, IDBDatabase::noSuchObjectStoreErrorMessage);
133 exceptionState.throwDOMException(NotFoundError, IDBDatabase::noSuchObjectStoreErrorMessage);
178 void IDBTransaction::abort(ExceptionState& exceptionState) argument
181 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::transactionFinishedErrorMessage);
279 WebIDBTransactionMode IDBTransaction::stringToMode(const String& modeString, ExceptionState& exceptionState) argument
286 exceptionState.throwTypeError("The mode provided ('" + modeString + "') is not one of 'readonly' or 'readwrite'.");
/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/core/dom/
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 DMutationObserver.cpp78 void MutationObserver::observe(Node* node, const MutationObserverInit& observerInit, ExceptionState& exceptionState) argument
81 exceptionState.throwDOMException(NotFoundError, "The provided node was null.");
117 exceptionState.throwTypeError("The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.");
121 exceptionState.throwTypeError("The options object may only set 'attributeFilter' when 'attributes' is true or not present.");
126 exceptionState.throwTypeError("The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.");
131 exceptionState.throwTypeError("The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.");
H A DDocument.cpp765 PassRefPtrWillBeRawPtr<Element> Document::createElement(const AtomicString& name, ExceptionState& exceptionState) argument
768 exceptionState.throwDOMException(InvalidCharacterError, "The tag name provided ('" + name + "') is not a valid name.");
778 PassRefPtrWillBeRawPtr<Element> Document::createElement(const AtomicString& localName, const AtomicString& typeExtension, ExceptionState& exceptionState) argument
781 exceptionState.throwDOMException(InvalidCharacterError, "The tag name provided ('" + localName + "') is not a valid name.");
790 element = createElement(localName, exceptionState);
791 if (exceptionState.hadException())
801 static inline QualifiedName createQualifiedName(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState& exceptionState) argument
804 if (!Document::parseQualifiedName(qualifiedName, prefix, localName, exceptionState))
809 exceptionState.throwDOMException(NamespaceError, "The namespace URI provided ('" + namespaceURI + "') is not valid for the qualified name provided ('" + qualifiedName + "').");
816 PassRefPtrWillBeRawPtr<Element> Document::createElementNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState& exceptionState) argument
825 createElementNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, const AtomicString& typeExtension, ExceptionState& exceptionState) argument
843 registerElement(ScriptState* scriptState, const AtomicString& name, ExceptionState& exceptionState) argument
848 registerElement(ScriptState* scriptState, const AtomicString& name, const Dictionary& options, ExceptionState& exceptionState, CustomElement::NameSet validNames) argument
919 createCDATASection(const String& data, ExceptionState& exceptionState) argument
932 createProcessingInstruction(const String& target, const String& data, ExceptionState& exceptionState) argument
950 importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtrWillBeRawPtr<ContainerNode> newContainerNode, ExceptionState& exceptionState) argument
964 importNode(Node* importedNode, bool deep, ExceptionState& exceptionState) argument
1026 adoptNode(PassRefPtrWillBeRawPtr<Node> source, ExceptionState& exceptionState) argument
1206 setXMLVersion(const String& version, ExceptionState& exceptionState) argument
1216 setXMLStandalone(bool standalone, ExceptionState& exceptionState) argument
1542 createNodeIterator(Node* root, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter> filter, ExceptionState& exceptionState) argument
1549 createTreeWalker(Node* root, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter> filter, ExceptionState& exceptionState) argument
2311 open(Document* ownerDocument, ExceptionState& exceptionState) argument
2401 setBody(PassRefPtrWillBeRawPtr<HTMLElement> prpNewBody, ExceptionState& exceptionState) argument
2460 close(ExceptionState& exceptionState) argument
2711 write(const SegmentedString& text, Document* ownerDocument, ExceptionState& exceptionState) argument
2740 write(const String& text, Document* ownerDocument, ExceptionState& exceptionState) argument
2742 write(SegmentedString(text), ownerDocument, exceptionState); local
2745 writeln(const String& text, Document* ownerDocument, ExceptionState& exceptionState) argument
3909 createEvent(const String& eventType, ExceptionState& exceptionState) argument
4011 setCookie(const String& value, ExceptionState& exceptionState) argument
4049 setDomain(const String& newDomain, ExceptionState& exceptionState) argument
4236 parseQualifiedName(const AtomicString& qualifiedName, AtomicString& prefix, AtomicString& localName, ExceptionState& exceptionState) argument
4544 createAttribute(const AtomicString& name, ExceptionState& exceptionState) argument
4549 createAttributeNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState& exceptionState, bool shouldIgnoreNamespaceChecks) argument
5635 TrackExceptionState exceptionState; local
5661 TrackExceptionState exceptionState; local
[all...]
/external/chromium_org/third_party/WebKit/Source/core/dom/shadow/
H A DShadowRoot.cpp110 PassRefPtrWillBeRawPtr<Node> ShadowRoot::cloneNode(bool, ExceptionState& exceptionState) argument
112 exceptionState.throwDOMException(DataCloneError, "ShadowRoot nodes are not clonable.");
121 void ShadowRoot::setInnerHTML(const String& markup, ExceptionState& exceptionState) argument
124 exceptionState.throwDOMException(InvalidAccessError, "The ShadowRoot does not have a host.");
128 if (RefPtrWillBeRawPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(markup, host(), AllowScriptingContent, "innerHTML", exceptionState))
129 replaceChildrenWithFragment(this, fragment.release(), exceptionState);
/external/chromium_org/third_party/WebKit/Source/core/html/track/
H A DTextTrack.cpp254 void TextTrack::removeCue(TextTrackCue* cue, ExceptionState& exceptionState) argument
266 exceptionState.throwDOMException(NotFoundError, "The specified cue is not listed in the TextTrack's list of cues.");
272 exceptionState.throwDOMException(InvalidStateError, "Failed to remove the specified cue.");
332 void TextTrack::removeRegion(VTTRegion* region, ExceptionState &exceptionState) argument
340 exceptionState.throwDOMException(NotFoundError, "The specified region is not listed in the TextTrack's list of regions.");
345 exceptionState.throwDOMException(InvalidStateError, "Failed to remove the specified region.");
/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGLengthList.cpp81 void SVGLengthList::parseInternal(const CharType*& ptr, const CharType* end, ExceptionState& exceptionState) argument
95 length->setValueAsString(valueString, exceptionState);
96 if (exceptionState.hadException())
103 void SVGLengthList::setValueAsString(const String& value, ExceptionState& exceptionState) argument
112 parseInternal(ptr, end, exceptionState);
116 parseInternal(ptr, end, exceptionState);
H A DSVGLength.cpp145 TrackExceptionState exceptionState; local
146 length->setValueAsString(value, exceptionState);
147 if (exceptionState.hadException()) {
212 void SVGLength::setValueAsString(const String& string, ExceptionState& exceptionState) argument
228 exceptionState.throwDOMException(SyntaxError, "The value provided ('" + string + "') is invalid.");
247 void SVGLength::convertToSpecifiedUnits(SVGLengthType type, const SVGLengthContext& context, ExceptionState& exceptionState) argument
251 float valueInUserUnits = value(context, exceptionState);
252 if (exceptionState.hadException())
257 setValue(valueInUserUnits, context, exceptionState);
258 if (!exceptionState
[all...]
H A DSVGForeignObjectElement.cpp78 TrackExceptionState exceptionState; local
79 length->setValueAsString(value, exceptionState);
80 if (!exceptionState.hadException()) {
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/
H A DServiceWorker.cpp83 void ServiceWorker::postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, ExceptionState& exceptionState) argument
86 OwnPtr<MessagePortChannelArray> channels = MessagePort::disentanglePorts(ports, exceptionState);
87 if (exceptionState.hadException())
90 exceptionState.throwDOMException(InvalidStateError, "ServiceWorker is in redundant state.");
99 void ServiceWorker::terminate(ExceptionState& exceptionState) argument
101 exceptionState.throwDOMException(InvalidAccessError, "Not supported.");
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DFontFace.cpp183 void FontFace::setStyle(ExecutionContext* context, const String& s, ExceptionState& exceptionState) argument
185 setPropertyFromString(toDocument(context), s, CSSPropertyFontStyle, &exceptionState); local
188 void FontFace::setWeight(ExecutionContext* context, const String& s, ExceptionState& exceptionState) argument
190 setPropertyFromString(toDocument(context), s, CSSPropertyFontWeight, &exceptionState); local
193 void FontFace::setStretch(ExecutionContext* context, const String& s, ExceptionState& exceptionState) argument
195 setPropertyFromString(toDocument(context), s, CSSPropertyFontStretch, &exceptionState); local
198 void FontFace::setUnicodeRange(ExecutionContext* context, const String& s, ExceptionState& exceptionState) argument
200 setPropertyFromString(toDocument(context), s, CSSPropertyUnicodeRange, &exceptionState); local
203 void FontFace::setVariant(ExecutionContext* context, const String& s, ExceptionState& exceptionState) argument
205 setPropertyFromString(toDocument(context), s, CSSPropertyFontVariant, &exceptionState); local
208 setFeatureSettings(ExecutionContext* context, const String& s, ExceptionState& exceptionState) argument
210 setPropertyFromString(toDocument(context), s, CSSPropertyWebkitFontFeatureSettings, &exceptionState); local
213 setPropertyFromString(const Document* document, const String& s, CSSPropertyID propertyID, ExceptionState* exceptionState) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/templates/
H A Dmethods.cpp8 ExceptionState exceptionState(ExceptionState::ExecutionContext, "{{method.name}}", "{{interface_name}}", info.Holder(), info.GetIsolate());
26 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), window->frame(), exceptionState)) {
34 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->frame(), exceptionState)) {
40 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->{{method.name}}(exceptionState), exceptionState)) {
243 if (exceptionState.hadException()) {
305 exceptionState.throwTypeError({{error_message}});
328 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value())
330 exceptionState.throwIfNeeded()
338 setMinimumArityTypeError(exceptionState, {{number_of_required_argument
[all...]
H A Dattributes.cpp47 ExceptionState exceptionState(ExceptionState::GetterContext, "{{attribute.name}}", "{{interface_name}}", holder, info.GetIsolate());
61 if (UNLIKELY(exceptionState.throwIfNeeded()))
65 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), {{attribute.cpp_value}}, exceptionState)) {
67 exceptionState.throwIfNeeded();
214 ExceptionState exceptionState(ExceptionState::SetterContext, "{{attribute.name}}", "{{interface_name}}", holder, info.GetIsolate());
221 exceptionState.throwTypeError("The provided value is not of type '{{attribute.idl_type}}'.");
222 exceptionState.throwIfNeeded();
252 exceptionState.throwTypeError("The provided {{attribute.idl_type}} value is non-finite.");
253 exceptionState.throwIfNeeded();
278 exceptionState
[all...]
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
H A DCanvasPathMethods.cpp110 void CanvasPathMethods::arcTo(float x1, float y1, float x2, float y2, float r, ExceptionState& exceptionState) argument
116 exceptionState.throwDOMException(IndexSizeError, "The radius provided (" + String::number(r) + ") is negative.");
254 void CanvasPathMethods::arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise, ExceptionState& exceptionState) argument
260 exceptionState.throwDOMException(IndexSizeError, "The radius provided (" + String::number(radius) + ") is negative.");
278 void CanvasPathMethods::ellipse(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, bool anticlockwise, ExceptionState& exceptionState) argument
284 exceptionState.throwDOMException(IndexSizeError, "The major-axis radius provided (" + String::number(radiusX) + ") is negative.");
288 exceptionState.throwDOMException(IndexSizeError, "The minor-axis radius provided (" + String::number(radiusY) + ") is negative.");
/external/chromium_org/third_party/WebKit/Source/core/inspector/
H A DDOMPatchSupport.cpp115 Node* DOMPatchSupport::patchNode(Node* node, const String& markup, ExceptionState& exceptionState) argument
160 if (!innerPatchChildren(parentNode, oldList, newList, exceptionState)) {
162 if (!m_domEditor->replaceChild(parentNode, fragment.release(), node, exceptionState))
168 bool DOMPatchSupport::innerPatchNode(Digest* oldDigest, Digest* newDigest, ExceptionState& exceptionState) argument
177 return m_domEditor->replaceChild(oldNode->parentNode(), newNode, oldNode, exceptionState);
180 if (!m_domEditor->setNodeValue(oldNode, newNode->nodeValue(), exceptionState))
194 if (!m_domEditor->removeAttribute(oldElement, attribute.localName(), exceptionState))
202 if (!m_domEditor->setAttribute(oldElement, it->name().localName(), it->value(), exceptionState))
207 bool result = innerPatchChildren(oldElement, oldDigest->m_children, newDigest->m_children, exceptionState);
298 bool DOMPatchSupport::innerPatchChildren(ContainerNode* parentNode, const Vector<OwnPtr<Digest> >& oldList, const Vector<OwnPtr<Digest> >& newList, ExceptionState& exceptionState) argument
451 insertBeforeAndMarkAsUsed(ContainerNode* parentNode, Digest* digest, Node* anchor, ExceptionState& exceptionState) argument
458 removeChildAndMoveToNew(Digest* oldDigest, ExceptionState& exceptionState) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/core/svg/properties/
H A DSVGListPropertyHelper.h226 PassRefPtr<ItemProperty> SVGListPropertyHelper<Derived, ItemProperty>::getItem(size_t index, ExceptionState& exceptionState) argument
228 if (!checkIndexBound(index, exceptionState))
260 PassRefPtr<ItemProperty> SVGListPropertyHelper<Derived, ItemProperty>::removeItem(size_t index, ExceptionState& exceptionState) argument
263 exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("index", index, m_values.size()));
288 PassRefPtr<ItemProperty> SVGListPropertyHelper<Derived, ItemProperty>::replaceItem(PassRefPtr<ItemProperty> passNewItem, size_t index, ExceptionState& exceptionState) argument
290 if (!checkIndexBound(index, exceptionState))
304 exceptionState.throwDOMException(IndexSizeError, String::format("Failed to replace the provided item at index %zu.", index));
319 bool SVGListPropertyHelper<Derived, ItemProperty>::checkIndexBound(size_t index, ExceptionState& exceptionState) argument
322 exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("index", index, m_values.size()));
/external/chromium_org/third_party/WebKit/Source/bindings/modules/v8/custom/
H A DV8SubtleCryptoCustom.cpp83 ExceptionState exceptionState(ExceptionState::ExecutionContext, "verify", "SubtleCrypto", info.Holder(), isolate);
117 setArityTypeError(exceptionState, "[4]", info.Length());
118 exceptionState.throwIfNeeded();
122 exceptionState.throwTypeError("No function was found that matched the signature provided.");
123 exceptionState.throwIfNeeded();
/external/chromium_org/third_party/WebKit/Source/core/workers/
H A DWorkerGlobalScope.cpp215 void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionState& exceptionState) argument
227 exceptionState.throwDOMException(SyntaxError, "The URL '" + *it + "' is invalid.");
231 exceptionState.throwDOMException(NetworkError, "The script at '" + url.elidedString() + "' failed to load.");
245 exceptionState.throwDOMException(NetworkError, "The script at '" + it->elidedString() + "' failed to load.");
254 m_script->rethrowExceptionFromImportedScript(errorEvent.release(), exceptionState);
/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/bindings/core/v8/custom/
H A DV8MessageEventCustom.cpp107 ExceptionState exceptionState(ExceptionState::ExecutionContext, "initMessageEvent", "MessageEvent", info.Holder(), info.GetIsolate());
120 *portArray = toRefPtrWillBeMemberNativeArray<MessagePort, V8MessagePort>(info[portArrayIndex], portArrayIndex + 1, info.GetIsolate(), exceptionState);
121 if (exceptionState.throwIfNeeded())
/external/chromium_org/third_party/WebKit/Source/modules/mediastream/
H A DMediaStreamTrack.cpp131 void MediaStreamTrack::getSources(ExecutionContext* context, MediaStreamTrackSourcesCallback* callback, ExceptionState& exceptionState) argument
136 exceptionState.throwDOMException(NotSupportedError, "No sources controller available; is this a detached window?");
143 void MediaStreamTrack::stopTrack(ExceptionState& exceptionState) argument

Completed in 409 milliseconds

1234567891011>>