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

Side by Side Diff: chrome/renderer/devtools_client.h

Issue 173480: DevTools: Remove base/values dependency from devtools. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/renderer/devtools_agent.cc ('k') | chrome/renderer/devtools_client.cc » ('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 CHROME_RENDERER_DEVTOOLS_CLIENT_H_ 5 #ifndef CHROME_RENDERER_DEVTOOLS_CLIENT_H_
6 #define CHROME_RENDERER_DEVTOOLS_CLIENT_H_ 6 #define CHROME_RENDERER_DEVTOOLS_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 explicit DevToolsClient(RenderView* view); 28 explicit DevToolsClient(RenderView* view);
29 virtual ~DevToolsClient(); 29 virtual ~DevToolsClient();
30 30
31 // Called to possibly handle the incoming IPC message. Returns true if 31 // Called to possibly handle the incoming IPC message. Returns true if
32 // handled. Called in render thread. 32 // handled. Called in render thread.
33 bool OnMessageReceived(const IPC::Message& message); 33 bool OnMessageReceived(const IPC::Message& message);
34 34
35 // WebDevToolsClient::Delegate implementation 35 // WebDevToolsClient::Delegate implementation
36 virtual void SendMessageToAgent(const std::string& class_name, 36 virtual void SendMessageToAgent(const std::string& class_name,
37 const std::string& method_name, 37 const std::string& method_name,
38 const std::string& raw_msg); 38 const std::string& param1,
39 const std::string& param2,
40 const std::string& param3);
39 virtual void SendDebuggerCommandToAgent(const std::string& command); 41 virtual void SendDebuggerCommandToAgent(const std::string& command);
40 42
41 virtual void ActivateWindow(); 43 virtual void ActivateWindow();
42 virtual void CloseWindow(); 44 virtual void CloseWindow();
43 virtual void DockWindow(); 45 virtual void DockWindow();
44 virtual void UndockWindow(); 46 virtual void UndockWindow();
45 virtual void ToggleInspectElementMode(bool enabled); 47 virtual void ToggleInspectElementMode(bool enabled);
46 48
47 private: 49 private:
48 void OnRpcMessage(const std::string& class_name, 50 void OnRpcMessage(const std::string& class_name,
49 const std::string& method_name, 51 const std::string& method_name,
50 const std::string& raw_msg); 52 const std::string& param1,
53 const std::string& param2,
54 const std::string& param3);
51 55
52 // Sends message to DevToolsAgent. 56 // Sends message to DevToolsAgent.
53 void Send(const IPC::Message& tools_agent_message); 57 void Send(const IPC::Message& tools_agent_message);
54 58
55 RenderView* render_view_; // host render view 59 RenderView* render_view_; // host render view
56 scoped_ptr<WebDevToolsClient> web_tools_client_; 60 scoped_ptr<WebDevToolsClient> web_tools_client_;
57 61
58 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); 62 DISALLOW_COPY_AND_ASSIGN(DevToolsClient);
59 }; 63 };
60 64
61 #endif // CHROME_RENDERER_DEVTOOLS_CLIENT_H_ 65 #endif // CHROME_RENDERER_DEVTOOLS_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/devtools_agent.cc ('k') | chrome/renderer/devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698