Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_delegate.h

Issue 24647003: Redesign of the avatar menu button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix RTL button Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 incognito mode.
39 virtual bool IsOffTheRecord() const = 0;
40
41 // Returns true if this is a guest session.
42 virtual bool IsGuestSession() const = 0;
43
38 // We don't have a ThemeProvider in the layout manager, so plumb in the icon 44 // We don't have a ThemeProvider in the layout manager, so plumb in the icon
39 // source here. 45 // source here.
40 virtual gfx::ImageSkia GetOTRAvatarIcon() const = 0; 46 virtual gfx::ImageSkia GetOTRAvatarIcon() const = 0;
41 47
42 // Controls window state. 48 // Controls window state.
43 virtual bool IsMaximized() const = 0; 49 virtual bool IsMaximized() const = 0;
44 virtual bool IsMinimized() const = 0; 50 virtual bool IsMinimized() const = 0;
45 virtual bool IsFullscreen() const = 0; 51 virtual bool IsFullscreen() const = 0;
46 52
47 virtual bool IsTabStripVisible() const = 0; 53 virtual bool IsTabStripVisible() const = 0;
48 virtual int GetTabStripHeight() const = 0; 54 virtual int GetTabStripHeight() const = 0;
49 55
50 // Various platforms need to be able to add more space to the 56 // 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 57 // tabstrip. Windows 8 metro mode uses this to account for the window
52 // switcher button. 58 // switcher button.
53 virtual int GetAdditionalReservedSpaceInTabStrip() const = 0; 59 virtual int GetAdditionalReservedSpaceInTabStrip() const = 0;
54 60
55 // Returns the tabstrips preferred size so the frame layout can work around 61 // Returns the tabstrips preferred size so the frame layout can work around
56 // it. 62 // it.
57 virtual gfx::Size GetTabstripPreferredSize() const = 0; 63 virtual gfx::Size GetTabstripPreferredSize() const = 0;
58 64
59 protected: 65 protected:
60 virtual ~OpaqueBrowserFrameViewLayoutDelegate() {} 66 virtual ~OpaqueBrowserFrameViewLayoutDelegate() {}
61 }; 67 };
62 68
63 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGA TE_H_ 69 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGA TE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698