| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_BINDINGS_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 void SetWhitelistedShortcuts(const std::string& message) override; | 128 void SetWhitelistedShortcuts(const std::string& message) override; |
| 129 void ZoomIn() override; | 129 void ZoomIn() override; |
| 130 void ZoomOut() override; | 130 void ZoomOut() override; |
| 131 void ResetZoom() override; | 131 void ResetZoom() override; |
| 132 void OpenUrlOnRemoteDeviceAndInspect(const std::string& browser_id, | 132 void OpenUrlOnRemoteDeviceAndInspect(const std::string& browser_id, |
| 133 const std::string& url) override; | 133 const std::string& url) override; |
| 134 void SetDeviceCountUpdatesEnabled(bool enabled) override; | 134 void SetDeviceCountUpdatesEnabled(bool enabled) override; |
| 135 void SetDevicesUpdatesEnabled(bool enabled) override; | 135 void SetDevicesUpdatesEnabled(bool enabled) override; |
| 136 void SendMessageToBrowser(const std::string& message) override; | 136 void SendMessageToBrowser(const std::string& message) override; |
| 137 void RecordActionUMA(const std::string& name, int action) override; | 137 void RecordActionUMA(const std::string& name, int action) override; |
| 138 void SendJsonRequest(const DispatchCallback& callback, |
| 139 const std::string& browser_id, |
| 140 const std::string& url) override; |
| 141 |
| 142 void JsonReceived(const DispatchCallback& callback, |
| 143 int result, |
| 144 const std::string& message); |
| 138 | 145 |
| 139 // net::URLFetcherDelegate overrides. | 146 // net::URLFetcherDelegate overrides. |
| 140 void OnURLFetchComplete(const net::URLFetcher* source) override; | 147 void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 141 | 148 |
| 142 void EnableRemoteDeviceCounter(bool enable); | 149 void EnableRemoteDeviceCounter(bool enable); |
| 143 | 150 |
| 144 void SendMessageAck(int request_id, | 151 void SendMessageAck(int request_id, |
| 145 const base::Value* arg1); | 152 const base::Value* arg1); |
| 146 | 153 |
| 147 // DevToolsAndroidBridge::DeviceCountListener override: | 154 // DevToolsAndroidBridge::DeviceCountListener override: |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; | 212 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; |
| 206 GURL url_; | 213 GURL url_; |
| 207 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; | 214 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; |
| 208 PendingRequestsMap pending_requests_; | 215 PendingRequestsMap pending_requests_; |
| 209 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 216 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
| 210 | 217 |
| 211 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 218 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
| 212 }; | 219 }; |
| 213 | 220 |
| 214 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 221 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| OLD | NEW |