/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8WebGLRenderingContextCustom.cpp | 88 static float* jsArrayToFloatArray(v8::Handle<v8::Array> array, uint32_t len, ExceptionState& exceptionState) 92 exceptionState.throwTypeError("Array length exceeds supported limit."); 99 float value = toFloat(val, exceptionState); 100 if (exceptionState.hadException()) { 111 static int* jsArrayToIntArray(v8::Handle<v8::Array> array, uint32_t len, ExceptionState& exceptionState) 115 exceptionState.throwTypeError("Array length exceeds supported limit."); 122 int ival = toInt32(val, exceptionState); 123 if (exceptionState.hadException()) [all...] |
V8HistoryCustom.cpp | 35 #include "bindings/v8/ExceptionState.h" 64 ExceptionState exceptionState(ExceptionState::ExecutionContext, "pushState", "History", info.Holder(), info.GetIsolate()); 65 RefPtr<SerializedScriptValue> historyState = SerializedScriptValue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); 66 if (exceptionState.throwIfNeeded()) 73 history->stateObjectAdded(historyState.release(), title, url, FrameLoadTypeStandard, exceptionState); 75 exceptionState.throwIfNeeded(); 80 ExceptionState exceptionState(ExceptionState::ExecutionContext, "replaceState", "History", info.Holder(), info.GetIsolate()) [all...] |
V8SQLResultSetRowListCustom.cpp | 35 #include "bindings/v8/ExceptionState.h" 44 ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "SQLResultSetRowList", info.Holder(), info.GetIsolate()); 46 exceptionState.throwDOMException(SyntaxError, ExceptionMessages::notEnoughArguments(1, 0)); 47 exceptionState.throwIfNeeded(); 52 exceptionState.throwTypeError("The index provided is not a number."); 53 exceptionState.throwIfNeeded(); 61 exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound<unsigned>("index", index, rowList->length())); 62 exceptionState.throwIfNeeded() [all...] |
V8SQLTransactionSyncCustom.cpp | 35 #include "bindings/v8/ExceptionState.h" 49 ExceptionState exceptionState(ExceptionState::ExecutionContext, "executeSql", "SQLTransactionSync", info.Holder(), info.GetIsolate()); 51 exceptionState.throwDOMException(SyntaxError, ExceptionMessages::notEnoughArguments(1, 0)); 52 exceptionState.throwIfNeeded(); 62 exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::argumentNullOrIncorrectType(1, "DOMString")); 63 exceptionState.throwIfNeeded(); 94 v8::Handle<v8::Value> result = toV8(transaction->executeSQL(statement, sqlValues, exceptionState), info.Holder(), info.GetIsolate()); 95 if (exceptionState.throwIfNeeded() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
Range.cpp | 28 #include "bindings/v8/ExceptionState.h" 157 void Range::setStart(PassRefPtrWillBeRawPtr<Node> refNode, int offset, ExceptionState& exceptionState) 160 exceptionState.throwDOMException(NotFoundError, "The node provided was null."); 170 Node* childNode = checkNodeWOffset(refNode.get(), offset, exceptionState); 171 if (exceptionState.hadException()) 180 void Range::setEnd(PassRefPtrWillBeRawPtr<Node> refNode, int offset, ExceptionState& exceptionState) 183 exceptionState.throwDOMException(NotFoundError, "The node provided was null."); 193 Node* childNode = checkNodeWOffset(refNode.get(), offset, exceptionState); [all...] |
DOMURL.h | 39 class ExceptionState; 45 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, ExceptionState& exceptionState) 47 return adoptRefWillBeNoop(new DOMURL(url, blankURL(), exceptionState)); 49 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, const String& base, ExceptionState& exceptionState) 51 return adoptRefWillBeNoop(new DOMURL(url, KURL(KURL(), base), exceptionState)); 53 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, PassRefPtrWillBeRawPtr<DOMURL> base, ExceptionState& exceptionState) 56 return adoptRefWillBeNoop(new DOMURL(url, base->m_url, exceptionState)); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/dom/custom/ |
CustomElementRegistry.cpp | 64 CustomElementDefinition* CustomElementRegistry::registerElement(Document* document, CustomElementConstructorBuilder* constructorBuilder, const AtomicString& userSuppliedName, CustomElement::NameSet validNames, ExceptionState& exceptionState) 75 CustomElementException::throwException(CustomElementException::CannotRegisterFromExtension, type, exceptionState); 80 CustomElementException::throwException(CustomElementException::InvalidName, type, exceptionState); 85 if (!constructorBuilder->validateOptions(type, tagName, exceptionState)) 92 CustomElementException::throwException(CustomElementException::TypeAlreadyRegistered, type, exceptionState); 103 CustomElementException::throwException(CustomElementException::ContextDestroyedCreatingCallbacks, type, exceptionState); 110 if (!constructorBuilder->createConstructor(document, definition.get(), exceptionState)) 117 CustomElementException::throwException(CustomElementException::ContextDestroyedRegisteringDefinition, type, exceptionState);
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGNumberTearOff.cpp | 35 #include "bindings/v8/ExceptionState.h" 46 void SVGNumberTearOff::setValue(float f, ExceptionState& exceptionState) 49 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
|
SVGLengthTearOff.cpp | 35 #include "bindings/v8/ExceptionState.h" 60 float SVGLengthTearOff::value(ExceptionState& es) 66 void SVGLengthTearOff::setValue(float value, ExceptionState& es) 83 void SVGLengthTearOff::setValueInSpecifiedUnits(float value, ExceptionState& es) 98 void SVGLengthTearOff::setValueAsString(const String& str, ExceptionState& es) 109 void SVGLengthTearOff::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState& exceptionState) 112 exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only."); 117 exceptionState.throwDOMException(NotSupportedError, "Cannot set value with unknown or invalid units (" + String::number(unitType) + ")."); 125 void SVGLengthTearOff::convertToSpecifiedUnits(unsigned short unitType, ExceptionState& exceptionState [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/ |
EntrySync.cpp | 35 #include "bindings/v8/ExceptionState.h" 53 Metadata* EntrySync::getMetadata(ExceptionState& exceptionState) 57 return helper->getResult(exceptionState); 60 EntrySync* EntrySync::moveTo(DirectoryEntrySync* parent, const String& name, ExceptionState& exceptionState) const 64 return helper->getResult(exceptionState); 67 EntrySync* EntrySync::copyTo(DirectoryEntrySync* parent, const String& name, ExceptionState& exceptionState) const 71 return helper->getResult(exceptionState); [all...] |
DirectoryEntrySync.cpp | 35 #include "bindings/v8/ExceptionState.h" 54 FileEntrySync* DirectoryEntrySync::getFile(const String& path, const Dictionary& options, ExceptionState& exceptionState) 59 return static_cast<FileEntrySync*>(helper->getResult(exceptionState)); 62 DirectoryEntrySync* DirectoryEntrySync::getDirectory(const String& path, const Dictionary& options, ExceptionState& exceptionState) 67 return static_cast<DirectoryEntrySync*>(helper->getResult(exceptionState)); 70 void DirectoryEntrySync::removeRecursively(ExceptionState& exceptionState) 74 helper->getResult(exceptionState); [all...] |
FileWriterSync.cpp | 35 #include "bindings/v8/ExceptionState.h" 43 void FileWriterSync::write(Blob* data, ExceptionState& exceptionState) 48 exceptionState.throwDOMException(TypeMismatchError, FileError::typeMismatchErrorMessage); 56 FileError::throwDOMException(exceptionState, m_error); 64 void FileWriterSync::seek(long long position, ExceptionState& exceptionState) 71 void FileWriterSync::truncate(long long offset, ExceptionState& exceptionState) 76 exceptionState.throwDOMException(InvalidStateError, FileError::invalidStateErrorMessage) [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
AnalyserNode.cpp | 32 #include "bindings/v8/ExceptionState.h" 72 void AnalyserNode::setFftSize(unsigned size, ExceptionState& exceptionState) 75 exceptionState.throwDOMException( 83 void AnalyserNode::setMinDecibels(double k, ExceptionState& exceptionState) 88 exceptionState.throwDOMException( 94 void AnalyserNode::setMaxDecibels(double k, ExceptionState& exceptionState) 99 exceptionState.throwDOMException [all...] |
DelayNode.h | 35 class ExceptionState; 39 static PassRefPtrWillBeRawPtr<DelayNode> create(AudioContext* context, float sampleRate, double maxDelayTime, ExceptionState& exceptionState) 41 return adoptRefWillBeNoop(new DelayNode(context, sampleRate, maxDelayTime, exceptionState)); 47 DelayNode(AudioContext*, float sampleRate, double maxDelayTime, ExceptionState&);
|
OfflineAudioContext.cpp | 32 #include "bindings/v8/ExceptionState.h" 39 PassRefPtrWillBeRawPtr<OfflineAudioContext> OfflineAudioContext::create(ExecutionContext* context, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState& exceptionState) 43 exceptionState.throwDOMException( 52 exceptionState.throwDOMException(SyntaxError, "number of frames cannot be zero."); 57 exceptionState.throwDOMException( 70 exceptionState.throwDOMException(SyntaxError, "sample rate (" + String::number(sampleRate) + ") must be in the range 44100-96000 Hz."); 77 exceptionState.throwDOMException(
|
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
BindingSecurity.cpp | 58 static bool canAccessDocument(v8::Isolate* isolate, Document* targetDocument, ExceptionState& exceptionState) 65 exceptionState.throwSecurityError(targetDocument->domWindow()->sanitizedCrossDomainAccessErrorMessage(callingWindow), targetDocument->domWindow()->crossDomainAccessErrorMessage(callingWindow)); 90 bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, Frame* target, ExceptionState& exceptionState) 94 return canAccessDocument(isolate, toLocalFrame(target)->document(), exceptionState); 97 bool BindingSecurity::shouldAllowAccessToNode(v8::Isolate* isolate, Node* target, ExceptionState& exceptionState) 99 return target && canAccessDocument(isolate, &target->document(), exceptionState);
|
/external/chromium_org/third_party/WebKit/Source/core/fileapi/ |
Blob.h | 45 class ExceptionState; 63 virtual PassRefPtrWillBeRawPtr<Blob> slice(long long start, long long end, const String& contentType, ExceptionState&) const; 65 // To allow ExceptionState to be passed in last, manually enumerate the optional argument overloads. 66 PassRefPtrWillBeRawPtr<Blob> slice(ExceptionState& exceptionState) const 68 return slice(0, std::numeric_limits<long long>::max(), String(), exceptionState); 70 PassRefPtrWillBeRawPtr<Blob> slice(long long start, ExceptionState& exceptionState) const 72 return slice(start, std::numeric_limits<long long>::max(), String(), exceptionState); 74 PassRefPtrWillBeRawPtr<Blob> slice(long long start, long long end, ExceptionState& exceptionState) cons [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/ |
IDBFactory.cpp | 32 #include "bindings/v8/ExceptionState.h" 78 IDBRequest* IDBFactory::getDatabaseNames(ScriptState* scriptState, ExceptionState& exceptionState) 84 exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context."); 99 IDBOpenDBRequest* IDBFactory::open(ScriptState* scriptState, const String& name, unsigned long long version, ExceptionState& exceptionState) 103 exceptionState.throwTypeError("The version provided must not be 0."); 106 return openInternal(scriptState, name, version, exceptionState); 109 IDBOpenDBRequest* IDBFactory::openInternal(ScriptState* scriptState, const String& name, int64_t version, ExceptionState& exceptionState) [all...] |
IDBObjectStore.cpp | 29 #include "bindings/v8/ExceptionState.h" 88 IDBRequest* IDBObjectStore::get(ScriptState* scriptState, const ScriptValue& key, ExceptionState& exceptionState) 92 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::objectStoreDeletedErrorMessage); 96 exceptionState.throwDOMException(TransactionInactiveError, IDBDatabase::transactionFinishedErrorMessage); 100 exceptionState.throwDOMException(TransactionInactiveError, IDBDatabase::transactionInactiveErrorMessage); 103 IDBKeyRange* keyRange = IDBKeyRange::fromScriptValue(scriptState->executionContext(), key, exceptionState); 104 if (exceptionState.hadException()) 107 exceptionState.throwDOMException(DataError, IDBDatabase::noKeyOrKeyRangeErrorMessage); 111 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::databaseClosedErrorMessage) [all...] |
IDBCursor.cpp | 29 #include "bindings/v8/ExceptionState.h" 112 IDBRequest* IDBCursor::update(ScriptState* scriptState, ScriptValue& value, ExceptionState& exceptionState) 117 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::noValueErrorMessage); 121 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::isKeyCursorErrorMessage); 125 exceptionState.throwDOMException(InvalidStateError, IDBDatabase::sourceDeletedErrorMessage); 129 exceptionState.throwDOMException(TransactionInactiveError, IDBDatabase::transactionFinishedErrorMessage); 133 exceptionState.throwDOMException(TransactionInactiveError, IDBDatabase::transactionInactiveErrorMessage); 137 exceptionState.throwDOMException(ReadOnlyError, "The record may not be updated inside a read-only transaction."); 147 exceptionState.throwDOMException(DataError, "The effective object store of this cursor uses in-line keys and eval (…) [all...] |
IDBKeyRange.cpp | 29 #include "bindings/v8/ExceptionState.h" 36 IDBKeyRange* IDBKeyRange::fromScriptValue(ExecutionContext* context, const ScriptValue& value, ExceptionState& exceptionState) 47 exceptionState.throwDOMException(DataError, IDBDatabase::notValidKeyErrorMessage); 79 IDBKeyRange* IDBKeyRange::only(IDBKey* key, ExceptionState& exceptionState) 82 exceptionState.throwDOMException(DataError, IDBDatabase::notValidKeyErrorMessage); 89 IDBKeyRange* IDBKeyRange::only(ExecutionContext* context, const ScriptValue& keyValue, ExceptionState& exceptionState) 93 exceptionState.throwDOMException(DataError, IDBDatabase::notValidKeyErrorMessage) [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/mediasource/ |
SourceBuffer.cpp | 35 #include "bindings/v8/ExceptionState.h" 58 static bool throwExceptionIfRemovedOrUpdating(bool isRemoved, bool isUpdating, ExceptionState& exceptionState) 61 exceptionState.throwDOMException(InvalidStateError, "This SourceBuffer has been removed from the parent media source."); 65 exceptionState.throwDOMException(InvalidStateError, "This SourceBuffer is still processing an 'appendBuffer', 'appendStream', or 'remove' operation."); 124 void SourceBuffer::setMode(const AtomicString& newMode, ExceptionState& exceptionState) 131 if (throwExceptionIfRemovedOrUpdating(isRemoved(), m_updating, exceptionState)) 145 exceptionState.throwDOMException(InvalidStateError, "The mode may not be set while the SourceBuffer's append state is 'PARSING_MEDIA_SEGMENT'."); 153 PassRefPtr<TimeRanges> SourceBuffer::buffered(ExceptionState& exceptionState) cons [all...] |
/external/chromium_org/third_party/WebKit/Source/core/testing/ |
Internals.cpp | 31 #include "bindings/v8/ExceptionState.h" 270 unsigned Internals::updateStyleAndReturnAffectedElementCount(ExceptionState& exceptionState) const 274 exceptionState.throwDOMException(InvalidAccessError, "No context document is available."); 283 unsigned Internals::needsLayoutCount(ExceptionState& exceptionState) const 287 exceptionState.throwDOMException(InvalidAccessError, "No context frame is available."); 326 String Internals::styleResolverStatsReport(ExceptionState& exceptionState) const 330 exceptionState.throwDOMException(InvalidStateError, "Style resolver stats not enabled") [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/properties/ |
SVGListPropertyTearOffHelper.h | 34 #include "bindings/v8/ExceptionState.h" 90 void clear(ExceptionState& exceptionState) 93 exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only."); 100 PassRefPtr<ItemTearOffType> initialize(PassRefPtr<ItemTearOffType> passItem, ExceptionState& exceptionState) 105 exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only."); 110 exceptionState.throwTypeError("Lists must be initialized with a valid item."); 120 PassRefPtr<ItemTearOffType> getItem(unsigned long index, ExceptionState& exceptionState) [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/mediastream/ |
RTCDataChannel.cpp | 28 #include "bindings/v8/ExceptionState.h" 39 static void throwNotOpenException(ExceptionState& exceptionState) 41 exceptionState.throwDOMException(InvalidStateError, "RTCDataChannel.readyState is not 'open'"); 44 static void throwCouldNotSendDataException(ExceptionState& exceptionState) 46 exceptionState.throwDOMException(NetworkError, "Could not send data"); 49 static void throwNoBlobSupportException(ExceptionState& exceptionState) 51 exceptionState.throwDOMException(NotSupportedError, "Blob support not implemented yet") [all...] |