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

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

Issue 1972033002: Simplify some old avatar menu button code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reinstate ash browser test fix Created 4 years, 7 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 13 matching lines...) Expand all
24 virtual int GetIconSize() const = 0; 24 virtual int GetIconSize() const = 0;
25 25
26 // Returns the browser's minimum view size. Used because we need to calculate 26 // Returns the browser's minimum view size. Used because we need to calculate
27 // the minimum size for the entire non-client area. 27 // the minimum size for the entire non-client area.
28 virtual gfx::Size GetBrowserViewMinimumSize() const = 0; 28 virtual gfx::Size GetBrowserViewMinimumSize() const = 0;
29 29
30 // Whether we should show the (minimize,maximize,close) buttons. This can 30 // Whether we should show the (minimize,maximize,close) buttons. This can
31 // depend on the current state of the window (e.g., whether it is maximized). 31 // depend on the current state of the window (e.g., whether it is maximized).
32 virtual bool ShouldShowCaptionButtons() const = 0; 32 virtual bool ShouldShowCaptionButtons() const = 0;
33 33
34 // Controls the visualization of the avatar
35 virtual bool ShouldShowAvatar() const = 0;
36
37 // Returns true if in guest mode or a non off the record session. 34 // Returns true if in guest mode or a non off the record session.
38 virtual bool IsRegularOrGuestSession() const = 0; 35 virtual bool IsRegularOrGuestSession() const = 0;
39 36
40 // We don't have a ThemeProvider in the layout manager, so plumb in the icon 37 // We don't have a ThemeProvider in the layout manager, so plumb in the icon
41 // source here. 38 // source here.
42 virtual gfx::ImageSkia GetOTRAvatarIcon() const = 0; 39 virtual gfx::ImageSkia GetOTRAvatarIcon() const = 0;
43 40
44 // Controls window state. 41 // Controls window state.
45 virtual bool IsMaximized() const = 0; 42 virtual bool IsMaximized() const = 0;
46 virtual bool IsMinimized() const = 0; 43 virtual bool IsMinimized() const = 0;
(...skipping 10 matching lines...) Expand all
57 // Returns the width of the portion of the toolbar's leading-edge rounded 54 // Returns the width of the portion of the toolbar's leading-edge rounded
58 // corner that is within the client area. This is only necessary pre-Material 55 // corner that is within the client area. This is only necessary pre-Material
59 // Design. 56 // Design.
60 virtual int GetToolbarLeadingCornerClientWidth() const = 0; 57 virtual int GetToolbarLeadingCornerClientWidth() const = 0;
61 58
62 protected: 59 protected:
63 virtual ~OpaqueBrowserFrameViewLayoutDelegate() {} 60 virtual ~OpaqueBrowserFrameViewLayoutDelegate() {}
64 }; 61 };
65 62
66 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGA TE_H_ 63 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_DELEGA TE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698