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 |
64 // Returns the NonClientFrameView of this frame. | 69 // Returns the NonClientFrameView of this frame. |
65 views::View* GetFrameView() const; | 70 views::View* GetFrameView() const; |
66 | 71 |
67 // Notifies the frame that the tab strip display mode changed so it can update | 72 // Notifies the frame that the tab strip display mode changed so it can update |
68 // its frame treatment if necessary. | 73 // its frame treatment if necessary. |
69 void TabStripDisplayModeChanged(); | 74 void TabStripDisplayModeChanged(); |
70 | 75 |
71 // Overridden from views::Window: | 76 // Overridden from views::Window: |
72 virtual bool IsMaximized() const OVERRIDE; | 77 virtual bool IsMaximized() const OVERRIDE; |
73 virtual views::RootView* CreateRootView() OVERRIDE; | 78 virtual views::RootView* CreateRootView() OVERRIDE; |
(...skipping 14 matching lines...) Expand all Loading... |
88 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 93 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
89 BrowserNonClientFrameView* browser_frame_view_; | 94 BrowserNonClientFrameView* browser_frame_view_; |
90 | 95 |
91 // The BrowserView is our ClientView. This is a pointer to it. | 96 // The BrowserView is our ClientView. This is a pointer to it. |
92 BrowserView* browser_view_; | 97 BrowserView* browser_view_; |
93 | 98 |
94 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 99 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
95 }; | 100 }; |
96 | 101 |
97 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 102 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
OLD | NEW |