| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // Perform specified action for current WebContents inside a |browser|. | 75 // Perform specified action for current WebContents inside a |browser|. |
| 76 // This may close currently open DevTools window. | 76 // This may close currently open DevTools window. |
| 77 static DevToolsWindow* ToggleDevToolsWindow( | 77 static DevToolsWindow* ToggleDevToolsWindow( |
| 78 Browser* browser, | 78 Browser* browser, |
| 79 const DevToolsToggleAction& action); | 79 const DevToolsToggleAction& action); |
| 80 | 80 |
| 81 // External frontend is always undocked. | 81 // External frontend is always undocked. |
| 82 static void OpenExternalFrontend( | 82 static void OpenExternalFrontend( |
| 83 Profile* profile, | 83 Profile* profile, |
| 84 const std::string& frontend_uri, | 84 const std::string& frontend_uri, |
| 85 content::DevToolsAgentHost* agent_host, | 85 const scoped_refptr<content::DevToolsAgentHost>& agent_host, |
| 86 bool isWorker); | 86 bool isWorker); |
| 87 | 87 |
| 88 // Worker frontend is always undocked. | 88 // Worker frontend is always undocked. |
| 89 static DevToolsWindow* OpenDevToolsWindowForWorker( | 89 static DevToolsWindow* OpenDevToolsWindowForWorker( |
| 90 Profile* profile, | 90 Profile* profile, |
| 91 content::DevToolsAgentHost* worker_agent); | 91 const scoped_refptr<content::DevToolsAgentHost>& worker_agent); |
| 92 | 92 |
| 93 static void InspectElement(content::WebContents* inspected_web_contents, | 93 static void InspectElement(content::WebContents* inspected_web_contents, |
| 94 int x, | 94 int x, |
| 95 int y); | 95 int y); |
| 96 | 96 |
| 97 // Sets closure to be called after load is done. If already loaded, calls | 97 // Sets closure to be called after load is done. If already loaded, calls |
| 98 // closure immediately. | 98 // closure immediately. |
| 99 void SetLoadCompletedCallback(const base::Closure& closure); | 99 void SetLoadCompletedCallback(const base::Closure& closure); |
| 100 | 100 |
| 101 // Forwards an unhandled keyboard event to the DevTools frontend. | 101 // Forwards an unhandled keyboard event to the DevTools frontend. |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 base::Closure close_callback_; | 313 base::Closure close_callback_; |
| 314 | 314 |
| 315 base::TimeTicks inspect_element_start_time_; | 315 base::TimeTicks inspect_element_start_time_; |
| 316 scoped_ptr<DevToolsEventForwarder> event_forwarder_; | 316 scoped_ptr<DevToolsEventForwarder> event_forwarder_; |
| 317 | 317 |
| 318 friend class DevToolsEventForwarder; | 318 friend class DevToolsEventForwarder; |
| 319 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 319 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 322 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |