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 content::DevToolsAgentHost* agent_host, |
| 86 bool isWorker); |
86 | 87 |
87 // Worker frontend is always undocked. | 88 // Worker frontend is always undocked. |
88 static DevToolsWindow* OpenDevToolsWindowForWorker( | 89 static DevToolsWindow* OpenDevToolsWindowForWorker( |
89 Profile* profile, | 90 Profile* profile, |
90 content::DevToolsAgentHost* worker_agent); | 91 content::DevToolsAgentHost* worker_agent); |
91 | 92 |
92 static void InspectElement(content::WebContents* inspected_web_contents, | 93 static void InspectElement(content::WebContents* inspected_web_contents, |
93 int x, | 94 int x, |
94 int y); | 95 int y); |
95 | 96 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 base::Closure close_callback_; | 313 base::Closure close_callback_; |
313 | 314 |
314 base::TimeTicks inspect_element_start_time_; | 315 base::TimeTicks inspect_element_start_time_; |
315 scoped_ptr<DevToolsEventForwarder> event_forwarder_; | 316 scoped_ptr<DevToolsEventForwarder> event_forwarder_; |
316 | 317 |
317 friend class DevToolsEventForwarder; | 318 friend class DevToolsEventForwarder; |
318 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 319 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
319 }; | 320 }; |
320 | 321 |
321 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 322 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
OLD | NEW |