OLD | NEW |
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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 BrowserNonClientFrameView::TabStripInsets GetTabStripInsets( | 55 BrowserNonClientFrameView::TabStripInsets GetTabStripInsets( |
56 bool force_restored) const; | 56 bool force_restored) const; |
57 | 57 |
| 58 // Returns the amount that the theme background should be inset. |
| 59 int GetThemeBackgroundXInset() const; |
| 60 |
58 // Tells the frame to update the throbber. | 61 // Tells the frame to update the throbber. |
59 void UpdateThrobber(bool running); | 62 void UpdateThrobber(bool running); |
60 | 63 |
61 // Returns the NonClientFrameView of this frame. | 64 // Returns the NonClientFrameView of this frame. |
62 views::View* GetFrameView() const; | 65 views::View* GetFrameView() const; |
63 | 66 |
64 // 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 |
65 // its frame treatment if necessary. | 68 // its frame treatment if necessary. |
66 void TabStripDisplayModeChanged(); | 69 void TabStripDisplayModeChanged(); |
67 | 70 |
(...skipping 18 matching lines...) Expand all Loading... |
86 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 89 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
87 BrowserNonClientFrameView* browser_frame_view_; | 90 BrowserNonClientFrameView* browser_frame_view_; |
88 | 91 |
89 // The BrowserView is our ClientView. This is a pointer to it. | 92 // The BrowserView is our ClientView. This is a pointer to it. |
90 BrowserView* browser_view_; | 93 BrowserView* browser_view_; |
91 | 94 |
92 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 95 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
93 }; | 96 }; |
94 | 97 |
95 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 98 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
OLD | NEW |