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

Side by Side Diff: Source/bindings/core/v8/inspector/V8InjectedScriptHost.h

Issue 1157313006: DevTools: extract common inspector bindigns code into InspectorWrapper (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8InjectedScriptHost_h 5 #ifndef V8InjectedScriptHost_h
6 #define V8InjectedScriptHost_h 6 #define V8InjectedScriptHost_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "wtf/Forward.h" 9 #include "wtf/Forward.h"
10 #include <v8.h> 10 #include <v8.h>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class InjectedScriptHost; 14 class InjectedScriptHost;
15 15
16 class V8InjectedScriptHost { 16 class V8InjectedScriptHost {
17 public: 17 public:
18 static v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::FunctionTempla te> constructorTemplate, PassRefPtrWillBeRawPtr<InjectedScriptHost>); 18 static v8::Local<v8::Object> wrap(v8::Local<v8::FunctionTemplate> constructo rTemplate, v8::Local<v8::Context>, PassRefPtrWillBeRawPtr<InjectedScriptHost>);
19 static InjectedScriptHost* toImpl(v8::Local<v8::Object>); 19 static InjectedScriptHost* unwrap(v8::Local<v8::Object>);
20 static v8::Local<v8::FunctionTemplate> createWrapperTemplate(v8::Isolate*); 20 static v8::Local<v8::FunctionTemplate> createWrapperTemplate(v8::Isolate*);
21 21
22 static void clearConsoleMessagesCallback(const v8::FunctionCallbackInfo<v8:: Value>&); 22 static void clearConsoleMessagesCallback(const v8::FunctionCallbackInfo<v8:: Value>&);
23 static void inspectCallback(const v8::FunctionCallbackInfo<v8::Value>&); 23 static void inspectCallback(const v8::FunctionCallbackInfo<v8::Value>&);
24 static void inspectedObjectCallback(const v8::FunctionCallbackInfo<v8::Value >&); 24 static void inspectedObjectCallback(const v8::FunctionCallbackInfo<v8::Value >&);
25 static void internalConstructorNameCallback(const v8::FunctionCallbackInfo<v 8::Value>&); 25 static void internalConstructorNameCallback(const v8::FunctionCallbackInfo<v 8::Value>&);
26 static void isDOMWrapperCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 26 static void isDOMWrapperCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
27 static void isHTMLAllCollectionCallback(const v8::FunctionCallbackInfo<v8::V alue>&); 27 static void isHTMLAllCollectionCallback(const v8::FunctionCallbackInfo<v8::V alue>&);
28 static void isTypedArrayCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 28 static void isTypedArrayCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
29 static void subtypeCallback(const v8::FunctionCallbackInfo<v8::Value>&); 29 static void subtypeCallback(const v8::FunctionCallbackInfo<v8::Value>&);
30 static void functionDetailsCallback(const v8::FunctionCallbackInfo<v8::Value >&); 30 static void functionDetailsCallback(const v8::FunctionCallbackInfo<v8::Value >&);
31 static void generatorObjectDetailsCallback(const v8::FunctionCallbackInfo<v8 ::Value>&); 31 static void generatorObjectDetailsCallback(const v8::FunctionCallbackInfo<v8 ::Value>&);
32 static void collectionEntriesCallback(const v8::FunctionCallbackInfo<v8::Val ue>&); 32 static void collectionEntriesCallback(const v8::FunctionCallbackInfo<v8::Val ue>&);
33 static void getInternalPropertiesCallback(const v8::FunctionCallbackInfo<v8: :Value>&); 33 static void getInternalPropertiesCallback(const v8::FunctionCallbackInfo<v8: :Value>&);
34 static void getEventListenersCallback(const v8::FunctionCallbackInfo<v8::Val ue>&); 34 static void getEventListenersCallback(const v8::FunctionCallbackInfo<v8::Val ue>&);
35 static void evalCallback(const v8::FunctionCallbackInfo<v8::Value>&); 35 static void evalCallback(const v8::FunctionCallbackInfo<v8::Value>&);
36 static void evaluateWithExceptionDetailsCallback(const v8::FunctionCallbackI nfo<v8::Value>&); 36 static void evaluateWithExceptionDetailsCallback(const v8::FunctionCallbackI nfo<v8::Value>&);
37 static void debugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& ); 37 static void debugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& );
38 static void undebugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value >&); 38 static void undebugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value >&);
39 static void monitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Value >&); 39 static void monitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Value >&);
40 static void unmonitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Val ue>&); 40 static void unmonitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Val ue>&);
41 static void callFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 41 static void callFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
42 static void suppressWarningsAndCallFunctionCallback(const v8::FunctionCallba ckInfo<v8::Value>&); 42 static void suppressWarningsAndCallFunctionCallback(const v8::FunctionCallba ckInfo<v8::Value>&);
43 static void setNonEnumPropertyCallback(const v8::FunctionCallbackInfo<v8::Va lue>&); 43 static void setNonEnumPropertyCallback(const v8::FunctionCallbackInfo<v8::Va lue>&);
44 static void setFunctionVariableValueCallback(const v8::FunctionCallbackInfo< v8::Value>&); 44 static void setFunctionVariableValueCallback(const v8::FunctionCallbackInfo< v8::Value>&);
45 static void bindCallback(const v8::FunctionCallbackInfo<v8::Value>&); 45 static void bindCallback(const v8::FunctionCallbackInfo<v8::Value>&);
46 static void objectForIdCallback(const v8::FunctionCallbackInfo<v8::Value>&); 46 static void objectForIdCallback(const v8::FunctionCallbackInfo<v8::Value>&);
47 static void idToObjectGroupNameCallback(const v8::FunctionCallbackInfo<v8::V alue>&); 47 static void idToObjectGroupNameCallback(const v8::FunctionCallbackInfo<v8::V alue>&);
48
49 private:
50 static v8::Local<v8::String> hiddenPropertyName(v8::Isolate*);
51 }; 48 };
52 49
53 } // namespace blink 50 } // namespace blink
54 51
55 #endif // V8InjectedScriptHost_h 52 #endif // V8InjectedScriptHost_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/inspector/InspectorWrapper.cpp ('k') | Source/bindings/core/v8/inspector/V8InjectedScriptHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698