| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 const std::string& settings); | 218 const std::string& settings); |
| 219 static DevToolsWindow* FindDevToolsWindow(content::DevToolsAgentHost*); | 219 static DevToolsWindow* FindDevToolsWindow(content::DevToolsAgentHost*); |
| 220 static DevToolsWindow* AsDevToolsWindow(content::WebContents*); | 220 static DevToolsWindow* AsDevToolsWindow(content::WebContents*); |
| 221 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); | 221 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); |
| 222 static DevToolsWindow* ToggleDevToolsWindow( | 222 static DevToolsWindow* ToggleDevToolsWindow( |
| 223 content::WebContents* web_contents, | 223 content::WebContents* web_contents, |
| 224 bool force_open, | 224 bool force_open, |
| 225 const DevToolsToggleAction& action, | 225 const DevToolsToggleAction& action, |
| 226 const std::string& settings); | 226 const std::string& settings); |
| 227 | 227 |
| 228 static std::string GetDevToolsWindowPlacementPrefKey(); | |
| 229 | |
| 230 // content::WebContentsDelegate: | 228 // content::WebContentsDelegate: |
| 231 virtual content::WebContents* OpenURLFromTab( | 229 virtual content::WebContents* OpenURLFromTab( |
| 232 content::WebContents* source, | 230 content::WebContents* source, |
| 233 const content::OpenURLParams& params) OVERRIDE; | 231 const content::OpenURLParams& params) OVERRIDE; |
| 234 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; | 232 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; |
| 235 virtual void AddNewContents(content::WebContents* source, | 233 virtual void AddNewContents(content::WebContents* source, |
| 236 content::WebContents* new_contents, | 234 content::WebContents* new_contents, |
| 237 WindowOpenDisposition disposition, | 235 WindowOpenDisposition disposition, |
| 238 const gfx::Rect& initial_pos, | 236 const gfx::Rect& initial_pos, |
| 239 bool user_gesture, | 237 bool user_gesture, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 base::Closure close_callback_; | 310 base::Closure close_callback_; |
| 313 | 311 |
| 314 base::TimeTicks inspect_element_start_time_; | 312 base::TimeTicks inspect_element_start_time_; |
| 315 scoped_ptr<DevToolsEventForwarder> event_forwarder_; | 313 scoped_ptr<DevToolsEventForwarder> event_forwarder_; |
| 316 | 314 |
| 317 friend class DevToolsEventForwarder; | 315 friend class DevToolsEventForwarder; |
| 318 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 316 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 319 }; | 317 }; |
| 320 | 318 |
| 321 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 319 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |