| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 public: | 50 public: |
| 51 virtual ~Delegate() {} | 51 virtual ~Delegate() {} |
| 52 virtual void ActivateWindow() = 0; | 52 virtual void ActivateWindow() = 0; |
| 53 virtual void CloseWindow() = 0; | 53 virtual void CloseWindow() = 0; |
| 54 virtual void Inspect(scoped_refptr<content::DevToolsAgentHost> host) = 0; | 54 virtual void Inspect(scoped_refptr<content::DevToolsAgentHost> host) = 0; |
| 55 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0; | 55 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0; |
| 56 virtual void InspectElementCompleted() = 0; | 56 virtual void InspectElementCompleted() = 0; |
| 57 virtual void SetIsDocked(bool is_docked) = 0; | 57 virtual void SetIsDocked(bool is_docked) = 0; |
| 58 virtual void OpenInNewTab(const std::string& url) = 0; | 58 virtual void OpenInNewTab(const std::string& url) = 0; |
| 59 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; | 59 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; |
| 60 virtual void OpenNodeFrontend() = 0; |
| 60 | 61 |
| 61 virtual void InspectedContentsClosing() = 0; | 62 virtual void InspectedContentsClosing() = 0; |
| 62 virtual void OnLoadCompleted() = 0; | 63 virtual void OnLoadCompleted() = 0; |
| 63 virtual void ReadyForTest() = 0; | 64 virtual void ReadyForTest() = 0; |
| 64 virtual InfoBarService* GetInfoBarService() = 0; | 65 virtual InfoBarService* GetInfoBarService() = 0; |
| 65 virtual void RenderProcessGone(bool crashed) = 0; | 66 virtual void RenderProcessGone(bool crashed) = 0; |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 explicit DevToolsUIBindings(content::WebContents* web_contents); | 69 explicit DevToolsUIBindings(content::WebContents* web_contents); |
| 69 ~DevToolsUIBindings() override; | 70 ~DevToolsUIBindings() override; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 void ResetZoom() override; | 129 void ResetZoom() override; |
| 129 void SetDevicesDiscoveryConfig( | 130 void SetDevicesDiscoveryConfig( |
| 130 bool discover_usb_devices, | 131 bool discover_usb_devices, |
| 131 bool port_forwarding_enabled, | 132 bool port_forwarding_enabled, |
| 132 const std::string& port_forwarding_config) override; | 133 const std::string& port_forwarding_config) override; |
| 133 void SetDevicesUpdatesEnabled(bool enabled) override; | 134 void SetDevicesUpdatesEnabled(bool enabled) override; |
| 134 void PerformActionOnRemotePage(const std::string& page_id, | 135 void PerformActionOnRemotePage(const std::string& page_id, |
| 135 const std::string& action) override; | 136 const std::string& action) override; |
| 136 void OpenRemotePage(const std::string& browser_id, | 137 void OpenRemotePage(const std::string& browser_id, |
| 137 const std::string& url) override; | 138 const std::string& url) override; |
| 139 void OpenNodeFrontend() override; |
| 138 void DispatchProtocolMessageFromDevToolsFrontend( | 140 void DispatchProtocolMessageFromDevToolsFrontend( |
| 139 const std::string& message) override; | 141 const std::string& message) override; |
| 140 void RecordEnumeratedHistogram(const std::string& name, | 142 void RecordEnumeratedHistogram(const std::string& name, |
| 141 int sample, | 143 int sample, |
| 142 int boundary_value) override; | 144 int boundary_value) override; |
| 143 void SendJsonRequest(const DispatchCallback& callback, | 145 void SendJsonRequest(const DispatchCallback& callback, |
| 144 const std::string& browser_id, | 146 const std::string& browser_id, |
| 145 const std::string& url) override; | 147 const std::string& url) override; |
| 146 void GetPreferences(const DispatchCallback& callback) override; | 148 void GetPreferences(const DispatchCallback& callback) override; |
| 147 void SetPreference(const std::string& name, | 149 void SetPreference(const std::string& name, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 embedder_message_dispatcher_; | 236 embedder_message_dispatcher_; |
| 235 GURL url_; | 237 GURL url_; |
| 236 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; | 238 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; |
| 237 PendingRequestsMap pending_requests_; | 239 PendingRequestsMap pending_requests_; |
| 238 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 240 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
| 239 | 241 |
| 240 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 242 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
| 241 }; | 243 }; |
| 242 | 244 |
| 243 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 245 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| OLD | NEW |