OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const; | 54 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const; |
55 | 55 |
56 // Returns the y coordinate within the window at which the horizontal TabStrip | 56 // Returns the y coordinate within the window at which the horizontal TabStrip |
57 // begins (or would begin). If |restored| is true, this is calculated as if | 57 // begins (or would begin). If |restored| is true, this is calculated as if |
58 // we were in restored mode regardless of the current mode. | 58 // we were in restored mode regardless of the current mode. |
59 int GetHorizontalTabStripVerticalOffset(bool restored) const; | 59 int GetHorizontalTabStripVerticalOffset(bool restored) const; |
60 | 60 |
61 // Tells the frame to update the throbber. | 61 // Tells the frame to update the throbber. |
62 void UpdateThrobber(bool running); | 62 void UpdateThrobber(bool running); |
63 | 63 |
64 // Returns true if the window should use the native frame view. This is true | |
65 // if there are no themes applied on Vista, or if there are themes applied and | |
66 // this browser window is an app or popup. | |
67 bool AlwaysUseNativeFrame() const; | |
68 | |
69 // Returns the NonClientFrameView of this frame. | 64 // Returns the NonClientFrameView of this frame. |
70 views::View* GetFrameView() const; | 65 views::View* GetFrameView() const; |
71 | 66 |
72 // Notifies the frame that the tab strip display mode changed so it can update | 67 // Notifies the frame that the tab strip display mode changed so it can update |
73 // its frame treatment if necessary. | 68 // its frame treatment if necessary. |
74 void TabStripDisplayModeChanged(); | 69 void TabStripDisplayModeChanged(); |
75 | 70 |
76 // Overridden from views::Window: | 71 // Overridden from views::Window: |
77 virtual bool IsMaximized() const OVERRIDE; | 72 virtual bool IsMaximized() const OVERRIDE; |
78 virtual views::RootView* CreateRootView() OVERRIDE; | 73 virtual views::RootView* CreateRootView() OVERRIDE; |
(...skipping 14 matching lines...) Expand all Loading... |
93 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 88 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
94 BrowserNonClientFrameView* browser_frame_view_; | 89 BrowserNonClientFrameView* browser_frame_view_; |
95 | 90 |
96 // The BrowserView is our ClientView. This is a pointer to it. | 91 // The BrowserView is our ClientView. This is a pointer to it. |
97 BrowserView* browser_view_; | 92 BrowserView* browser_view_; |
98 | 93 |
99 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 94 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
100 }; | 95 }; |
101 | 96 |
102 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 97 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
OLD | NEW |