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

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

Issue 3547008: Handle resize corner layout entirely in the platform BrowserWindow*/BrowserView* code... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COCOA_DEV_TOOLS_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_DEV_TOOLS_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_DEV_TOOLS_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_DEV_TOOLS_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 10
11 #include "base/scoped_nsobject.h" 11 #include "base/scoped_nsobject.h"
12 #import "chrome/browser/cocoa/tab_contents_controller.h"
12 13
13 @class NSSplitView; 14 @class NSSplitView;
14 @class NSView; 15 @class NSView;
15 16
16 class TabContents; 17 class TabContents;
17 18
18 // A class that handles updates of the devTools view within a browser window. 19 // A class that handles updates of the devTools view within a browser window.
19 // It swaps in the relevant devTools contents for a given TabContents or removes 20 // It swaps in the relevant devTools contents for a given TabContents or removes
20 // the vew, if there's no devTools contents to show. 21 // the vew, if there's no devTools contents to show.
21 @interface DevToolsController : NSObject { 22 @interface DevToolsController : NSObject {
22 @private 23 @private
23 // A view hosting docked devTools contents. 24 // A view hosting docked devTools contents.
24 scoped_nsobject<NSSplitView> splitView_; 25 scoped_nsobject<NSSplitView> splitView_;
26
27 // Manages currently displayed devTools contents.
28 scoped_nsobject<TabContentsController> contentsController_;
25 } 29 }
26 30
27 - (id)init; 31 - (id)initWithDelegate:(id<TabContentsControllerDelegate>)delegate;
28 32
29 // This controller's view. 33 // This controller's view.
30 - (NSView*)view; 34 - (NSView*)view;
31 35
32 // The compiler seems to have trouble handling a function named "view" that 36 // The compiler seems to have trouble handling a function named "view" that
33 // returns an NSSplitView, so provide a differently-named method. 37 // returns an NSSplitView, so provide a differently-named method.
34 - (NSSplitView*)splitView; 38 - (NSSplitView*)splitView;
35 39
36 // Depending on |contents|'s state, decides whether the docked web inspector 40 // Depending on |contents|'s state, decides whether the docked web inspector
37 // should be shown or hidden and adjusts its height (|delegate_| handles 41 // should be shown or hidden and adjusts its height (|delegate_| handles
38 // the actual resize). 42 // the actual resize).
39 - (void)updateDevToolsForTabContents:(TabContents*)contents; 43 - (void)updateDevToolsForTabContents:(TabContents*)contents;
40 44
45 // Call when the devTools view is properly sized and the render widget host view
46 // should be put into the view hierarchy.
47 - (void)ensureContentsVisible;
48
41 @end 49 @end
42 50
43 #endif // CHROME_BROWSER_COCOA_DEV_TOOLS_CONTROLLER_H_ 51 #endif // CHROME_BROWSER_COCOA_DEV_TOOLS_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698