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

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

Issue 251653003: Introduces DevToolsManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Register OpenDevToolsWindowForWorkerCallback to DevToolsManager Created 6 years, 7 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"
11 #include "content/public/browser/devtools_manager.h"
11 #include "content/public/browser/web_contents_delegate.h" 12 #include "content/public/browser/web_contents_delegate.h"
12 13
13 class Browser; 14 class Browser;
14 class BrowserWindow; 15 class BrowserWindow;
15 class DevToolsControllerTest; 16 class DevToolsControllerTest;
16 class DevToolsEventForwarder; 17 class DevToolsEventForwarder;
17 18
18 namespace content { 19 namespace content {
19 class DevToolsAgentHost; 20 class DevToolsAgentHost;
20 struct NativeWebKeyboardEvent; 21 struct NativeWebKeyboardEvent;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 static void OpenExternalFrontend( 80 static void OpenExternalFrontend(
80 Profile* profile, 81 Profile* profile,
81 const std::string& frontend_uri, 82 const std::string& frontend_uri,
82 content::DevToolsAgentHost* agent_host); 83 content::DevToolsAgentHost* agent_host);
83 84
84 // Worker frontend is always undocked. 85 // Worker frontend is always undocked.
85 static DevToolsWindow* OpenDevToolsWindowForWorker( 86 static DevToolsWindow* OpenDevToolsWindowForWorker(
86 Profile* profile, 87 Profile* profile,
87 content::DevToolsAgentHost* worker_agent); 88 content::DevToolsAgentHost* worker_agent);
88 89
90 static content::DevToolsManager::WindowOpenCallback
91 GetOpenDevToolsWindowForWorkerCallback();
92
89 static void InspectElement( 93 static void InspectElement(
90 content::RenderViewHost* inspected_rvh, int x, int y); 94 content::RenderViewHost* inspected_rvh, int x, int y);
91 95
92 content::WebContents* web_contents() { return web_contents_; } 96 content::WebContents* web_contents() { return web_contents_; }
93 97
94 Browser* browser() { return browser_; } // For tests. 98 Browser* browser() { return browser_; } // For tests.
95 99
96 // Inspected WebContents is placed over DevTools WebContents in docked mode. 100 // Inspected WebContents is placed over DevTools WebContents in docked mode.
97 // The following method returns the resizing strategy of inspected 101 // The following method returns the resizing strategy of inspected
98 // WebContents relative to DevTools WebContents. 102 // WebContents relative to DevTools WebContents.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 base::Closure load_completed_callback_; 316 base::Closure load_completed_callback_;
313 317
314 base::TimeTicks inspect_element_start_time_; 318 base::TimeTicks inspect_element_start_time_;
315 scoped_ptr<DevToolsEventForwarder> event_forwarder_; 319 scoped_ptr<DevToolsEventForwarder> event_forwarder_;
316 320
317 friend class DevToolsEventForwarder; 321 friend class DevToolsEventForwarder;
318 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 322 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
319 }; 323 };
320 324
321 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 325 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698