/external/chromium_org/third_party/WebKit/Source/core/xml/ |
XMLHttpRequest.cpp | 26 #include "bindings/v8/ExceptionState.h" 218 ScriptString XMLHttpRequest::responseText(ExceptionState& exceptionState) 221 exceptionState.throwDOMException(InvalidStateError, "The value is only accessible if the object's 'responseType' is '' or 'text' (was '" + responseType() + "')."); 238 Document* XMLHttpRequest::responseXML(ExceptionState& exceptionState) 241 exceptionState.throwDOMException(InvalidStateError, "The value is only accessible if the object's 'responseType' is '' or 'document' (was '" + responseType() + "')."); 341 void XMLHttpRequest::setTimeout(unsigned long timeout, ExceptionState& exceptionState) 346 exceptionState.throwDOMException(InvalidAccessError, "Timeouts cannot be set for synchronous requests made from a (…) [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8WindowCustom.cpp | 38 #include "bindings/v8/ExceptionState.h" 73 static void windowSetTimeoutImpl(const v8::FunctionCallbackInfo<v8::Value>& info, bool singleShot, ExceptionState& exceptionState) 82 exceptionState.throwDOMException(InvalidAccessError, "No script context is available in which to execute the script."); 107 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->frame(), exceptionState)) 154 ExceptionState exceptionState(ExceptionState::GetterContext, "event", "Window", info.Holder(), info.GetIsolate()); 155 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), frame, exceptionState)) { 156 exceptionState.throwIfNeeded() [all...] |
V8HTMLDocumentCustom.cpp | 86 ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "Document", info.Holder(), info.GetIsolate()); 87 htmlDocument->open(callingDOMWindow(info.GetIsolate())->document(), exceptionState); 88 if (exceptionState.throwIfNeeded())
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
FontFace.cpp | 35 #include "bindings/v8/ExceptionState.h" 106 static bool initFontFace(FontFace* fontFace, ExecutionContext* context, const AtomicString& family, const Dictionary& descriptors, ExceptionState& exceptionState) 108 fontFace->setFamily(context, family, exceptionState); 109 if (exceptionState.hadException()) 114 fontFace->setStyle(context, value, exceptionState); 115 if (exceptionState.hadException()) 119 fontFace->setWeight(context, value, exceptionState); 120 if (exceptionState.hadException()) 124 fontFace->setStretch(context, value, exceptionState); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGPoint.cpp | 35 #include "bindings/v8/ExceptionState.h" 69 void SVGPoint::parse(const CharType*& ptr, const CharType* end, ExceptionState& exceptionState) 80 exceptionState.throwDOMException(SyntaxError, "Problem parsing point \"" + String(start, end - start) + "\""); 86 exceptionState.throwDOMException(SyntaxError, "Problem parsing point \"" + String(start, end - start) + "\""); 100 void SVGPoint::setValueAsString(const String& string, ExceptionState& exceptionState) 110 parse(ptr, end, exceptionState); 116 parse(ptr, end, exceptionState);
|
SVGTextContentElement.cpp | 25 #include "bindings/v8/ExceptionState.h" 97 float SVGTextContentElement::getSubStringLength(unsigned charnum, unsigned nchars, ExceptionState& exceptionState) 103 exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("charnum", charnum, getNumberOfChars())); 113 PassRefPtr<SVGPointTearOff> SVGTextContentElement::getStartPositionOfChar(unsigned charnum, ExceptionState& exceptionState) 118 exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("charnum", charnum, getNumberOfChars())); 126 PassRefPtr<SVGPointTearOff> SVGTextContentElement::getEndPositionOfChar(unsigned charnum, ExceptionState& exceptionState) 131 exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("charnum", charnum, (…) [all...] |
SVGBoolean.cpp | 35 #include "bindings/v8/ExceptionState.h" 54 void SVGBoolean::setValueAsString(const String& value, ExceptionState& exceptionState) 61 exceptionState.throwDOMException(SyntaxError, "The value provided ('" + value + "') is invalid.");
|
SVGStringList.cpp | 45 String SVGStringList::getItem(size_t index, ExceptionState& exceptionState) 47 if (!checkIndexBound(index, exceptionState)) 64 String SVGStringList::removeItem(size_t index, ExceptionState& exceptionState) 66 if (!checkIndexBound(index, exceptionState)) 79 void SVGStringList::replaceItem(const String& newItem, size_t index, ExceptionState& exceptionState) 81 if (!checkIndexBound(index, exceptionState)) 111 void SVGStringList::setValueAsString(const String& data, ExceptionState& [all...] |
/external/chromium_org/third_party/WebKit/Source/core/workers/ |
Worker.cpp | 31 #include "bindings/v8/ExceptionState.h" 53 PassRefPtrWillBeRawPtr<Worker> Worker::create(ExecutionContext* context, const String& url, ExceptionState& exceptionState) 59 exceptionState.throwDOMException(InvalidAccessError, "The context provided is invalid."); 69 KURL scriptURL = worker->resolveURL(url, exceptionState); 95 void Worker::postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, ExceptionState& exceptionState) 98 OwnPtr<MessagePortChannelArray> channels = MessagePort::disentanglePorts(ports, exceptionState); 99 if (exceptionState.hadException())
|
/external/chromium_org/third_party/WebKit/Source/core/fileapi/ |
FileReader.cpp | 34 #include "bindings/v8/ExceptionState.h" 169 void FileReader::readAsArrayBuffer(Blob* blob, ExceptionState& exceptionState) 172 exceptionState.throwTypeError("The argument is not a Blob."); 178 readInternal(blob, FileReaderLoader::ReadAsArrayBuffer, exceptionState); 181 void FileReader::readAsBinaryString(Blob* blob, ExceptionState& exceptionState) 184 exceptionState.throwTypeError("The argument is not a Blob."); 190 readInternal(blob, FileReaderLoader::ReadAsBinaryString, exceptionState); 193 void FileReader::readAsText(Blob* blob, const String& encoding, ExceptionState& exceptionState [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/ |
WorkerGlobalScopeFileSystem.cpp | 31 #include "bindings/v8/ExceptionState.h" 65 DOMFileSystemSync* WorkerGlobalScopeFileSystem::webkitRequestFileSystemSync(WorkerGlobalScope& worker, int type, long long size, ExceptionState& exceptionState) 69 exceptionState.throwSecurityError(FileError::securityErrorMessage); 75 exceptionState.throwDOMException(InvalidModificationError, "the type must be TEMPORARY or PERSISTENT."); 84 return helper->getResult(exceptionState); 104 EntrySync* WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemSyncURL(WorkerGlobalScope& worker, const String& url, ExceptionState& exceptionState) 109 exceptionState.throwSecurityError(FileError::securityErrorMessage); 114 exceptionState.throwDOMException(EncodingError, "the URL '" + url + "' is invalid.") [all...] |
FileWriter.cpp | 34 #include "bindings/v8/ExceptionState.h" 90 void FileWriter::write(Blob* data, ExceptionState& exceptionState) 96 setError(FileError::INVALID_STATE_ERR, exceptionState); 100 setError(FileError::TYPE_MISMATCH_ERR, exceptionState); 104 setError(FileError::SECURITY_ERR, exceptionState); 123 void FileWriter::seek(long long position, ExceptionState& exceptionState) 127 setError(FileError::INVALID_STATE_ERR, exceptionState); 136 void FileWriter::truncate(long long position, ExceptionState& exceptionState [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/mediastream/ |
UserMediaRequest.cpp | 38 #include "bindings/v8/ExceptionState.h" 50 static blink::WebMediaConstraints parseOptions(const Dictionary& options, const String& mediaType, ExceptionState& exceptionState) 57 constraints = MediaConstraintsImpl::create(constraintsDictionary, exceptionState); 68 PassRefPtrWillBeRawPtr<UserMediaRequest> UserMediaRequest::create(ExecutionContext* context, UserMediaController* controller, const Dictionary& options, PassOwnPtr<NavigatorUserMediaSuccessCallback> successCallback, PassOwnPtr<NavigatorUserMediaErrorCallback> errorCallback, ExceptionState& exceptionState) 70 blink::WebMediaConstraints audio = parseOptions(options, "audio", exceptionState); 71 if (exceptionState.hadException()) 74 blink::WebMediaConstraints video = parseOptions(options, "video", exceptionState); 75 if (exceptionState.hadException() [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/tests/results/ |
V8TestInterfaceConstructor.cpp | 12 #include "bindings/v8/ExceptionState.h" 52 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), isolate); 55 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(executionContext, document, exceptionState); 56 if (exceptionState.throwIfNeeded()) 67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), isolate); 84 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not an object.") [all...] |
/external/chromium_org/third_party/WebKit/Source/core/clipboard/ |
DataTransferItemList.cpp | 30 #include "bindings/v8/ExceptionState.h" 65 void DataTransferItemList::deleteItem(unsigned long index, ExceptionState& exceptionState) 68 exceptionState.throwDOMException(InvalidStateError, "The list is not writable."); 81 PassRefPtrWillBeRawPtr<DataTransferItem> DataTransferItemList::add(const String& data, const String& type, ExceptionState& exceptionState) 87 exceptionState.throwDOMException(NotSupportedError, "An item already exists for type '" + type + "'.");
|
/external/chromium_org/third_party/WebKit/Source/core/editing/ |
MergeIdenticalElementsCommand.cpp | 29 #include "bindings/v8/ExceptionState.h" 74 TrackExceptionState exceptionState; 76 parent->insertBefore(m_element1.get(), m_element2.get(), exceptionState); 77 if (exceptionState.hadException()) 86 m_element1->appendChild(children[i].release(), exceptionState);
|
SplitElementCommand.cpp | 29 #include "bindings/v8/ExceptionState.h" 56 TrackExceptionState exceptionState; 61 parent->insertBefore(m_element1.get(), m_element2.get(), exceptionState); 62 if (exceptionState.hadException()) 70 m_element1->appendChild(children[i], exceptionState);
|
SplitTextNodeCommand.cpp | 29 #include "bindings/v8/ExceptionState.h" 99 TrackExceptionState exceptionState; 100 m_text2->parentNode()->insertBefore(m_text1.get(), m_text2.get(), exceptionState); 101 if (exceptionState.hadException()) 103 m_text2->deleteData(0, m_offset, exceptionState, CharacterData::DeprecatedRecalcStyleImmediatlelyForEditing);
|
/external/chromium_org/third_party/WebKit/Source/core/html/track/vtt/ |
VTTRegion.cpp | 35 #include "bindings/v8/ExceptionState.h" 71 static bool isNonPercentage(double value, const char* method, ExceptionState& exceptionState) 74 exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexOutsideRange("value", value, 0.0, ExceptionMessages::InclusiveBound, 100.0, ExceptionMessages::InclusiveBound)); 107 void VTTRegion::setWidth(double value, ExceptionState& exceptionState) 109 if (isNonPercentage(value, "width", exceptionState)) 115 void VTTRegion::setHeight(long value, ExceptionState& exceptionState) 118 exceptionState.throwDOMException(IndexSizeError, "The height provided (" + String::number(value) + ") is negative (…) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/loader/appcache/ |
ApplicationCache.cpp | 29 #include "bindings/v8/ExceptionState.h" 70 void ApplicationCache::update(ExceptionState& exceptionState) 74 exceptionState.throwDOMException(InvalidStateError, "there is no application cache to update."); 77 void ApplicationCache::swapCache(ExceptionState& exceptionState) 81 exceptionState.throwDOMException(InvalidStateError, "there is no newer application cache to swap to.");
|
/external/chromium_org/third_party/WebKit/Source/modules/encoding/ |
TextDecoder.cpp | 35 #include "bindings/v8/ExceptionState.h" 42 TextDecoder* TextDecoder::create(const String& label, const Dictionary& options, ExceptionState& exceptionState) 50 exceptionState.throwTypeError("The encoding label provided ('" + encodingLabel + "') is invalid."); 87 String TextDecoder::decode(ArrayBufferView* input, const Dictionary& options, ExceptionState& exceptionState) 101 exceptionState.throwDOMException(EncodingError, "The encoded data was not valid.");
|
TextEncoder.cpp | 36 #include "bindings/v8/ExceptionState.h" 42 TextEncoder* TextEncoder::create(const String& utfLabel, ExceptionState& exceptionState) 48 exceptionState.throwTypeError("The encoding label provided ('" + encodingLabel + "') is invalid."); 54 exceptionState.throwTypeError("The encoding provided ('" + encodingLabel + "') is not one of 'utf-8', 'utf-16', or 'utf-16be'.");
|
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
V8Callback.h | 34 #include "bindings/v8/ExceptionState.h" 57 PassOwnPtr<V8CallbackType> createFunctionOnlyCallback(v8::Local<v8::Value> value, unsigned index, bool& succeeded, v8::Isolate* isolate, ExceptionState& exceptionState, CallbackAllowedValueFlags acceptedValues = 0) 69 exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::argumentNullOrIncorrectType(index, "Function")); 70 exceptionState.throwIfNeeded();
|
/external/chromium_org/third_party/WebKit/Source/core/timing/ |
PerformanceUserTiming.cpp | 29 #include "bindings/v8/ExceptionState.h" 101 void UserTiming::mark(const String& markName, ExceptionState& exceptionState) 104 exceptionState.throwDOMException(SyntaxError, "'" + markName + "' is part of the PerformanceTiming interface, and cannot be used as a mark name."); 118 double UserTiming::findExistingMarkStartTime(const String& markName, ExceptionState& exceptionState) 126 exceptionState.throwDOMException(InvalidAccessError, "'" + markName + "' is empty: either the event hasn't happened yet, or it would provide cross-origin timing information."); 132 exceptionState.throwDOMException(SyntaxError, "The mark '" + markName + "' does not exist."); 136 void UserTiming::measure(const String& measureName, const String& startMark, const String& endMark, ExceptionState& exceptionState) [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
WebSerializedScriptValue.cpp | 34 #include "bindings/v8/ExceptionState.h" 49 WebCore::TrackExceptionState exceptionState; 50 WebSerializedScriptValue serializedValue = SerializedScriptValue::create(value, 0, 0, exceptionState, v8::Isolate::GetCurrent()); 51 if (exceptionState.hadException())
|