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

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

Issue 1818473002: [DevTools] Move getInternalProperties to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-call-function-on
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 using protocol::Maybe; 50 using protocol::Maybe;
51 51
52 class InjectedScript final { 52 class InjectedScript final {
53 public: 53 public:
54 ~InjectedScript(); 54 ~InjectedScript();
55 55
56 void getFunctionDetails(ErrorString*, const String16& functionId, OwnPtr<pro tocol::Debugger::FunctionDetails>* result); 56 void getFunctionDetails(ErrorString*, const String16& functionId, OwnPtr<pro tocol::Debugger::FunctionDetails>* result);
57 void getCollectionEntries(ErrorString*, const String16& objectId, OwnPtr<pro tocol::Array<protocol::Debugger::CollectionEntry>>* result); 57 void getCollectionEntries(ErrorString*, const String16& objectId, OwnPtr<pro tocol::Array<protocol::Debugger::CollectionEntry>>* result);
58 void getProperties(ErrorString*, const String16& objectId, bool ownPropertie s, bool accessorPropertiesOnly, bool generatePreview, OwnPtr<protocol::Array<pro tocol::Runtime::PropertyDescriptor>>* result, Maybe<protocol::Runtime::Exception Details>*); 58 void getProperties(ErrorString*, const String16& objectId, bool ownPropertie s, bool accessorPropertiesOnly, bool generatePreview, OwnPtr<protocol::Array<pro tocol::Runtime::PropertyDescriptor>>* result, Maybe<protocol::Runtime::Exception Details>*);
59 void getInternalProperties(ErrorString*, const String16& objectId, Maybe<pro tocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* result, Maybe<prot ocol::Runtime::ExceptionDetails>*);
60 void releaseObject(const String16& objectId); 59 void releaseObject(const String16& objectId);
61 60
62 PassOwnPtr<protocol::Array<protocol::Debugger::CallFrame>> wrapCallFrames(v8 ::Local<v8::Object>); 61 PassOwnPtr<protocol::Array<protocol::Debugger::CallFrame>> wrapCallFrames(v8 ::Local<v8::Object>);
63 62
64 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const; 63 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const;
65 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const; 64 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const;
66 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> t able, v8::Local<v8::Value> columns) const; 65 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> t able, v8::Local<v8::Value> columns) const;
67 v8::Local<v8::Value> findObject(const RemoteObjectId&) const; 66 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*) const;
68 String16 objectGroupName(const RemoteObjectId&) const; 67 String16 objectGroupName(const RemoteObjectId&) const;
69 void releaseObjectGroup(const String16&); 68 void releaseObjectGroup(const String16&);
70 69
71 void setCustomObjectFormatterEnabled(bool); 70 void setCustomObjectFormatterEnabled(bool);
72 int contextId() { return m_contextId; } 71 int contextId() { return m_contextId; }
73 String16 origin() const { return m_origin; } 72 String16 origin() const { return m_origin; }
74 void setOrigin(const String16& origin) { m_origin = origin; } 73 void setOrigin(const String16& origin) { m_origin = origin; }
75 74
76 v8::Isolate* isolate() { return m_isolate; } 75 v8::Isolate* isolate() { return m_isolate; }
77 v8::Local<v8::Context> context() const; 76 v8::Local<v8::Context> context() const;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 v8::Global<v8::Context> m_context; 110 v8::Global<v8::Context> m_context;
112 v8::Global<v8::Value> m_value; 111 v8::Global<v8::Value> m_value;
113 OwnPtr<InjectedScriptNative> m_native; 112 OwnPtr<InjectedScriptNative> m_native;
114 int m_contextId; 113 int m_contextId;
115 String16 m_origin; 114 String16 m_origin;
116 }; 115 };
117 116
118 } // namespace blink 117 } // namespace blink
119 118
120 #endif 119 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698