OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGATE_
H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGATE_
H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGATE_
H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGATE_
H_ |
7 | 7 |
8 namespace gfx { | 8 namespace gfx { |
9 class Size; | 9 class Size; |
10 } | 10 } |
(...skipping 17 matching lines...) Expand all Loading... |
28 // top. | 28 // top. |
29 virtual bool ShouldLeaveOffsetNearTopBorder() const = 0; | 29 virtual bool ShouldLeaveOffsetNearTopBorder() const = 0; |
30 | 30 |
31 // Returns the browser's minimum view size. Used because we need to calculate | 31 // Returns the browser's minimum view size. Used because we need to calculate |
32 // the minimum size for the entire non-client area. | 32 // the minimum size for the entire non-client area. |
33 virtual gfx::Size GetBrowserViewMinimumSize() const = 0; | 33 virtual gfx::Size GetBrowserViewMinimumSize() const = 0; |
34 | 34 |
35 // Controls the visualization of the avatar | 35 // Controls the visualization of the avatar |
36 virtual bool ShouldShowAvatar() const = 0; | 36 virtual bool ShouldShowAvatar() const = 0; |
37 | 37 |
| 38 // Returns true if in guest mode or a non off the record session. |
| 39 virtual bool IsRegularOrGuestSession() const = 0; |
| 40 |
38 // We don't have a ThemeProvider in the layout manager, so plumb in the icon | 41 // We don't have a ThemeProvider in the layout manager, so plumb in the icon |
39 // source here. | 42 // source here. |
40 virtual gfx::ImageSkia GetOTRAvatarIcon() const = 0; | 43 virtual gfx::ImageSkia GetOTRAvatarIcon() const = 0; |
41 | 44 |
42 // Controls window state. | 45 // Controls window state. |
43 virtual bool IsMaximized() const = 0; | 46 virtual bool IsMaximized() const = 0; |
44 virtual bool IsMinimized() const = 0; | 47 virtual bool IsMinimized() const = 0; |
45 virtual bool IsFullscreen() const = 0; | 48 virtual bool IsFullscreen() const = 0; |
46 | 49 |
47 virtual bool IsTabStripVisible() const = 0; | 50 virtual bool IsTabStripVisible() const = 0; |
48 virtual int GetTabStripHeight() const = 0; | 51 virtual int GetTabStripHeight() const = 0; |
49 | 52 |
50 // Various platforms need to be able to add more space to the | 53 // Various platforms need to be able to add more space to the |
51 // tabstrip. Windows 8 metro mode uses this to account for the window | 54 // tabstrip. Windows 8 metro mode uses this to account for the window |
52 // switcher button. | 55 // switcher button. |
53 virtual int GetAdditionalReservedSpaceInTabStrip() const = 0; | 56 virtual int GetAdditionalReservedSpaceInTabStrip() const = 0; |
54 | 57 |
55 // Returns the tabstrips preferred size so the frame layout can work around | 58 // Returns the tabstrips preferred size so the frame layout can work around |
56 // it. | 59 // it. |
57 virtual gfx::Size GetTabstripPreferredSize() const = 0; | 60 virtual gfx::Size GetTabstripPreferredSize() const = 0; |
58 | 61 |
59 protected: | 62 protected: |
60 virtual ~OpaqueBrowserFrameViewLayoutDelegate() {} | 63 virtual ~OpaqueBrowserFrameViewLayoutDelegate() {} |
61 }; | 64 }; |
62 | 65 |
63 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGA
TE_H_ | 66 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGA
TE_H_ |
OLD | NEW |