| 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 SetEyeDropperActive(bool active) = 0; |
| 60 virtual void OpenNodeFrontend() = 0; | 61 virtual void OpenNodeFrontend() = 0; |
| 61 | 62 |
| 62 virtual void InspectedContentsClosing() = 0; | 63 virtual void InspectedContentsClosing() = 0; |
| 63 virtual void OnLoadCompleted() = 0; | 64 virtual void OnLoadCompleted() = 0; |
| 64 virtual void ReadyForTest() = 0; | 65 virtual void ReadyForTest() = 0; |
| 65 virtual InfoBarService* GetInfoBarService() = 0; | 66 virtual InfoBarService* GetInfoBarService() = 0; |
| 66 virtual void RenderProcessGone(bool crashed) = 0; | 67 virtual void RenderProcessGone(bool crashed) = 0; |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 explicit DevToolsUIBindings(content::WebContents* web_contents); | 70 explicit DevToolsUIBindings(content::WebContents* web_contents); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 void RemoveFileSystem(const std::string& file_system_path) override; | 117 void RemoveFileSystem(const std::string& file_system_path) override; |
| 117 void UpgradeDraggedFileSystemPermissions( | 118 void UpgradeDraggedFileSystemPermissions( |
| 118 const std::string& file_system_url) override; | 119 const std::string& file_system_url) override; |
| 119 void IndexPath(int index_request_id, | 120 void IndexPath(int index_request_id, |
| 120 const std::string& file_system_path) override; | 121 const std::string& file_system_path) override; |
| 121 void StopIndexing(int index_request_id) override; | 122 void StopIndexing(int index_request_id) override; |
| 122 void SearchInPath(int search_request_id, | 123 void SearchInPath(int search_request_id, |
| 123 const std::string& file_system_path, | 124 const std::string& file_system_path, |
| 124 const std::string& query) override; | 125 const std::string& query) override; |
| 125 void SetWhitelistedShortcuts(const std::string& message) override; | 126 void SetWhitelistedShortcuts(const std::string& message) override; |
| 127 void SetEyeDropperActive(bool active) override; |
| 126 void ShowCertificateViewer(const std::string& cert_chain) override; | 128 void ShowCertificateViewer(const std::string& cert_chain) override; |
| 127 void ZoomIn() override; | 129 void ZoomIn() override; |
| 128 void ZoomOut() override; | 130 void ZoomOut() override; |
| 129 void ResetZoom() override; | 131 void ResetZoom() override; |
| 130 void SetDevicesDiscoveryConfig( | 132 void SetDevicesDiscoveryConfig( |
| 131 bool discover_usb_devices, | 133 bool discover_usb_devices, |
| 132 bool port_forwarding_enabled, | 134 bool port_forwarding_enabled, |
| 133 const std::string& port_forwarding_config) override; | 135 const std::string& port_forwarding_config) override; |
| 134 void SetDevicesUpdatesEnabled(bool enabled) override; | 136 void SetDevicesUpdatesEnabled(bool enabled) override; |
| 135 void PerformActionOnRemotePage(const std::string& page_id, | 137 void PerformActionOnRemotePage(const std::string& page_id, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 embedder_message_dispatcher_; | 238 embedder_message_dispatcher_; |
| 237 GURL url_; | 239 GURL url_; |
| 238 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; | 240 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; |
| 239 PendingRequestsMap pending_requests_; | 241 PendingRequestsMap pending_requests_; |
| 240 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 242 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
| 241 | 243 |
| 242 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 244 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
| 243 }; | 245 }; |
| 244 | 246 |
| 245 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 247 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| OLD | NEW |