OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 class Browser; | 22 class Browser; |
23 class BrowserWindow; | 23 class BrowserWindow; |
24 class PrefServiceSyncable; | 24 class PrefServiceSyncable; |
25 class Profile; | 25 class Profile; |
26 | 26 |
27 namespace base { | 27 namespace base { |
28 class Value; | 28 class Value; |
29 } | 29 } |
30 | 30 |
31 namespace chrome { | |
32 class BrowserListImpl; | |
33 } | |
34 | |
35 namespace content { | 31 namespace content { |
36 class DevToolsAgentHost; | 32 class DevToolsAgentHost; |
37 class DevToolsClientHost; | 33 class DevToolsClientHost; |
38 struct FileChooserParams; | 34 struct FileChooserParams; |
39 class RenderViewHost; | 35 class RenderViewHost; |
40 class WebContents; | 36 class WebContents; |
41 } | 37 } |
42 | 38 |
43 namespace IPC { | 39 namespace IPC { |
44 class Message; | 40 class Message; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 content::RenderViewHost* inspected_rvh, | 111 content::RenderViewHost* inspected_rvh, |
116 DevToolsDockSide dock_side, | 112 DevToolsDockSide dock_side, |
117 bool shared_worker_frontend); | 113 bool shared_worker_frontend); |
118 DevToolsWindow(content::WebContents* web_contents, | 114 DevToolsWindow(content::WebContents* web_contents, |
119 Profile* profile, | 115 Profile* profile, |
120 content::RenderViewHost* inspected_rvh, | 116 content::RenderViewHost* inspected_rvh, |
121 DevToolsDockSide dock_side); | 117 DevToolsDockSide dock_side); |
122 | 118 |
123 void CreateDevToolsBrowser(); | 119 void CreateDevToolsBrowser(); |
124 bool FindInspectedBrowserAndTabIndex(Browser**, int* tab); | 120 bool FindInspectedBrowserAndTabIndex(Browser**, int* tab); |
125 bool FindInspectedBrowserAndTabIndexFromBrowserList( | |
126 chrome::BrowserListImpl* browser_list, | |
127 Browser** browser, | |
128 int* tab); | |
129 BrowserWindow* GetInspectedBrowserWindow(); | 121 BrowserWindow* GetInspectedBrowserWindow(); |
130 bool IsInspectedBrowserPopupOrPanel(); | 122 bool IsInspectedBrowserPopupOrPanel(); |
131 void UpdateFrontendDockSide(); | 123 void UpdateFrontendDockSide(); |
132 | 124 |
133 // Overridden from content::NotificationObserver. | 125 // Overridden from content::NotificationObserver. |
134 virtual void Observe(int type, | 126 virtual void Observe(int type, |
135 const content::NotificationSource& source, | 127 const content::NotificationSource& source, |
136 const content::NotificationDetails& details) OVERRIDE; | 128 const content::NotificationDetails& details) OVERRIDE; |
137 | 129 |
138 void ScheduleAction(DevToolsToggleAction action); | 130 void ScheduleAction(DevToolsToggleAction action); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 content::NotificationRegistrar registrar_; | 205 content::NotificationRegistrar registrar_; |
214 scoped_ptr<content::DevToolsClientHost> frontend_host_; | 206 scoped_ptr<content::DevToolsClientHost> frontend_host_; |
215 base::WeakPtrFactory<DevToolsWindow> weak_factory_; | 207 base::WeakPtrFactory<DevToolsWindow> weak_factory_; |
216 scoped_ptr<DevToolsFileHelper> file_helper_; | 208 scoped_ptr<DevToolsFileHelper> file_helper_; |
217 int width_; | 209 int width_; |
218 int height_; | 210 int height_; |
219 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 211 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
220 }; | 212 }; |
221 | 213 |
222 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 214 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
OLD | NEW |