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 17 matching lines...) Expand all Loading... |
28 class RenderViewHost; | 28 class RenderViewHost; |
29 class TabContentsWrapper; | 29 class TabContentsWrapper; |
30 | 30 |
31 namespace base { | 31 namespace base { |
32 class Value; | 32 class Value; |
33 } | 33 } |
34 | 34 |
35 namespace content { | 35 namespace content { |
36 class DevToolsAgentHost; | 36 class DevToolsAgentHost; |
37 class DevToolsClientHost; | 37 class DevToolsClientHost; |
| 38 class WebContents; |
38 } | 39 } |
39 | 40 |
40 class DevToolsWindow : private content::NotificationObserver, | 41 class DevToolsWindow : private content::NotificationObserver, |
41 private content::WebContentsDelegate, | 42 private content::WebContentsDelegate, |
42 private content::DevToolsFrontendHostDelegate { | 43 private content::DevToolsFrontendHostDelegate { |
43 public: | 44 public: |
44 static const char kDevToolsApp[]; | 45 static const char kDevToolsApp[]; |
45 static void RegisterUserPrefs(PrefService* prefs); | 46 static void RegisterUserPrefs(PrefService* prefs); |
46 static TabContentsWrapper* GetDevToolsContents(TabContents* inspected_tab); | 47 static TabContentsWrapper* GetDevToolsContents( |
| 48 content::WebContents* inspected_tab); |
47 static bool IsDevToolsWindow(RenderViewHost* window_rvh); | 49 static bool IsDevToolsWindow(RenderViewHost* window_rvh); |
48 | 50 |
49 static DevToolsWindow* OpenDevToolsWindowForWorker( | 51 static DevToolsWindow* OpenDevToolsWindowForWorker( |
50 Profile* profile, | 52 Profile* profile, |
51 content::DevToolsAgentHost* worker_agent); | 53 content::DevToolsAgentHost* worker_agent); |
52 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); | 54 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); |
53 static DevToolsWindow* OpenDevToolsWindow(RenderViewHost* inspected_rvh); | 55 static DevToolsWindow* OpenDevToolsWindow(RenderViewHost* inspected_rvh); |
54 static DevToolsWindow* ToggleDevToolsWindow(RenderViewHost* inspected_rvh, | 56 static DevToolsWindow* ToggleDevToolsWindow(RenderViewHost* inspected_rvh, |
55 DevToolsToggleAction action); | 57 DevToolsToggleAction action); |
56 static void InspectElement(RenderViewHost* inspected_rvh, int x, int y); | 58 static void InspectElement(RenderViewHost* inspected_rvh, int x, int y); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 Browser* browser_; | 142 Browser* browser_; |
141 bool docked_; | 143 bool docked_; |
142 bool is_loaded_; | 144 bool is_loaded_; |
143 DevToolsToggleAction action_on_load_; | 145 DevToolsToggleAction action_on_load_; |
144 content::NotificationRegistrar registrar_; | 146 content::NotificationRegistrar registrar_; |
145 content::DevToolsClientHost* frontend_host_; | 147 content::DevToolsClientHost* frontend_host_; |
146 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 148 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
147 }; | 149 }; |
148 | 150 |
149 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ | 151 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ |
OLD | NEW |