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

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

Issue 1942073002: [DevTools] Move getCompletions to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 class InjectedScript final { 55 class InjectedScript final {
56 PROTOCOL_DISALLOW_COPY(InjectedScript); 56 PROTOCOL_DISALLOW_COPY(InjectedScript);
57 public: 57 public:
58 static PassOwnPtr<InjectedScript> create(InspectedContext*); 58 static PassOwnPtr<InjectedScript> create(InspectedContext*);
59 ~InjectedScript(); 59 ~InjectedScript();
60 60
61 InspectedContext* context() const { return m_context; } 61 InspectedContext* context() const { return m_context; }
62 62
63 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>*); 63 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>*);
64 void getCompletions(ErrorString*, v8::Local<v8::Value>, OwnPtr<protocol::Arr ay<String16>>*);
65 void getCompletions(ErrorString*, const String16& primitiveType, OwnPtr<prot ocol::Array<String16>>*);
64 void releaseObject(const String16& objectId); 66 void releaseObject(const String16& objectId);
65 67
66 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const; 68 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(ErrorString*, v8::Loc al<v8::Value>, const String16& groupName, bool forceValueType = false, bool gene ratePreview = false) const;
67 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const; 69 bool wrapObjectProperty(ErrorString*, v8::Local<v8::Object>, v8::Local<v8::V alue> key, const String16& groupName, bool forceValueType = false, bool generate Preview = false) const;
68 bool wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S tring> property, const String16& groupName, bool forceValueType = false, bool ge neratePreview = false) const; 70 bool wrapPropertyInArray(ErrorString*, v8::Local<v8::Array>, v8::Local<v8::S tring> property, const String16& groupName, bool forceValueType = false, bool ge neratePreview = false) const;
69 bool wrapObjectsInArray(ErrorString*, v8::Local<v8::Array>, const String16& groupName, bool forceValueType = false, bool generatePreview = false) const; 71 bool wrapObjectsInArray(ErrorString*, v8::Local<v8::Array>, const String16& groupName, bool forceValueType = false, bool generatePreview = false) const;
70 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> t able, v8::Local<v8::Value> columns) const; 72 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Value> t able, v8::Local<v8::Value> columns) const;
71 73
72 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*) const; 74 bool findObject(ErrorString*, const RemoteObjectId&, v8::Local<v8::Value>*) const;
73 String16 objectGroupName(const RemoteObjectId&) const; 75 String16 objectGroupName(const RemoteObjectId&) const;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 InspectedContext* m_context; 169 InspectedContext* m_context;
168 v8::Global<v8::Value> m_value; 170 v8::Global<v8::Value> m_value;
169 v8::Global<v8::Value> m_lastEvaluationResult; 171 v8::Global<v8::Value> m_lastEvaluationResult;
170 OwnPtr<InjectedScriptNative> m_native; 172 OwnPtr<InjectedScriptNative> m_native;
171 v8::Global<v8::Object> m_commandLineAPI; 173 v8::Global<v8::Object> m_commandLineAPI;
172 }; 174 };
173 175
174 } // namespace blink 176 } // namespace blink
175 177
176 #endif 178 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698