OLD | NEW |
---|---|
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 "wtf/Forward.h" | 9 #include "wtf/Forward.h" |
yurys
2015/06/05 07:54:58
Actually, since this code is going to be move out
sof
2015/06/05 07:59:26
Yeah, this is a time waster - breaks things on the
| |
9 #include <v8.h> | 10 #include <v8.h> |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 class InjectedScriptHost; | 14 class InjectedScriptHost; |
14 | 15 |
15 class V8InjectedScriptHost { | 16 class V8InjectedScriptHost { |
16 public: | 17 public: |
17 static v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::FunctionTempla te> constructorTemplate, PassRefPtr<InjectedScriptHost>); | 18 static v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::FunctionTempla te> constructorTemplate, PassRefPtrWillBeRawPtr<InjectedScriptHost>); |
18 static InjectedScriptHost* toImpl(v8::Local<v8::Object>); | 19 static InjectedScriptHost* toImpl(v8::Local<v8::Object>); |
19 static v8::Local<v8::FunctionTemplate> createWrapperTemplate(v8::Isolate*); | 20 static v8::Local<v8::FunctionTemplate> createWrapperTemplate(v8::Isolate*); |
20 | 21 |
21 static void clearConsoleMessagesCallback(const v8::FunctionCallbackInfo<v8:: Value>&); | 22 static void clearConsoleMessagesCallback(const v8::FunctionCallbackInfo<v8:: Value>&); |
22 static void inspectCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 23 static void inspectCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
23 static void inspectedObjectCallback(const v8::FunctionCallbackInfo<v8::Value >&); | 24 static void inspectedObjectCallback(const v8::FunctionCallbackInfo<v8::Value >&); |
24 static void internalConstructorNameCallback(const v8::FunctionCallbackInfo<v 8::Value>&); | 25 static void internalConstructorNameCallback(const v8::FunctionCallbackInfo<v 8::Value>&); |
25 static void isDOMWrapperCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; | 26 static void isDOMWrapperCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; |
26 static void isHTMLAllCollectionCallback(const v8::FunctionCallbackInfo<v8::V alue>&); | 27 static void isHTMLAllCollectionCallback(const v8::FunctionCallbackInfo<v8::V alue>&); |
27 static void isTypedArrayCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; | 28 static void isTypedArrayCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; |
(...skipping 17 matching lines...) Expand all Loading... | |
45 static void objectForIdCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 46 static void objectForIdCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
46 static void idToObjectGroupNameCallback(const v8::FunctionCallbackInfo<v8::V alue>&); | 47 static void idToObjectGroupNameCallback(const v8::FunctionCallbackInfo<v8::V alue>&); |
47 | 48 |
48 private: | 49 private: |
49 static v8::Local<v8::String> hiddenPropertyName(v8::Isolate*); | 50 static v8::Local<v8::String> hiddenPropertyName(v8::Isolate*); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace blink | 53 } // namespace blink |
53 | 54 |
54 #endif // V8InjectedScriptHost_h | 55 #endif // V8InjectedScriptHost_h |
OLD | NEW |