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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 const GURL& frontend_url, | 247 const GURL& frontend_url, |
248 content::WebContents* inspected_web_contents, | 248 content::WebContents* inspected_web_contents, |
249 bool shared_worker_frontend, | 249 bool shared_worker_frontend, |
250 const std::string& remote_frontend, | 250 const std::string& remote_frontend, |
251 bool can_dock, | 251 bool can_dock, |
252 const std::string& settings); | 252 const std::string& settings); |
253 static GURL GetDevToolsURL(Profile* profile, | 253 static GURL GetDevToolsURL(Profile* profile, |
254 const GURL& base_url, | 254 const GURL& base_url, |
255 bool shared_worker_frontend, | 255 bool shared_worker_frontend, |
256 const std::string& remote_frontend, | 256 const std::string& remote_frontend, |
257 bool can_dock, | 257 bool can_dock); |
258 const std::string& settings); | |
259 | 258 |
260 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); | 259 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); |
261 static void ToggleDevToolsWindow( | 260 static void ToggleDevToolsWindow( |
262 content::WebContents* web_contents, | 261 content::WebContents* web_contents, |
263 bool force_open, | 262 bool force_open, |
264 const DevToolsToggleAction& action, | 263 const DevToolsToggleAction& action, |
265 const std::string& settings); | 264 const std::string& settings); |
266 | 265 |
267 // content::WebContentsDelegate: | 266 // content::WebContentsDelegate: |
268 void ActivateContents(content::WebContents* contents) override; | 267 void ActivateContents(content::WebContents* contents) override; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 base::Closure ready_for_test_callback_; | 342 base::Closure ready_for_test_callback_; |
344 | 343 |
345 base::TimeTicks inspect_element_start_time_; | 344 base::TimeTicks inspect_element_start_time_; |
346 std::unique_ptr<DevToolsEventForwarder> event_forwarder_; | 345 std::unique_ptr<DevToolsEventForwarder> event_forwarder_; |
347 | 346 |
348 friend class DevToolsEventForwarder; | 347 friend class DevToolsEventForwarder; |
349 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 348 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
350 }; | 349 }; |
351 | 350 |
352 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 351 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
OLD | NEW |