| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 DEVTOOLS_DOCK_SIDE_RIGHT, | 51 DEVTOOLS_DOCK_SIDE_RIGHT, |
| 52 DEVTOOLS_DOCK_SIDE_MINIMIZED | 52 DEVTOOLS_DOCK_SIDE_MINIMIZED |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 class DevToolsWindow : private content::NotificationObserver, | 55 class DevToolsWindow : private content::NotificationObserver, |
| 56 private content::WebContentsDelegate, | 56 private content::WebContentsDelegate, |
| 57 private content::DevToolsFrontendHostDelegate { | 57 private content::DevToolsFrontendHostDelegate { |
| 58 public: | 58 public: |
| 59 static const char kDevToolsApp[]; | 59 static const char kDevToolsApp[]; |
| 60 static std::string GetDevToolsWindowPlacementPrefKey(); | 60 static std::string GetDevToolsWindowPlacementPrefKey(); |
| 61 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 61 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 62 static DevToolsWindow* GetDockedInstanceForInspectedTab( | 62 static DevToolsWindow* GetDockedInstanceForInspectedTab( |
| 63 content::WebContents* inspected_tab); | 63 content::WebContents* inspected_tab); |
| 64 static bool IsDevToolsWindow(content::RenderViewHost* window_rvh); | 64 static bool IsDevToolsWindow(content::RenderViewHost* window_rvh); |
| 65 | 65 |
| 66 static DevToolsWindow* OpenDevToolsWindowForWorker( | 66 static DevToolsWindow* OpenDevToolsWindowForWorker( |
| 67 Profile* profile, | 67 Profile* profile, |
| 68 content::DevToolsAgentHost* worker_agent); | 68 content::DevToolsAgentHost* worker_agent); |
| 69 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); | 69 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); |
| 70 static DevToolsWindow* OpenDevToolsWindow( | 70 static DevToolsWindow* OpenDevToolsWindow( |
| 71 content::RenderViewHost* inspected_rvh); | 71 content::RenderViewHost* inspected_rvh); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 scoped_ptr<content::DevToolsClientHost> frontend_host_; | 241 scoped_ptr<content::DevToolsClientHost> frontend_host_; |
| 242 base::WeakPtrFactory<DevToolsWindow> weak_factory_; | 242 base::WeakPtrFactory<DevToolsWindow> weak_factory_; |
| 243 scoped_ptr<DevToolsFileHelper> file_helper_; | 243 scoped_ptr<DevToolsFileHelper> file_helper_; |
| 244 int width_; | 244 int width_; |
| 245 int height_; | 245 int height_; |
| 246 DevToolsDockSide dock_side_before_minimized_; | 246 DevToolsDockSide dock_side_before_minimized_; |
| 247 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 247 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 250 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |