Chromium Code Reviews| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h" | 9 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h" |
| 10 #include "chrome/browser/devtools/devtools_toggle_action.h" | 10 #include "chrome/browser/devtools/devtools_toggle_action.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 // | 96 // |
| 97 static void ToggleDevToolsWindow( | 97 static void ToggleDevToolsWindow( |
| 98 Browser* browser, | 98 Browser* browser, |
| 99 const DevToolsToggleAction& action); | 99 const DevToolsToggleAction& action); |
| 100 | 100 |
| 101 // External frontend is always undocked. | 101 // External frontend is always undocked. |
| 102 static void OpenExternalFrontend( | 102 static void OpenExternalFrontend( |
| 103 Profile* profile, | 103 Profile* profile, |
| 104 const std::string& frontend_uri, | 104 const std::string& frontend_uri, |
| 105 const scoped_refptr<content::DevToolsAgentHost>& agent_host, | 105 const scoped_refptr<content::DevToolsAgentHost>& agent_host, |
| 106 bool isWorker); | 106 bool isWorker, |
|
dgozman
2016/08/10 23:13:43
Please change these to is_worker and is_v8_only.
eostroukhov
2016/08/10 23:31:08
Done.
| |
| 107 bool isV8); | |
| 107 | 108 |
| 108 // Worker frontend is always undocked. | 109 // Worker frontend is always undocked. |
| 109 static void OpenDevToolsWindowForWorker( | 110 static void OpenDevToolsWindowForWorker( |
| 110 Profile* profile, | 111 Profile* profile, |
| 111 const scoped_refptr<content::DevToolsAgentHost>& worker_agent); | 112 const scoped_refptr<content::DevToolsAgentHost>& worker_agent); |
| 112 | 113 |
| 113 static void InspectElement(content::RenderFrameHost* inspected_frame_host, | 114 static void InspectElement(content::RenderFrameHost* inspected_frame_host, |
| 114 int x, | 115 int x, |
| 115 int y); | 116 int y); |
| 116 | 117 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 240 DevToolsWindow(Profile* profile, | 241 DevToolsWindow(Profile* profile, |
| 241 content::WebContents* main_web_contents, | 242 content::WebContents* main_web_contents, |
| 242 DevToolsUIBindings* bindings, | 243 DevToolsUIBindings* bindings, |
| 243 content::WebContents* inspected_web_contents, | 244 content::WebContents* inspected_web_contents, |
| 244 bool can_dock); | 245 bool can_dock); |
| 245 | 246 |
| 246 static DevToolsWindow* Create(Profile* profile, | 247 static DevToolsWindow* Create(Profile* profile, |
| 247 const GURL& frontend_url, | 248 const GURL& frontend_url, |
| 248 content::WebContents* inspected_web_contents, | 249 content::WebContents* inspected_web_contents, |
| 249 bool shared_worker_frontend, | 250 bool shared_worker_frontend, |
| 251 bool v8_frontend, | |
|
dgozman
2016/08/10 23:13:43
v8_only_frontend
eostroukhov
2016/08/10 23:31:07
Done.
| |
| 250 const std::string& remote_frontend, | 252 const std::string& remote_frontend, |
| 251 bool can_dock, | 253 bool can_dock, |
| 252 const std::string& settings); | 254 const std::string& settings); |
| 253 static GURL GetDevToolsURL(Profile* profile, | 255 static GURL GetDevToolsURL(Profile* profile, |
| 254 const GURL& base_url, | 256 const GURL& base_url, |
| 255 bool shared_worker_frontend, | 257 bool shared_worker_frontend, |
| 258 bool v8_frontend, | |
| 256 const std::string& remote_frontend, | 259 const std::string& remote_frontend, |
| 257 bool can_dock); | 260 bool can_dock); |
| 258 | 261 |
| 259 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); | 262 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); |
| 260 static void ToggleDevToolsWindow( | 263 static void ToggleDevToolsWindow( |
| 261 content::WebContents* web_contents, | 264 content::WebContents* web_contents, |
| 262 bool force_open, | 265 bool force_open, |
| 263 const DevToolsToggleAction& action, | 266 const DevToolsToggleAction& action, |
| 264 const std::string& settings); | 267 const std::string& settings); |
| 265 | 268 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 342 base::Closure ready_for_test_callback_; | 345 base::Closure ready_for_test_callback_; |
| 343 | 346 |
| 344 base::TimeTicks inspect_element_start_time_; | 347 base::TimeTicks inspect_element_start_time_; |
| 345 std::unique_ptr<DevToolsEventForwarder> event_forwarder_; | 348 std::unique_ptr<DevToolsEventForwarder> event_forwarder_; |
| 346 | 349 |
| 347 friend class DevToolsEventForwarder; | 350 friend class DevToolsEventForwarder; |
| 348 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 351 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
| 349 }; | 352 }; |
| 350 | 353 |
| 351 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 354 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
| OLD | NEW |