OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void SearchInPath(int request_id, | 55 virtual void SearchInPath(int request_id, |
56 const std::string& file_system_path, | 56 const std::string& file_system_path, |
57 const std::string& query) = 0; | 57 const std::string& query) = 0; |
58 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; | 58 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; |
59 virtual void ZoomIn() = 0; | 59 virtual void ZoomIn() = 0; |
60 virtual void ZoomOut() = 0; | 60 virtual void ZoomOut() = 0; |
61 virtual void ResetZoom() = 0; | 61 virtual void ResetZoom() = 0; |
62 virtual void OpenUrlOnRemoteDeviceAndInspect(const std::string& browser_id, | 62 virtual void OpenUrlOnRemoteDeviceAndInspect(const std::string& browser_id, |
63 const std::string& url) = 0; | 63 const std::string& url) = 0; |
64 | 64 |
65 virtual void Subscribe(const std::string& event_type) = 0; | 65 virtual void SetDeviceCountUpdatesEnabled(bool enabled) = 0; |
66 virtual void Unsubscribe(const std::string& event_type) = 0; | 66 virtual void SetDevicesUpdatesEnabled(bool enabled) = 0; |
67 }; | 67 }; |
68 | 68 |
69 virtual ~DevToolsEmbedderMessageDispatcher() {} | 69 virtual ~DevToolsEmbedderMessageDispatcher() {} |
70 virtual bool Dispatch(const std::string& method, | 70 virtual bool Dispatch(const std::string& method, |
71 const base::ListValue* params, | 71 const base::ListValue* params, |
72 std::string* error) = 0; | 72 std::string* error) = 0; |
73 | 73 |
74 static DevToolsEmbedderMessageDispatcher* createForDevToolsFrontend( | 74 static DevToolsEmbedderMessageDispatcher* createForDevToolsFrontend( |
75 Delegate* delegate); | 75 Delegate* delegate); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 78 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ |
OLD | NEW |