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 22 matching lines...) Expand all Loading... |
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 private: | 37 private: |
38 // RenderView::Observer implementation. | 38 // RenderView::Observer implementation. |
39 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 39 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
40 | 40 |
41 // WebDevToolsFrontendClient implementation. | 41 // WebDevToolsFrontendClient implementation. |
42 virtual void sendMessageToBackend(const WebKit::WebString&) OVERRIDE; | 42 virtual void sendMessageToBackend(const WebKit::WebString&) OVERRIDE; |
43 | 43 virtual void sendMessageToEmbedder(const WebKit::WebString&) OVERRIDE; |
44 virtual void activateWindow() OVERRIDE; | |
45 virtual void changeAttachedWindowHeight(unsigned height) OVERRIDE; | |
46 virtual void closeWindow() OVERRIDE; | |
47 virtual void moveWindowBy(const WebKit::WebFloatPoint& offset) OVERRIDE; | |
48 virtual void requestSetDockSide(const WebKit::WebString& side) OVERRIDE; | |
49 virtual void openInNewTab(const WebKit::WebString& side) OVERRIDE; | |
50 virtual void save(const WebKit::WebString& url, | |
51 const WebKit::WebString& content, | |
52 bool save_as) OVERRIDE; | |
53 virtual void append(const WebKit::WebString& url, | |
54 const WebKit::WebString& content) OVERRIDE; | |
55 | |
56 virtual void requestFileSystems() OVERRIDE; | |
57 virtual void addFileSystem() OVERRIDE; | |
58 virtual void removeFileSystem( | |
59 const WebKit::WebString& file_system_path) OVERRIDE; | |
60 virtual void indexPath(int request_id, | |
61 const WebKit::WebString& file_system_path) OVERRIDE; | |
62 virtual void stopIndexing(int request_id) OVERRIDE; | |
63 virtual void searchInPath(int request_id, | |
64 const WebKit::WebString& file_system_path, | |
65 const WebKit::WebString& query) OVERRIDE; | |
66 | 44 |
67 virtual bool isUnderTest() OVERRIDE; | 45 virtual bool isUnderTest() OVERRIDE; |
68 | 46 |
69 void OnDispatchOnInspectorFrontend(const std::string& message); | 47 void OnDispatchOnInspectorFrontend(const std::string& message); |
70 | 48 |
71 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; | 49 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; |
72 | 50 |
73 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); | 51 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); |
74 }; | 52 }; |
75 | 53 |
76 } // namespace content | 54 } // namespace content |
77 | 55 |
78 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 56 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
OLD | NEW |