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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame.h

Issue 10821002: Makes the min window size include the OTR image and caption buttons on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 4 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_VIEWS_FRAME_BROWSER_FRAME_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
11 #include "ui/views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
12 13
13 class AvatarMenuButton; 14 class AvatarMenuButton;
14 class BrowserNonClientFrameView;
15 class BrowserRootView; 15 class BrowserRootView;
16 class BrowserView; 16 class BrowserView;
17 class NativeBrowserFrame; 17 class NativeBrowserFrame;
18 class NonClientFrameView; 18 class NonClientFrameView;
19 19
20 namespace gfx { 20 namespace gfx {
21 class Font; 21 class Font;
22 class Rect; 22 class Rect;
23 } 23 }
24 24
(...skipping 20 matching lines...) Expand all
45 // left edge of the window. Used in our Non-Client View's Layout. 45 // left edge of the window. Used in our Non-Client View's Layout.
46 int GetMinimizeButtonOffset() const; 46 int GetMinimizeButtonOffset() const;
47 47
48 // Retrieves the bounds, in non-client view coordinates for the specified 48 // Retrieves the bounds, in non-client view coordinates for the specified
49 // TabStrip view. 49 // TabStrip view.
50 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const; 50 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const;
51 51
52 // Returns the y coordinate within the window at which the horizontal TabStrip 52 // Returns the y coordinate within the window at which the horizontal TabStrip
53 // begins (or would begin). If |force_restored| is true, this is calculated 53 // begins (or would begin). If |force_restored| is true, this is calculated
54 // as if we were in restored mode regardless of the current mode. 54 // as if we were in restored mode regardless of the current mode.
55 int GetHorizontalTabStripVerticalOffset(bool force_restored) const; 55 BrowserNonClientFrameView::TabStripInsets GetTabStripInsets(
56 bool force_restored) const;
56 57
57 // Tells the frame to update the throbber. 58 // Tells the frame to update the throbber.
58 void UpdateThrobber(bool running); 59 void UpdateThrobber(bool running);
59 60
60 // Returns the NonClientFrameView of this frame. 61 // Returns the NonClientFrameView of this frame.
61 views::View* GetFrameView() const; 62 views::View* GetFrameView() const;
62 63
63 // Notifies the frame that the tab strip display mode changed so it can update 64 // Notifies the frame that the tab strip display mode changed so it can update
64 // its frame treatment if necessary. 65 // its frame treatment if necessary.
65 void TabStripDisplayModeChanged(); 66 void TabStripDisplayModeChanged();
(...skipping 19 matching lines...) Expand all
85 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. 86 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView.
86 BrowserNonClientFrameView* browser_frame_view_; 87 BrowserNonClientFrameView* browser_frame_view_;
87 88
88 // The BrowserView is our ClientView. This is a pointer to it. 89 // The BrowserView is our ClientView. This is a pointer to it.
89 BrowserView* browser_view_; 90 BrowserView* browser_view_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); 92 DISALLOW_COPY_AND_ASSIGN(BrowserFrame);
92 }; 93 };
93 94
94 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ 95 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc ('k') | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698