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

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

Issue 1826623002: [DevTools] Move wrapCallFrames from InjectedScriptSource.js to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-no-scopes
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
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 getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, Ow nPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, Maybe<prot ocol::Runtime::ExceptionDetails>*); 56 void getProperties(ErrorString*, v8::Local<v8::Object>, const String16& grou pName, bool ownProperties, bool accessorPropertiesOnly, bool generatePreview, Ow nPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, Maybe<prot ocol::Runtime::ExceptionDetails>*);
57 void releaseObject(const String16& objectId); 57 void releaseObject(const String16& objectId);
58 58
59 PassOwnPtr<protocol::Array<protocol::Debugger::CallFrame>> wrapCallFrames(v8 ::Local<v8::Object>);
60
61 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const; 59 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const;
62 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const; 60 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const;
63 bool wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S tring> property, const String16& groupName, bool forceValueType = false, bool ge neratePreview = false) const; 61 bool wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S tring> property, const String16& groupName, bool forceValueType = false, bool ge neratePreview = false) const;
62 bool wrapObjectsInArray(ErrorString*, v8::Local<v8::Array>, const String16& groupName, bool forceValueType = false, bool generatePreview = false) const;
64 63
65 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> t able, v8::Local<v8::Value> columns) const; 64 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> t able, v8::Local<v8::Value> columns) const;
66 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*) const; 65 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*) const;
67 String16 objectGroupName(const RemoteObjectId&) const; 66 String16 objectGroupName(const RemoteObjectId&) const;
68 void releaseObjectGroup(const String16&); 67 void releaseObjectGroup(const String16&);
69 68
70 void setCustomObjectFormatterEnabled(bool); 69 void setCustomObjectFormatterEnabled(bool);
71 int contextId() { return m_contextId; } 70 int contextId() { return m_contextId; }
72 String16 origin() const { return m_origin; } 71 String16 origin() const { return m_origin; }
73 void setOrigin(const String16& origin) { m_origin = origin; } 72 void setOrigin(const String16& origin) { m_origin = origin; }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 v8::Global<v8::Context> m_context; 109 v8::Global<v8::Context> m_context;
111 v8::Global<v8::Value> m_value; 110 v8::Global<v8::Value> m_value;
112 OwnPtr<InjectedScriptNative> m_native; 111 OwnPtr<InjectedScriptNative> m_native;
113 int m_contextId; 112 int m_contextId;
114 String16 m_origin; 113 String16 m_origin;
115 }; 114 };
116 115
117 } // namespace blink 116 } // namespace blink
118 117
119 #endif 118 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698