Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Unified Diff: sky/engine/core/html/canvas/DataView.cpp

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/html/canvas/DataView.h ('k') | sky/engine/core/html/canvas/DataView.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/canvas/DataView.cpp
diff --git a/sky/engine/core/html/canvas/DataView.cpp b/sky/engine/core/html/canvas/DataView.cpp
index 104d4998c0e541b8391724fb9cdb8f41f6384547..afdc8d6f9c260228bb365cf564933d02adc9cd4f 100644
--- a/sky/engine/core/html/canvas/DataView.cpp
+++ b/sky/engine/core/html/canvas/DataView.cpp
@@ -26,9 +26,7 @@
#include "sky/engine/config.h"
#include "sky/engine/core/html/canvas/DataView.h"
-#include "sky/engine/bindings/core/v8/ExceptionState.h"
-#include "sky/engine/bindings/core/v8/custom/V8DataViewCustom.h"
-#include "sky/engine/bindings/core/v8/custom/V8TypedArrayCustom.h"
+#include "sky/engine/bindings2/exception_state.h"
#include "sky/engine/core/dom/ExceptionCode.h"
#include "sky/engine/platform/CheckedInt.h"
#include "sky/engine/wtf/CPU.h"
@@ -134,7 +132,7 @@ template<typename T>
T DataView::getData(unsigned byteOffset, bool littleEndian, ExceptionState& exceptionState) const
{
if (beyondRange<T>(byteOffset)) {
- exceptionState.throwDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
+ exceptionState.ThrowDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
return 0;
}
@@ -149,7 +147,7 @@ template<typename T>
void DataView::setData(unsigned byteOffset, T value, bool littleEndian, ExceptionState& exceptionState)
{
if (beyondRange<T>(byteOffset)) {
- exceptionState.throwDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
+ exceptionState.ThrowDOMException(IndexSizeError, "The provided offset (" + String::number(byteOffset) + ") is outside the allowed range.");
return;
}
@@ -240,11 +238,6 @@ void DataView::setFloat64(unsigned byteOffset, double value, bool littleEndian,
setData<double>(byteOffset, value, littleEndian, exceptionState);
}
-v8::Handle<v8::Object> DataView::wrap(v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
-{
- return V8TypedArray<DataView>::wrap(this, creationContext, isolate);
-}
-
void DataView::neuter()
{
ArrayBufferView::neuter();
« no previous file with comments | « sky/engine/core/html/canvas/DataView.h ('k') | sky/engine/core/html/canvas/DataView.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698