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

Unified Diff: webkit/glue/devtools/debugger_agent_impl.h

Issue 100159: DevTools: keep links on the edited styles so that they are not collected betw... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/devtools/debugger_agent_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/debugger_agent_impl.h
===================================================================
--- webkit/glue/devtools/debugger_agent_impl.h (revision 14839)
+++ webkit/glue/devtools/debugger_agent_impl.h (working copy)
@@ -28,18 +28,20 @@
WebDevToolsAgentImpl* webdevtools_agent);
virtual ~DebuggerAgentImpl();
- // Initializes dom agent with the given document.
- void SetDocument(WebCore::Document* document);
+ // Creates utility context with injected js agent.
+ void CreateUtilityContext(WebCore::Document* document,
+ v8::Persistent<v8::Context>* context);
// DebuggerAgent implementation.
virtual void DebugBreak();
void DebuggerOutput(const std::string& out);
- // Executes utility function with the given node and json
- // args as parameters. These functions must be implemented in
- // the inject.js file.
+ // Executes function with the given name in the utility context. Passes node
+ // and json args as parameters. Note that the function called must be
+ // implemented in the inject.js file.
WebCore::String ExecuteUtilityFunction(
+ v8::Handle<v8::Context> context,
const WebCore::String& function_name,
WebCore::Node* node,
const WebCore::String& json_args,
@@ -55,7 +57,6 @@
WebViewImpl* web_view() { return web_view_impl_; }
private:
- v8::Persistent<v8::Context> context_;
WebViewImpl* web_view_impl_;
DebuggerAgentDelegate* delegate_;
WebDevToolsAgentImpl* webdevtools_agent_;
« no previous file with comments | « no previous file | webkit/glue/devtools/debugger_agent_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698