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_NON_CLIENT_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 8 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
9 #include "ui/views/window/non_client_view.h" | 9 #include "ui/views/window/non_client_view.h" |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #endif | 42 #endif |
43 | 43 |
44 // Retrieves the bounds, in non-client view coordinates within which the | 44 // Retrieves the bounds, in non-client view coordinates within which the |
45 // TabStrip should be laid out. | 45 // TabStrip should be laid out. |
46 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0; | 46 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0; |
47 | 47 |
48 // Returns the inset of the topmost view in the client view from the top of | 48 // Returns the inset of the topmost view in the client view from the top of |
49 // the non-client view. The topmost view depends on the window type. The | 49 // the non-client view. The topmost view depends on the window type. The |
50 // topmost view is the tab strip for tabbed browser windows, the toolbar for | 50 // topmost view is the tab strip for tabbed browser windows, the toolbar for |
51 // popups, the web contents for app windows and varies for fullscreen windows. | 51 // popups, the web contents for app windows and varies for fullscreen windows. |
52 virtual int GetTopInset() const = 0; | 52 // If |restored| is true, this is calculated as if the window was restored, |
| 53 // regardless of its current state. |
| 54 virtual int GetTopInset(bool restored) const = 0; |
53 | 55 |
54 // Returns the amount that the theme background should be inset. | 56 // Returns the amount that the theme background should be inset. |
55 virtual int GetThemeBackgroundXInset() const = 0; | 57 virtual int GetThemeBackgroundXInset() const = 0; |
56 | 58 |
57 // Updates the throbber. | 59 // Updates the throbber. |
58 virtual void UpdateThrobber(bool running) = 0; | 60 virtual void UpdateThrobber(bool running) = 0; |
59 | 61 |
60 // Updates any toolbar components in the frame. The default implementation | 62 // Updates any toolbar components in the frame. The default implementation |
61 // does nothing. | 63 // does nothing. |
62 virtual void UpdateToolbar(); | 64 virtual void UpdateToolbar(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 139 |
138 namespace chrome { | 140 namespace chrome { |
139 | 141 |
140 // Provided by a browser_non_client_frame_view_factory_*.cc implementation | 142 // Provided by a browser_non_client_frame_view_factory_*.cc implementation |
141 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( | 143 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( |
142 BrowserFrame* frame, BrowserView* browser_view); | 144 BrowserFrame* frame, BrowserView* browser_view); |
143 | 145 |
144 } // namespace chrome | 146 } // namespace chrome |
145 | 147 |
146 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 148 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
OLD | NEW |