| 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)
|
|
|