OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // corresponding DevToolsAgent object. | 27 // corresponding DevToolsAgent object. |
28 // TODO(yurys): now the client is almost empty later it will delegate calls to | 28 // TODO(yurys): now the client is almost empty later it will delegate calls to |
29 // code in glue | 29 // code in glue |
30 class CONTENT_EXPORT DevToolsClient | 30 class CONTENT_EXPORT DevToolsClient |
31 : public RenderViewObserver, | 31 : public RenderViewObserver, |
32 NON_EXPORTED_BASE(public WebKit::WebDevToolsFrontendClient) { | 32 NON_EXPORTED_BASE(public WebKit::WebDevToolsFrontendClient) { |
33 public: | 33 public: |
34 explicit DevToolsClient(RenderViewImpl* render_view); | 34 explicit DevToolsClient(RenderViewImpl* render_view); |
35 virtual ~DevToolsClient(); | 35 virtual ~DevToolsClient(); |
36 | 36 |
37 static void EnableDevToolsFrontendTesting(); | |
38 private: | 37 private: |
39 // RenderView::Observer implementation. | 38 // RenderView::Observer implementation. |
40 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 39 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
41 | 40 |
42 // WebDevToolsFrontendClient implementation. | 41 // WebDevToolsFrontendClient implementation. |
43 virtual void sendMessageToBackend(const WebKit::WebString&) OVERRIDE; | 42 virtual void sendMessageToBackend(const WebKit::WebString&) OVERRIDE; |
44 | 43 |
45 virtual void activateWindow() OVERRIDE; | 44 virtual void activateWindow() OVERRIDE; |
46 virtual void changeAttachedWindowHeight(unsigned height) OVERRIDE; | 45 virtual void changeAttachedWindowHeight(unsigned height) OVERRIDE; |
47 virtual void closeWindow() OVERRIDE; | 46 virtual void closeWindow() OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... |
63 void OnDispatchOnInspectorFrontend(const std::string& message); | 62 void OnDispatchOnInspectorFrontend(const std::string& message); |
64 | 63 |
65 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; | 64 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; |
66 | 65 |
67 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); | 66 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); |
68 }; | 67 }; |
69 | 68 |
70 } // namespace content | 69 } // namespace content |
71 | 70 |
72 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 71 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
OLD | NEW |