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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011, Google Inc. 1 // Copyright 2012, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of conditions and the following disclaimer 11 // copyright notice, this list of conditions and the following disclaimer
12 // in the documentation and/or other materials provided with the 12 // in the documentation and/or other materials provided with the
13 // distribution. 13 // distribution.
14 // * Neither the name of Google Inc. nor the names of its 14 // * Neither the name of Google Inc. nor the names of its
15 // contributors may be used to endorse or promote products derived from 15 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission. 16 // this software without specific prior written permission.
17 // 17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "DartInspectorFrontendHost.h" 31 #include "DartUint8ClampedArray.h"
32 32
33 #if ENABLE(INSPECTOR) 33 #include "DartArrayBufferViewCustom.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 namespace DartInspectorFrontendHostInternal { 37 Dart_Handle toDartValue(Uint8ClampedArray* value)
38
39 void platformCallback(Dart_NativeArguments)
40 { 38 {
41 // FIXME: proper implementation. 39 // We may have to customize it, once typed arrays are in the VM.
42 DART_UNIMPLEMENTED(); 40 return DartDOMWrapper::toDart<DartUint8ClampedArray>(value);
43 } 41 }
44 42
45 void portCallback(Dart_NativeArguments) 43 namespace DartUint8ClampedArrayInternal {
44
45 void constructorCallback(Dart_NativeArguments args)
46 { 46 {
47 // FIXME: proper implementation.
48 DART_UNIMPLEMENTED();
49 }
50
51 void showContextMenuCallback(Dart_NativeArguments)
52 {
53 // FIXME: proper implementation.
54 DART_UNIMPLEMENTED();
55 }
56
57 void recordActionTakenCallback(Dart_NativeArguments)
58 {
59 // FIXME: proper implementation.
60 DART_UNIMPLEMENTED();
61 }
62
63 void recordPanelShownCallback(Dart_NativeArguments)
64 {
65 // FIXME: proper implementation.
66 DART_UNIMPLEMENTED();
67 }
68
69 void recordSettingChangedCallback(Dart_NativeArguments)
70 {
71 // FIXME: proper implementation.
72 DART_UNIMPLEMENTED(); 47 DART_UNIMPLEMENTED();
73 } 48 }
74 49
75 } 50 }
76 51
77 } 52 }
78
79 #endif // ENABLE(INSPECTOR)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698