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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/public/V8RuntimeAgent.h

Issue 1866213002: [DevTools] Move inspect from Inspector to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inspector-connection
Patch Set: inspectRequested Created 4 years, 8 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
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 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/V8ContextInfo.h" 10 #include "platform/v8_inspector/public/V8ContextInfo.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 virtual v8::Local<v8::Value> get(v8::Local<v8::Context>) = 0; 25 virtual v8::Local<v8::Value> get(v8::Local<v8::Context>) = 0;
26 virtual ~Inspectable() { } 26 virtual ~Inspectable() { }
27 }; 27 };
28 28
29 virtual ~V8RuntimeAgent() { } 29 virtual ~V8RuntimeAgent() { }
30 30
31 // Embedder API. 31 // Embedder API.
32 using ClearConsoleCallback = Function<void()>; 32 using ClearConsoleCallback = Function<void()>;
33 virtual void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) = 0; 33 virtual void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) = 0;
34 using InspectCallback = Function<void(PassOwnPtr<protocol::Runtime::RemoteOb ject>, PassOwnPtr<protocol::DictionaryValue>)>;
35 virtual void setInspectObjectCallback(PassOwnPtr<InspectCallback>) = 0;
36 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8: :Context>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false) = 0; 34 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8: :Context>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false) = 0;
37 // FIXME: remove when console.table moves into V8 inspector. 35 // FIXME: remove when console.table moves into V8 inspector.
38 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8:: Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) = 0; 36 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8:: Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) = 0;
39 virtual v8::Local<v8::Value> findObject(ErrorString*, const String16& object Id, v8::Local<v8::Context>* = nullptr, String16* objectGroup = nullptr) = 0; 37 virtual v8::Local<v8::Value> findObject(ErrorString*, const String16& object Id, v8::Local<v8::Context>* = nullptr, String16* objectGroup = nullptr) = 0;
40 virtual void disposeObjectGroup(const String16&) = 0; 38 virtual void disposeObjectGroup(const String16&) = 0;
41 virtual void addInspectedObject(PassOwnPtr<Inspectable>) = 0; 39 virtual void addInspectedObject(PassOwnPtr<Inspectable>) = 0;
42 }; 40 };
43 41
44 } // namespace blink 42 } // namespace blink
45 43
46 #endif // V8RuntimeAgent_h 44 #endif // V8RuntimeAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698