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

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

Issue 3020063: DevTools: get rid of delayed command dispatching on front-end side. (Closed)
Patch Set: Created 10 years, 4 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
« 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 23 matching lines...) Expand all
34 class DevToolsClient : public WebKit::WebDevToolsFrontendClient { 34 class DevToolsClient : public WebKit::WebDevToolsFrontendClient {
35 public: 35 public:
36 explicit DevToolsClient(RenderView* view); 36 explicit DevToolsClient(RenderView* view);
37 virtual ~DevToolsClient(); 37 virtual ~DevToolsClient();
38 38
39 // Called to possibly handle the incoming IPC message. Returns true if 39 // Called to possibly handle the incoming IPC message. Returns true if
40 // handled. Called in render thread. 40 // handled. Called in render thread.
41 bool OnMessageReceived(const IPC::Message& message); 41 bool OnMessageReceived(const IPC::Message& message);
42 42
43 // WebDevToolsFrontendClient implementation 43 // WebDevToolsFrontendClient implementation
44 virtual void sendFrontendLoaded();
44 virtual void sendMessageToBackend(const WebKit::WebString&); 45 virtual void sendMessageToBackend(const WebKit::WebString&);
45 virtual void sendDebuggerCommandToAgent(const WebKit::WebString& command); 46 virtual void sendDebuggerCommandToAgent(const WebKit::WebString& command);
46 virtual void sendDebuggerPauseScript(); 47 virtual void sendDebuggerPauseScript();
47 48
48 virtual void activateWindow(); 49 virtual void activateWindow();
49 virtual void closeWindow(); 50 virtual void closeWindow();
50 virtual void requestDockWindow(); 51 virtual void requestDockWindow();
51 virtual void requestUndockWindow(); 52 virtual void requestUndockWindow();
52 53
53 virtual bool shouldHideScriptsPanel(); 54 virtual bool shouldHideScriptsPanel();
54 55
55 private: 56 private:
56 void OnDispatchOnInspectorFrontend(const std::string& message); 57 void OnDispatchOnInspectorFrontend(const std::string& message);
57 58
58 // Sends message to DevToolsAgent. 59 // Sends message to DevToolsAgent.
59 void Send(const IPC::Message& tools_agent_message); 60 void Send(const IPC::Message& tools_agent_message);
60 61
61 RenderView* render_view_; // host render view 62 RenderView* render_view_; // host render view
62 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; 63 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); 65 DISALLOW_COPY_AND_ASSIGN(DevToolsClient);
65 }; 66 };
66 67
67 #endif // CHROME_RENDERER_DEVTOOLS_CLIENT_H_ 68 #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