| 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 30 matching lines...) Expand all Loading... |
| 41 public DevToolsFileHelper::Delegate { | 41 public DevToolsFileHelper::Delegate { |
| 42 public: | 42 public: |
| 43 static DevToolsUIBindings* ForWebContents( | 43 static DevToolsUIBindings* ForWebContents( |
| 44 content::WebContents* web_contents); | 44 content::WebContents* web_contents); |
| 45 | 45 |
| 46 class Delegate { | 46 class Delegate { |
| 47 public: | 47 public: |
| 48 virtual ~Delegate() {} | 48 virtual ~Delegate() {} |
| 49 virtual void ActivateWindow() = 0; | 49 virtual void ActivateWindow() = 0; |
| 50 virtual void CloseWindow() = 0; | 50 virtual void CloseWindow() = 0; |
| 51 virtual void Inspect(scoped_refptr<content::DevToolsAgentHost> host) = 0; |
| 51 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0; | 52 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0; |
| 52 virtual void InspectElementCompleted() = 0; | 53 virtual void InspectElementCompleted() = 0; |
| 53 virtual void SetIsDocked(bool is_docked) = 0; | 54 virtual void SetIsDocked(bool is_docked) = 0; |
| 54 virtual void OpenInNewTab(const std::string& url) = 0; | 55 virtual void OpenInNewTab(const std::string& url) = 0; |
| 55 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; | 56 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; |
| 56 | 57 |
| 57 virtual void InspectedContentsClosing() = 0; | 58 virtual void InspectedContentsClosing() = 0; |
| 58 virtual void OnLoadCompleted() = 0; | 59 virtual void OnLoadCompleted() = 0; |
| 59 virtual void ReadyForTest() = 0; | 60 virtual void ReadyForTest() = 0; |
| 60 virtual InfoBarService* GetInfoBarService() = 0; | 61 virtual InfoBarService* GetInfoBarService() = 0; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 embedder_message_dispatcher_; | 227 embedder_message_dispatcher_; |
| 227 GURL url_; | 228 GURL url_; |
| 228 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; | 229 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; |
| 229 PendingRequestsMap pending_requests_; | 230 PendingRequestsMap pending_requests_; |
| 230 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 231 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
| 231 | 232 |
| 232 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 233 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
| 233 }; | 234 }; |
| 234 | 235 |
| 235 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 236 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| OLD | NEW |