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

1 2 3 4 5 6 7 891011>>

  /external/chromium_org/third_party/WebKit/Source/core/dom/
MessagePort.cpp 30 #include "bindings/v8/ExceptionState.h"
66 void MessagePort::postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, ExceptionState& exceptionState)
79 exceptionState.throwDOMException(DataCloneError, "Port at index " + String::number(i) + " contains the source port.");
83 channels = MessagePort::disentanglePorts(ports, exceptionState);
84 if (exceptionState.hadException())
213 PassOwnPtr<MessagePortChannelArray> MessagePort::disentanglePorts(const MessagePortArray* ports, ExceptionState& exceptionState)
232 exceptionState.throwDOMException(DataCloneError, "Port at index " + String::number(i) + " is " + type + ".");
MutationObserver.cpp 36 #include "bindings/v8/ExceptionState.h"
80 void MutationObserver::observe(Node* node, const Dictionary& optionsDictionary, ExceptionState& exceptionState)
83 exceptionState.throwDOMException(NotFoundError, "The provided node was null.");
124 exceptionState.throwTypeError("The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.");
128 exceptionState.throwTypeError("The options object may only set 'attributeFilter' when 'attributes' is true or not present.");
133 exceptionState.throwTypeError("The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.");
138 exceptionState.throwTypeError("The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.");
Document.cpp 34 #include "bindings/v8/ExceptionState.h"
741 PassRefPtrWillBeRawPtr<Element> Document::createElement(const AtomicString& name, ExceptionState& exceptionState)
744 exceptionState.throwDOMException(InvalidCharacterError, "The tag name provided ('" + name + "') is not a valid name.");
754 PassRefPtrWillBeRawPtr<Element> Document::createElement(const AtomicString& localName, const AtomicString& typeExtension, ExceptionState& exceptionState)
757 exceptionState.throwDOMException(InvalidCharacterError, "The tag name provided ('" + localName + "') is not a valid name.");
766 element = createElement(localName, exceptionState);
767 if (exceptionState.hadException())
777 static inline QualifiedName createQualifiedName(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState& exceptionState
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/dom/shadow/
ShadowRoot.cpp 30 #include "bindings/v8/ExceptionState.h"
111 PassRefPtrWillBeRawPtr<Node> ShadowRoot::cloneNode(bool, ExceptionState& exceptionState)
113 exceptionState.throwDOMException(DataCloneError, "ShadowRoot nodes are not clonable.");
122 void ShadowRoot::setInnerHTML(const String& markup, ExceptionState& exceptionState)
125 exceptionState.throwDOMException(InvalidAccessError, "The ShadowRoot does not have a host.");
129 if (RefPtrWillBeRawPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(markup, host(), AllowScriptingContent, "innerHTML", exceptionState))
130 replaceChildrenWithFragment(this, fragment.release(), exceptionState);
ShadowRoot.h 40 class ExceptionState;
119 void setInnerHTML(const String&, ExceptionState&);
121 PassRefPtrWillBeRawPtr<Node> cloneNode(bool, ExceptionState&);
122 PassRefPtrWillBeRawPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNode(true, exceptionState); }
  /external/chromium_org/third_party/WebKit/Source/core/fileapi/
File.cpp 29 #include "bindings/v8/ExceptionState.h"
187 PassRefPtrWillBeRawPtr<Blob> File::slice(long long start, long long end, const String& contentType, ExceptionState& exceptionState) const
190 exceptionState.throwDOMException(InvalidStateError, "File has been closed.");
195 return Blob::slice(start, end, contentType, exceptionState);
236 void File::close(ExecutionContext* executionContext, ExceptionState& exceptionState)
239 exceptionState.throwDOMException(InvalidStateError, "Blob has been closed.");
251 Blob::close(executionContext, exceptionState);
  /external/chromium_org/third_party/WebKit/Source/core/html/track/
TextTrack.cpp 35 #include "bindings/v8/ExceptionState.h"
256 void TextTrack::removeCue(TextTrackCue* cue, ExceptionState& exceptionState)
268 exceptionState.throwDOMException(NotFoundError, "The specified cue is not listed in the TextTrack's list of cues.");
274 exceptionState.throwDOMException(InvalidStateError, "Failed to remove the specified cue.");
334 void TextTrack::removeRegion(VTTRegion* region, ExceptionState &exceptionState)
342 exceptionState.throwDOMException(NotFoundError, "The specified region is not listed in the TextTrack's list of regions.");
347 exceptionState.throwDOMException(InvalidStateError, "Failed to remove the specified region.");
  /external/chromium_org/third_party/WebKit/Source/core/svg/
SVGLengthList.cpp 81 void SVGLengthList::parseInternal(const CharType*& ptr, const CharType* end, ExceptionState& exceptionState)
95 length->setValueAsString(valueString, exceptionState);
96 if (exceptionState.hadException())
103 void SVGLengthList::setValueAsString(const String& value, ExceptionState& exceptionState)
112 parseInternal(ptr, end, exceptionState);
116 parseInternal(ptr, end, exceptionState);
SVGLength.cpp 26 #include "bindings/v8/ExceptionState.h"
145 TrackExceptionState exceptionState;
146 length->setValueAsString(value, exceptionState);
147 if (exceptionState.hadException()) {
162 float SVGLength::value(const SVGLengthContext& context, ExceptionState& es) const
167 void SVGLength::setValue(float value, const SVGLengthContext& context, ExceptionState& es)
212 void SVGLength::setValueAsString(const String& string, ExceptionState& exceptionState)
228 exceptionState.throwDOMException(SyntaxError, "The value provided ('" + string + "') is invalid.");
247 void SVGLength::convertToSpecifiedUnits(SVGLengthType type, const SVGLengthContext& context, ExceptionState& exceptionState
    [all...]
SVGForeignObjectElement.cpp 95 TrackExceptionState exceptionState;
96 length->setValueAsString(value, exceptionState);
97 if (!exceptionState.hadException()) {
SVGIntegerOptionalInteger.cpp 73 void SVGIntegerOptionalInteger::setValueAsString(const String& value, ExceptionState& exceptionState)
77 exceptionState.throwDOMException(SyntaxError, "The value provided ('" + value + "') is invalid.");
SVGNumberOptionalNumber.cpp 70 void SVGNumberOptionalNumber::setValueAsString(const String& value, ExceptionState& exceptionState)
74 exceptionState.throwDOMException(SyntaxError, "The value provided ('" + value + "') is invalid.");
  /external/chromium_org/third_party/WebKit/Source/bindings/templates/
attributes.cpp 52 ExceptionState exceptionState(ExceptionState::GetterContext, "{{attribute.name}}", "{{interface_name}}", holder, info.GetIsolate());
67 if (UNLIKELY(exceptionState.throwIfNeeded()))
72 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), {{attribute.cpp_value}}, exceptionState)) {
74 exceptionState.throwIfNeeded();
226 ExceptionState exceptionState(ExceptionState::SetterContext, "{{attribute.name}}", "{{interface_name}}", holder, info.GetIsolate());
233 exceptionState.throwTypeError("The provided value is not of type '{{attribute.idl_type}}'.")
    [all...]
methods.cpp 8 ExceptionState exceptionState(ExceptionState::ExecutionContext, "{{method.name}}", "{{interface_name}}", info.Holder(), info.GetIsolate());
27 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), window->frame(), exceptionState)) {
35 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->frame(), exceptionState)) {
41 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->{{method.name}}(exceptionState), exceptionState)) {
180 {{argument.name}} = SerializedScriptValue::create(info[{{argument.index}}], 0, 0, exceptionState, info.GetIsolate());
181 if (exceptionState.hadException()) {
254 if (exceptionState.hadException())
    [all...]
  /external/chromium_org/third_party/WebKit/Source/bindings/tests/results/
V8TestInterfaceNamedConstructor.cpp 10 #include "bindings/v8/ExceptionState.h"
96 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceNamedConstructor", info.Holder(), isolate);
98 throwMinimumArityTypeError(exceptionState, 1, info.Length());
112 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, toInt32(info[2], exceptionState), exceptionState);
116 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringOptionalstringArg, exceptionState);
124 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringOptionalstringArg, optionalStringArg, exceptionState);
125 if (exceptionState.throwIfNeeded()
    [all...]
V8TestInterface.cpp 18 #include "bindings/v8/ExceptionState.h"
73 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceAttribute", "TestInterface", holder, info.GetIsolate());
75 exceptionState.throwTypeError("The provided value is not of type 'TestInterface'.");
76 exceptionState.throwIfNeeded();
108 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribute", "TestInterface", holder, info.GetIsolate());
112 exceptionState.throwTypeError("The provided double value is non-finite.")
    [all...]
V8TestSpecialOperations.cpp 12 #include "bindings/v8/ExceptionState.h"
137 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "TestSpecialOperations", info.Holder(), info.GetIsolate());
138 bool result = impl->namedPropertyQuery(propertyName, exceptionState);
139 if (exceptionState.throwIfNeeded())
158 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestSpecialOperations", info.Holder(), isolate);
159 impl->namedPropertyEnumerator(names, exceptionState);
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/canvas/
CanvasPathMethods.cpp 38 #include "bindings/v8/ExceptionState.h"
110 void CanvasPathMethods::arcTo(float x1, float y1, float x2, float y2, float r, ExceptionState& exceptionState)
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)
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)
284 exceptionState.throwDOMException(IndexSizeError, "The major-axis radius provided (" + String::number(radiusX) + " (…)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/inspector/
InspectorStyleSheet.cpp 28 #include "bindings/v8/ExceptionState.h"
573 bool InspectorStyle::setPropertyText(unsigned index, const String& propertyText, bool overwrite, ExceptionState& exceptionState)
578 exceptionState.throwDOMException(NotFoundError, "The parent style sheet's data hasn't been processed.");
584 exceptionState.throwDOMException(SyntaxError, "The property '" + propertyText + "' could not be set.");
591 exceptionState.throwDOMException(NotFoundError, "The property '" + propertyText + "' could not be set.");
598 exceptionState.throwDOMException(NotFoundError, "The property '" + propertyText + "' could not be set.");
608 exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is greater than or equal to the maximum bound (" + String::number(allProperties.size()) + ").");
    [all...]
DOMPatchSupport.cpp 34 #include "bindings/v8/ExceptionState.h"
113 Node* DOMPatchSupport::patchNode(Node* node, const String& markup, ExceptionState& exceptionState)
158 if (!innerPatchChildren(parentNode, oldList, newList, exceptionState)) {
160 if (!m_domEditor->replaceChild(parentNode, fragment.release(), node, exceptionState))
166 bool DOMPatchSupport::innerPatchNode(Digest* oldDigest, Digest* newDigest, ExceptionState& exceptionState)
175 return m_domEditor->replaceChild(oldNode->parentNode(), newNode, oldNode, exceptionState);
178 if (!m_domEditor->setNodeValue(oldNode, newNode->nodeValue(), exceptionState))
193 if (!m_domEditor->removeAttribute(oldElement, attribute.localName(), exceptionState))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/mediastream/
MediaStreamTrack.cpp 124 void MediaStreamTrack::getSources(ExecutionContext* context, PassOwnPtr<MediaStreamTrackSourcesCallback> callback, ExceptionState& exceptionState)
128 exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::failedToExecute("getSources", "MediaStreamTrack", "Functionality not implemented yet"));
131 void MediaStreamTrack::stopTrack(ExceptionState& exceptionState)
  /external/chromium_org/third_party/WebKit/Source/core/css/
CSSPrimitiveValue.cpp 24 #include "bindings/v8/ExceptionState.h"
688 void CSSPrimitiveValue::setFloatValue(unsigned short, double, ExceptionState& exceptionState)
693 exceptionState.throwDOMException(NoModificationAllowedError, "CSSPrimitiveValue objects are read-only.");
748 double CSSPrimitiveValue::getDoubleValue(UnitType unitType, ExceptionState& exceptionState) const
753 exceptionState.throwDOMException(InvalidAccessError, "Failed to obtain a double value.");
919 void CSSPrimitiveValue::setStringValue(unsigned short, const String&, ExceptionState& exceptionState)
924 exceptionState.throwDOMException(NoModificationAllowedError, "CSSPrimitiveValue objects are read-only.")
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/dom/custom/
CustomElementRegistrationContext.cpp 34 #include "bindings/v8/ExceptionState.h"
54 void CustomElementRegistrationContext::registerElement(Document* document, CustomElementConstructorBuilder* constructorBuilder, const AtomicString& type, CustomElement::NameSet validNames, ExceptionState& exceptionState)
56 CustomElementDefinition* definition = m_registry.registerElement(document, constructorBuilder, type, validNames, exceptionState);
  /external/chromium_org/third_party/WebKit/Source/modules/filesystem/
SyncCallbackHelper.h 35 #include "bindings/v8/ExceptionState.h"
79 ResultReturnType getResult(ExceptionState& exceptionState)
82 FileError::throwDOMException(exceptionState, m_errorCode);
  /external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
IDBDatabase.h 50 class ExceptionState;
76 IDBObjectStore* createObjectStore(const String& name, const Dictionary&, ExceptionState&);
77 IDBObjectStore* createObjectStore(const String& name, const IDBKeyPath&, bool autoIncrement, ExceptionState&);
78 IDBTransaction* transaction(ExecutionContext* context, PassRefPtrWillBeRawPtr<DOMStringList> scope, const String& mode, ExceptionState& exceptionState) { return transaction(context, *scope, mode, exceptionState); }
79 IDBTransaction* transaction(ExecutionContext*, const Vector<String>&, const String& mode, ExceptionState&);
80 IDBTransaction* transaction(ExecutionContext*, const String&, const String& mode, ExceptionState&);
81 void deleteObjectStore(const String& name, ExceptionState&);

Completed in 1657 milliseconds

1 2 3 4 5 6 7 891011>>