| 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 "chrome/browser/devtools/devtools_contents_resizing_strategy.h" | 8 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h" |
| 9 #include "chrome/browser/devtools/devtools_toggle_action.h" | 9 #include "chrome/browser/devtools/devtools_toggle_action.h" |
| 10 #include "chrome/browser/devtools/devtools_ui_bindings.h" | 10 #include "chrome/browser/devtools/devtools_ui_bindings.h" |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 DevToolsWindow(Profile* profile, | 207 DevToolsWindow(Profile* profile, |
| 208 const GURL& frontend_url, | 208 const GURL& frontend_url, |
| 209 content::RenderViewHost* inspected_rvh, | 209 content::RenderViewHost* inspected_rvh, |
| 210 bool can_dock); | 210 bool can_dock); |
| 211 | 211 |
| 212 static DevToolsWindow* Create(Profile* profile, | 212 static DevToolsWindow* Create(Profile* profile, |
| 213 const GURL& frontend_url, | 213 const GURL& frontend_url, |
| 214 content::RenderViewHost* inspected_rvh, | 214 content::RenderViewHost* inspected_rvh, |
| 215 bool shared_worker_frontend, | 215 bool shared_worker_frontend, |
| 216 bool worker_paused, |
| 216 bool external_frontend, | 217 bool external_frontend, |
| 217 bool can_dock); | 218 bool can_dock); |
| 218 static GURL GetDevToolsURL(Profile* profile, | 219 static GURL GetDevToolsURL(Profile* profile, |
| 219 const GURL& base_url, | 220 const GURL& base_url, |
| 220 bool shared_worker_frontend, | 221 bool shared_worker_frontend, |
| 222 bool worker_paused, |
| 221 bool external_frontend, | 223 bool external_frontend, |
| 222 bool can_dock); | 224 bool can_dock); |
| 223 static DevToolsWindow* FindDevToolsWindow(content::DevToolsAgentHost*); | 225 static DevToolsWindow* FindDevToolsWindow(content::DevToolsAgentHost*); |
| 224 static DevToolsWindow* AsDevToolsWindow(content::RenderViewHost*); | 226 static DevToolsWindow* AsDevToolsWindow(content::RenderViewHost*); |
| 225 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); | 227 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile, |
| 228 bool worker_paused); |
| 226 static bool FindInspectedBrowserAndTabIndex( | 229 static bool FindInspectedBrowserAndTabIndex( |
| 227 content::WebContents* inspected_web_contents, Browser**, int* tab); | 230 content::WebContents* inspected_web_contents, Browser**, int* tab); |
| 228 static DevToolsWindow* ToggleDevToolsWindow( | 231 static DevToolsWindow* ToggleDevToolsWindow( |
| 229 content::RenderViewHost* inspected_rvh, | 232 content::RenderViewHost* inspected_rvh, |
| 230 bool force_open, | 233 bool force_open, |
| 231 const DevToolsToggleAction& action); | 234 const DevToolsToggleAction& action); |
| 232 | 235 |
| 233 // content::WebContentsDelegate: | 236 // content::WebContentsDelegate: |
| 234 virtual content::WebContents* OpenURLFromTab( | 237 virtual content::WebContents* OpenURLFromTab( |
| 235 content::WebContents* source, | 238 content::WebContents* source, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 base::Closure load_completed_callback_; | 315 base::Closure load_completed_callback_; |
| 313 | 316 |
| 314 base::TimeTicks inspect_element_start_time_; | 317 base::TimeTicks inspect_element_start_time_; |
| 315 scoped_ptr<DevToolsEventForwarder> event_forwarder_; | 318 scoped_ptr<DevToolsEventForwarder> event_forwarder_; |
| 316 | 319 |
| 317 friend class DevToolsEventForwarder; | 320 friend class DevToolsEventForwarder; |
| 318 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 321 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 319 }; | 322 }; |
| 320 | 323 |
| 321 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 324 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |