OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Additional set of macros for the JS RPC. | 5 // Additional set of macros for the JS RPC. |
6 | 6 |
7 #ifndef WEBKIT_GLUE_DEVTOOLS_DEVTOOLS_RPC_JS_H_ | 7 #ifndef WEBKIT_GLUE_DEVTOOLS_DEVTOOLS_RPC_JS_H_ |
8 #define WEBKIT_GLUE_DEVTOOLS_DEVTOOLS_RPC_JS_H_ | 8 #define WEBKIT_GLUE_DEVTOOLS_DEVTOOLS_RPC_JS_H_ |
9 | 9 |
10 // Do not remove this one although it is not used. | 10 // Do not remove this one although it is not used. |
11 #include <wtf/Noncopyable.h> | 11 #include <wtf/Noncopyable.h> |
12 #include <wtf/OwnPtr.h> | 12 #include <wtf/OwnPtr.h> |
13 | 13 |
14 #include "webkit/api/public/WebFrame.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
15 #include "webkit/glue/devtools/bound_object.h" | 15 #include "webkit/glue/devtools/bound_object.h" |
16 #include "webkit/glue/devtools/devtools_rpc.h" | 16 #include "webkit/glue/devtools/devtools_rpc.h" |
17 #include "webkit/glue/glue_util.h" | 17 #include "webkit/glue/glue_util.h" |
18 | 18 |
19 /////////////////////////////////////////////////////// | 19 /////////////////////////////////////////////////////// |
20 // JS RPC binds and stubs | 20 // JS RPC binds and stubs |
21 | 21 |
22 #define TOOLS_RPC_JS_BIND_METHOD0(Method) \ | 22 #define TOOLS_RPC_JS_BIND_METHOD0(Method) \ |
23 bound_obj_->AddProtoFunction(#Method, OCLASS::Js##Method); | 23 bound_obj_->AddProtoFunction(#Method, OCLASS::Js##Method); |
24 | 24 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 #Class, \ | 102 #Class, \ |
103 method, \ | 103 method, \ |
104 param1, \ | 104 param1, \ |
105 param2, \ | 105 param2, \ |
106 param3); \ | 106 param3); \ |
107 } \ | 107 } \ |
108 OwnPtr<BoundObject> bound_obj_; \ | 108 OwnPtr<BoundObject> bound_obj_; \ |
109 }; | 109 }; |
110 | 110 |
111 #endif // WEBKIT_GLUE_DEVTOOLS_DEVTOOLS_RPC_JS_H_ | 111 #endif // WEBKIT_GLUE_DEVTOOLS_DEVTOOLS_RPC_JS_H_ |
OLD | NEW |