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

Side by Side Diff: chrome/browser/ui/cocoa/dev_tools_controller.h

Issue 388803003: [Mac] Replace SetOverlayView with AllowOtherViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, fixed comments Created 6 years, 5 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 | Annotate | Revision Log
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_UI_COCOA_DEV_TOOLS_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "chrome/browser/devtools/devtools_window.h" 11 #include "chrome/browser/devtools/devtools_window.h"
12 12
13 @class FocusTracker; 13 @class FocusTracker;
14 @class DevToolsContainerView; 14 @class DevToolsContainerView;
15 class Profile; 15 class Profile;
16 16
17 namespace content { 17 namespace content {
18 class WebContents; 18 class WebContents;
19 } 19 }
20 20
21 // A class that handles updates of the devTools view within a browser window. 21 // A class that handles updates of the devTools view within a browser window.
22 // It swaps in the relevant devTools contents for a given WebContents or removes 22 // It swaps in the relevant devTools contents for a given WebContents or removes
23 // the view, if there's no devTools contents to show. 23 // the view, if there's no devTools contents to show.
24 @interface DevToolsController : NSObject { 24 @interface DevToolsController : NSObject {
25 @private 25 @private
26 // A view hosting docked devTools contents. 26 // A view hosting docked devTools contents.
27 base::scoped_nsobject<DevToolsContainerView> devToolsContainerView_; 27 base::scoped_nsobject<DevToolsContainerView> devToolsContainerView_;
28 28
29 // Docked devtools web contents. NULL when current tab is not inspected
30 // or is inspected with undocked version of DevToolsWindow.
31 content::WebContents* devTools_;
32
33 base::scoped_nsobject<FocusTracker> focusTracker_; 29 base::scoped_nsobject<FocusTracker> focusTracker_;
34 } 30 }
35 31
36 - (id)init; 32 - (id)init;
37 33
38 // This controller's view. 34 // This controller's view.
39 - (NSView*)view; 35 - (NSView*)view;
40 36
41 // Depending on |contents|'s state, decides whether the docked web inspector 37 // Depending on |contents|'s state, decides whether the docked web inspector
42 // should be shown or hidden and adjusts inspected page position. 38 // should be shown or hidden and adjusts inspected page position.
43 - (void)updateDevToolsForWebContents:(content::WebContents*)contents 39 - (void)updateDevToolsForWebContents:(content::WebContents*)contents
44 withProfile:(Profile*)profile; 40 withProfile:(Profile*)profile;
45 41
46 @end 42 @end
47 43
48 #endif // CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_ 44 #endif // CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_window.h ('k') | chrome/browser/ui/cocoa/dev_tools_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698