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 V8RuntimeAgent_h | 5 #ifndef V8RuntimeAgent_h |
6 #define V8RuntimeAgent_h | 6 #define V8RuntimeAgent_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/inspector_protocol/Dispatcher.h" | 9 #include "platform/inspector_protocol/Dispatcher.h" |
10 #include "platform/v8_inspector/public/V8Debugger.h" | 10 #include "platform/v8_inspector/public/V8Debugger.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 static PassOwnPtr<V8RuntimeAgent> create(V8Debugger*); | 28 static PassOwnPtr<V8RuntimeAgent> create(V8Debugger*); |
29 virtual ~V8RuntimeAgent() { } | 29 virtual ~V8RuntimeAgent() { } |
30 | 30 |
31 // Embedder notification API. | 31 // Embedder notification API. |
32 virtual void reportExecutionContextCreated(v8::Local<v8::Context>, const Str
ing& type, const String& origin, const String& humanReadableName, const String&
frameId) = 0; | 32 virtual void reportExecutionContextCreated(v8::Local<v8::Context>, const Str
ing& type, const String& origin, const String& humanReadableName, const String&
frameId) = 0; |
33 virtual void reportExecutionContextDestroyed(v8::Local<v8::Context>) = 0; | 33 virtual void reportExecutionContextDestroyed(v8::Local<v8::Context>) = 0; |
34 | 34 |
35 // Embedder API. | 35 // Embedder API. |
36 using ClearConsoleCallback = Function<void()>; | 36 using ClearConsoleCallback = Function<void()>; |
37 virtual void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) = 0; | 37 virtual void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) = 0; |
38 using InspectCallback = Function<void(PassOwnPtr<protocol::Runtime::RemoteOb
ject>, PassRefPtr<JSONObject>)>; | 38 using InspectCallback = Function<void(PassOwnPtr<protocol::Runtime::RemoteOb
ject>, PassRefPtr<protocol::DictionaryValue>)>; |
39 virtual void setInspectObjectCallback(PassOwnPtr<InspectCallback>) = 0; | 39 virtual void setInspectObjectCallback(PassOwnPtr<InspectCallback>) = 0; |
40 // FIXME: remove while preserving the default context evaluation. | 40 // FIXME: remove while preserving the default context evaluation. |
41 virtual int ensureDefaultContextAvailable(v8::Local<v8::Context>) = 0; | 41 virtual int ensureDefaultContextAvailable(v8::Local<v8::Context>) = 0; |
42 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8:
:Context>, v8::Local<v8::Value>, const String& groupName, bool generatePreview =
false) = 0; | 42 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8:
:Context>, v8::Local<v8::Value>, const String& groupName, bool generatePreview =
false) = 0; |
43 // FIXME: remove when console.table moves into V8 inspector. | 43 // FIXME: remove when console.table moves into V8 inspector. |
44 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::
Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) = 0; | 44 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::
Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) = 0; |
45 virtual v8::Local<v8::Value> findObject(const String& objectId, v8::Local<v8
::Context>* = nullptr, String* objectGroup = nullptr) = 0; | 45 virtual v8::Local<v8::Value> findObject(const String& objectId, v8::Local<v8
::Context>* = nullptr, String* objectGroup = nullptr) = 0; |
46 virtual void disposeObjectGroup(const String&) = 0; | 46 virtual void disposeObjectGroup(const String&) = 0; |
47 virtual void addInspectedObject(PassOwnPtr<Inspectable>) = 0; | 47 virtual void addInspectedObject(PassOwnPtr<Inspectable>) = 0; |
48 virtual void clearInspectedObjects() = 0; | 48 virtual void clearInspectedObjects() = 0; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
52 | 52 |
53 #endif // V8RuntimeAgent_h | 53 #endif // V8RuntimeAgent_h |
OLD | NEW |