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 29 matching lines...) Expand all Loading... |
40 public content::DevToolsClientHost { | 40 public content::DevToolsClientHost { |
41 public: | 41 public: |
42 static GURL ApplyThemeToURL(Profile* profile, const GURL& base_url); | 42 static GURL ApplyThemeToURL(Profile* profile, const GURL& base_url); |
43 | 43 |
44 class Delegate { | 44 class Delegate { |
45 public: | 45 public: |
46 virtual ~Delegate() {} | 46 virtual ~Delegate() {} |
47 virtual void ActivateWindow() = 0; | 47 virtual void ActivateWindow() = 0; |
48 virtual void CloseWindow() = 0; | 48 virtual void CloseWindow() = 0; |
49 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0; | 49 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0; |
50 virtual void SetContentsResizingStrategy( | |
51 const gfx::Insets& insets, const gfx::Size& min_size) = 0; | |
52 virtual void InspectElementCompleted() = 0; | 50 virtual void InspectElementCompleted() = 0; |
53 virtual void MoveWindow(int x, int y) = 0; | 51 virtual void MoveWindow(int x, int y) = 0; |
54 virtual void SetIsDocked(bool is_docked) = 0; | 52 virtual void SetIsDocked(bool is_docked) = 0; |
55 virtual void OpenInNewTab(const std::string& url) = 0; | 53 virtual void OpenInNewTab(const std::string& url) = 0; |
56 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; | 54 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; |
57 | 55 |
58 virtual void InspectedContentsClosing() = 0; | 56 virtual void InspectedContentsClosing() = 0; |
59 virtual void OnLoadCompleted() = 0; | 57 virtual void OnLoadCompleted() = 0; |
60 virtual InfoBarService* GetInfoBarService() = 0; | 58 virtual InfoBarService* GetInfoBarService() = 0; |
61 virtual void RenderProcessGone() = 0; | 59 virtual void RenderProcessGone() = 0; |
(...skipping 25 matching lines...) Expand all Loading... |
87 | 85 |
88 // content::DevToolsClientHost implementation. | 86 // content::DevToolsClientHost implementation. |
89 virtual void DispatchOnInspectorFrontend(const std::string& message) OVERRIDE; | 87 virtual void DispatchOnInspectorFrontend(const std::string& message) OVERRIDE; |
90 virtual void InspectedContentsClosing() OVERRIDE; | 88 virtual void InspectedContentsClosing() OVERRIDE; |
91 virtual void ReplacedWithAnotherClient() OVERRIDE; | 89 virtual void ReplacedWithAnotherClient() OVERRIDE; |
92 | 90 |
93 // DevToolsEmbedderMessageDispatcher::Delegate implementation. | 91 // DevToolsEmbedderMessageDispatcher::Delegate implementation. |
94 virtual void ActivateWindow() OVERRIDE; | 92 virtual void ActivateWindow() OVERRIDE; |
95 virtual void CloseWindow() OVERRIDE; | 93 virtual void CloseWindow() OVERRIDE; |
96 virtual void SetInspectedPageBounds(const gfx::Rect& rect) OVERRIDE; | 94 virtual void SetInspectedPageBounds(const gfx::Rect& rect) OVERRIDE; |
97 virtual void SetContentsResizingStrategy( | |
98 const gfx::Insets& insets, const gfx::Size& min_size) OVERRIDE; | |
99 virtual void InspectElementCompleted() OVERRIDE; | 95 virtual void InspectElementCompleted() OVERRIDE; |
100 virtual void InspectedURLChanged(const std::string& url) OVERRIDE; | 96 virtual void InspectedURLChanged(const std::string& url) OVERRIDE; |
101 virtual void MoveWindow(int x, int y) OVERRIDE; | 97 virtual void MoveWindow(int x, int y) OVERRIDE; |
102 virtual void SetIsDocked(bool is_docked) OVERRIDE; | 98 virtual void SetIsDocked(bool is_docked) OVERRIDE; |
103 virtual void OpenInNewTab(const std::string& url) OVERRIDE; | 99 virtual void OpenInNewTab(const std::string& url) OVERRIDE; |
104 virtual void SaveToFile(const std::string& url, | 100 virtual void SaveToFile(const std::string& url, |
105 const std::string& content, | 101 const std::string& content, |
106 bool save_as) OVERRIDE; | 102 bool save_as) OVERRIDE; |
107 virtual void AppendToFile(const std::string& url, | 103 virtual void AppendToFile(const std::string& url, |
108 const std::string& content) OVERRIDE; | 104 const std::string& content) OVERRIDE; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 bool devices_updates_enabled_; | 180 bool devices_updates_enabled_; |
185 scoped_ptr<DevToolsTargetsUIHandler> remote_targets_handler_; | 181 scoped_ptr<DevToolsTargetsUIHandler> remote_targets_handler_; |
186 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; | 182 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; |
187 GURL url_; | 183 GURL url_; |
188 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 184 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
189 | 185 |
190 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 186 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
191 }; | 187 }; |
192 | 188 |
193 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 189 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
OLD | NEW |