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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 content::WebContents* inspected_web_contents, | 248 content::WebContents* inspected_web_contents, |
249 bool can_dock); | 249 bool can_dock); |
250 | 250 |
251 static DevToolsWindow* Create(Profile* profile, | 251 static DevToolsWindow* Create(Profile* profile, |
252 const GURL& frontend_url, | 252 const GURL& frontend_url, |
253 content::WebContents* inspected_web_contents, | 253 content::WebContents* inspected_web_contents, |
254 bool shared_worker_frontend, | 254 bool shared_worker_frontend, |
255 bool v8_only_frontend, | 255 bool v8_only_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); | 258 const std::string& settings, |
| 259 const std::string& panel); |
259 static GURL GetDevToolsURL(Profile* profile, | 260 static GURL GetDevToolsURL(Profile* profile, |
260 const GURL& base_url, | 261 const GURL& base_url, |
261 bool shared_worker_frontend, | 262 bool shared_worker_frontend, |
262 bool v8_only_frontend, | 263 bool v8_only_frontend, |
263 const std::string& remote_frontend, | 264 const std::string& remote_frontend, |
264 bool can_dock); | 265 bool can_dock, |
| 266 const std::string& panel); |
265 | 267 |
266 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); | 268 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); |
267 static void ToggleDevToolsWindow( | 269 static void ToggleDevToolsWindow( |
268 content::WebContents* web_contents, | 270 content::WebContents* web_contents, |
269 bool force_open, | 271 bool force_open, |
270 const DevToolsToggleAction& action, | 272 const DevToolsToggleAction& action, |
271 const std::string& settings); | 273 const std::string& settings); |
272 | 274 |
273 // content::WebContentsDelegate: | 275 // content::WebContentsDelegate: |
274 void ActivateContents(content::WebContents* contents) override; | 276 void ActivateContents(content::WebContents* contents) override; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 base::Closure ready_for_test_callback_; | 357 base::Closure ready_for_test_callback_; |
356 | 358 |
357 base::TimeTicks inspect_element_start_time_; | 359 base::TimeTicks inspect_element_start_time_; |
358 std::unique_ptr<DevToolsEventForwarder> event_forwarder_; | 360 std::unique_ptr<DevToolsEventForwarder> event_forwarder_; |
359 | 361 |
360 friend class DevToolsEventForwarder; | 362 friend class DevToolsEventForwarder; |
361 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); | 363 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); |
362 }; | 364 }; |
363 | 365 |
364 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ | 366 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ |
OLD | NEW |