OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEBUGGER_DEVTOOLS_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 content::RenderViewHost* inspected_rvh); | 59 content::RenderViewHost* inspected_rvh); |
60 static DevToolsWindow* ToggleDevToolsWindow( | 60 static DevToolsWindow* ToggleDevToolsWindow( |
61 content::RenderViewHost* inspected_rvh, | 61 content::RenderViewHost* inspected_rvh, |
62 DevToolsToggleAction action); | 62 DevToolsToggleAction action); |
63 static void InspectElement( | 63 static void InspectElement( |
64 content::RenderViewHost* inspected_rvh, int x, int y); | 64 content::RenderViewHost* inspected_rvh, int x, int y); |
65 | 65 |
66 virtual ~DevToolsWindow(); | 66 virtual ~DevToolsWindow(); |
67 | 67 |
68 // Overridden from DevToolsClientHost. | 68 // Overridden from DevToolsClientHost. |
69 virtual void InspectedTabClosing() OVERRIDE; | 69 virtual void InspectedContentsClosing() OVERRIDE; |
70 virtual void TabReplaced(content::WebContents* new_tab) OVERRIDE; | 70 virtual void ContentsReplaced(content::WebContents* new_contents) OVERRIDE; |
71 content::RenderViewHost* GetRenderViewHost(); | 71 content::RenderViewHost* GetRenderViewHost(); |
72 | 72 |
73 void Show(DevToolsToggleAction action); | 73 void Show(DevToolsToggleAction action); |
74 | 74 |
75 TabContentsWrapper* tab_contents() { return tab_contents_; } | 75 TabContentsWrapper* tab_contents() { return tab_contents_; } |
76 Browser* browser() { return browser_; } // For tests. | 76 Browser* browser() { return browser_; } // For tests. |
77 bool is_docked() { return docked_; } | 77 bool is_docked() { return docked_; } |
78 content::DevToolsClientHost* devtools_client_host() { | 78 content::DevToolsClientHost* devtools_client_host() { |
79 return frontend_host_; | 79 return frontend_host_; |
80 } | 80 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 bool docked_; | 156 bool docked_; |
157 bool is_loaded_; | 157 bool is_loaded_; |
158 DevToolsToggleAction action_on_load_; | 158 DevToolsToggleAction action_on_load_; |
159 content::NotificationRegistrar registrar_; | 159 content::NotificationRegistrar registrar_; |
160 content::DevToolsClientHost* frontend_host_; | 160 content::DevToolsClientHost* frontend_host_; |
161 scoped_ptr<DevToolsFileHelper> file_helper_; | 161 scoped_ptr<DevToolsFileHelper> file_helper_; |
162 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 162 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
163 }; | 163 }; |
164 | 164 |
165 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 165 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
OLD | NEW |