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

Unified Diff: Source/WebCore/bindings/dart/custom/DartUint8ClampedArrayCustom.cpp

Issue 9350041: Switch to dartgenerator.py for C++ callbacks generation. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 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
Index: Source/WebCore/bindings/dart/custom/DartUint8ClampedArrayCustom.cpp
diff --git a/Source/WebCore/bindings/dart/custom/DartInspectorFrontendHostCustom.cpp b/Source/WebCore/bindings/dart/custom/DartUint8ClampedArrayCustom.cpp
similarity index 65%
rename from Source/WebCore/bindings/dart/custom/DartInspectorFrontendHostCustom.cpp
rename to Source/WebCore/bindings/dart/custom/DartUint8ClampedArrayCustom.cpp
index d0ca8b505ad283e15da824dfb2cbd3c6e8643da5..6527259ba6e08d3656e243c378840b00228d41d4 100644
--- a/Source/WebCore/bindings/dart/custom/DartInspectorFrontendHostCustom.cpp
+++ b/Source/WebCore/bindings/dart/custom/DartUint8ClampedArrayCustom.cpp
@@ -1,4 +1,4 @@
-// Copyright 2011, Google Inc.
+// Copyright 2012, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
@@ -28,52 +28,25 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "config.h"
-#include "DartInspectorFrontendHost.h"
+#include "DartUint8ClampedArray.h"
-#if ENABLE(INSPECTOR)
+#include "DartArrayBufferViewCustom.h"
namespace WebCore {
-namespace DartInspectorFrontendHostInternal {
-
-void platformCallback(Dart_NativeArguments)
-{
- // FIXME: proper implementation.
- DART_UNIMPLEMENTED();
-}
-
-void portCallback(Dart_NativeArguments)
-{
- // FIXME: proper implementation.
- DART_UNIMPLEMENTED();
-}
-
-void showContextMenuCallback(Dart_NativeArguments)
+Dart_Handle toDartValue(Uint8ClampedArray* value)
{
- // FIXME: proper implementation.
- DART_UNIMPLEMENTED();
+ // We may have to customize it, once typed arrays are in the VM.
+ return DartDOMWrapper::toDart<DartUint8ClampedArray>(value);
}
-void recordActionTakenCallback(Dart_NativeArguments)
-{
- // FIXME: proper implementation.
- DART_UNIMPLEMENTED();
-}
+namespace DartUint8ClampedArrayInternal {
-void recordPanelShownCallback(Dart_NativeArguments)
+void constructorCallback(Dart_NativeArguments args)
{
- // FIXME: proper implementation.
- DART_UNIMPLEMENTED();
-}
-
-void recordSettingChangedCallback(Dart_NativeArguments)
-{
- // FIXME: proper implementation.
DART_UNIMPLEMENTED();
}
}
}
-
-#endif // ENABLE(INSPECTOR)

Powered by Google App Engine
This is Rietveld 408576698