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

Side by Side Diff: webkit/glue/webdevtoolsagent.h

Issue 115862: DevTools: pass class and method name as arguments to RPC messages (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/webdevtoolsagent_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ 5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_
6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ 6 #define WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 10 matching lines...) Expand all
21 DISALLOW_COPY_AND_ASSIGN(Message); 21 DISALLOW_COPY_AND_ASSIGN(Message);
22 }; 22 };
23 23
24 WebDevToolsAgent() {} 24 WebDevToolsAgent() {}
25 virtual ~WebDevToolsAgent() {} 25 virtual ~WebDevToolsAgent() {}
26 26
27 virtual void Attach() = 0; 27 virtual void Attach() = 0;
28 28
29 virtual void Detach() = 0; 29 virtual void Detach() = 0;
30 30
31 virtual void DispatchMessageFromClient(const std::string& raw_msg) = 0; 31 virtual void DispatchMessageFromClient(const std::string& class_name,
32 const std::string& method_name,
33 const std::string& raw_msg) = 0;
32 34
33 virtual void InspectElement(int x, int y) = 0; 35 virtual void InspectElement(int x, int y) = 0;
34 36
35 // Asynchronously executes debugger command in the render thread. 37 // Asynchronously executes debugger command in the render thread.
36 // |caller_id| will be used for sending response. 38 // |caller_id| will be used for sending response.
37 static void ExecuteDebuggerCommand(const std::string& command, 39 static void ExecuteDebuggerCommand(const std::string& command,
38 int caller_id); 40 int caller_id);
39 41
40 typedef void (*MessageLoopDispatchHandler)(); 42 typedef void (*MessageLoopDispatchHandler)();
41 43
42 // Installs dispatch handle that is going to be called periodically 44 // Installs dispatch handle that is going to be called periodically
43 // while on a breakpoint. 45 // while on a breakpoint.
44 static void SetMessageLoopDispatchHandler( 46 static void SetMessageLoopDispatchHandler(
45 MessageLoopDispatchHandler handler); 47 MessageLoopDispatchHandler handler);
46 48
47 private: 49 private:
48 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgent); 50 DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgent);
49 }; 51 };
50 52
51 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ 53 #endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/webdevtoolsagent_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698