Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: chrome/browser/devtools/devtools_window.h

Issue 976313003: [DevTools] Expose DevToolsAgentHost for OOPIF, display it in chrome://inspect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Open or reveal DevTools window, and perform the specified action. 66 // Open or reveal DevTools window, and perform the specified action.
67 static DevToolsWindow* OpenDevToolsWindow( 67 static DevToolsWindow* OpenDevToolsWindow(
68 content::WebContents* inspected_web_contents, 68 content::WebContents* inspected_web_contents,
69 const DevToolsToggleAction& action); 69 const DevToolsToggleAction& action);
70 70
71 // Open or reveal DevTools window, with no special action. 71 // Open or reveal DevTools window, with no special action.
72 static DevToolsWindow* OpenDevToolsWindow( 72 static DevToolsWindow* OpenDevToolsWindow(
73 content::WebContents* inspected_web_contents); 73 content::WebContents* inspected_web_contents);
74 74
75 // Open or reveal DevTools window. This window will be undocked.
76 static DevToolsWindow* OpenDevToolsWindow(
77 Profile* profile,
78 const scoped_refptr<content::DevToolsAgentHost>& agent_host);
79
75 // Perform specified action for current WebContents inside a |browser|. 80 // Perform specified action for current WebContents inside a |browser|.
76 // This may close currently open DevTools window. 81 // This may close currently open DevTools window.
77 static DevToolsWindow* ToggleDevToolsWindow( 82 static DevToolsWindow* ToggleDevToolsWindow(
78 Browser* browser, 83 Browser* browser,
79 const DevToolsToggleAction& action); 84 const DevToolsToggleAction& action);
80 85
81 // External frontend is always undocked. 86 // External frontend is always undocked.
82 static void OpenExternalFrontend( 87 static void OpenExternalFrontend(
83 Profile* profile, 88 Profile* profile,
84 const std::string& frontend_uri, 89 const std::string& frontend_uri,
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 base::Closure close_callback_; 314 base::Closure close_callback_;
310 315
311 base::TimeTicks inspect_element_start_time_; 316 base::TimeTicks inspect_element_start_time_;
312 scoped_ptr<DevToolsEventForwarder> event_forwarder_; 317 scoped_ptr<DevToolsEventForwarder> event_forwarder_;
313 318
314 friend class DevToolsEventForwarder; 319 friend class DevToolsEventForwarder;
315 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 320 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
316 }; 321 };
317 322
318 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 323 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698