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

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

Issue 2832823002: Update avatar button to MD (Closed)
Patch Set: Rebased on CL 2833363002 Created 3 years, 8 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 (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_attributes_storage.h" 8 #include "chrome/browser/profiles/profile_attributes_storage.h"
9 #include "chrome/browser/ui/views/profiles/profile_indicator_icon.h" 9 #include "chrome/browser/ui/views/profiles/profile_indicator_icon.h"
10 #include "ui/views/controls/button/menu_button.h"
Peter Kasting 2017/04/26 02:09:53 Nit: Forward-declare rather than #include
emx 2017/04/27 16:30:58 Done.
10 #include "ui/views/window/non_client_view.h" 11 #include "ui/views/window/non_client_view.h"
11 12
12 class BrowserFrame; 13 class BrowserFrame;
13 class BrowserView; 14 class BrowserView;
14 15
15 // A specialization of the NonClientFrameView object that provides additional 16 // A specialization of the NonClientFrameView object that provides additional
16 // Browser-specific methods. 17 // Browser-specific methods.
17 class BrowserNonClientFrameView : public views::NonClientFrameView, 18 class BrowserNonClientFrameView : public views::NonClientFrameView,
18 public ProfileAttributesStorage::Observer { 19 public ProfileAttributesStorage::Observer {
19 public: 20 public:
(...skipping 28 matching lines...) Expand all
48 gfx::ImageSkia GetIncognitoAvatarIcon() const; 49 gfx::ImageSkia GetIncognitoAvatarIcon() const;
49 50
50 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation 51 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation
51 // state of the window. 52 // state of the window.
52 SkColor GetToolbarTopSeparatorColor() const; 53 SkColor GetToolbarTopSeparatorColor() const;
53 54
54 // Updates the throbber. 55 // Updates the throbber.
55 virtual void UpdateThrobber(bool running) = 0; 56 virtual void UpdateThrobber(bool running) = 0;
56 57
57 // Returns the profile switcher button, if this frame has any. 58 // Returns the profile switcher button, if this frame has any.
58 virtual views::View* GetProfileSwitcherView() const; 59 virtual views::MenuButton* GetProfileSwitcherButton() const;
59 60
60 // Provided for mus. Updates the client-area of the WindowTreeHostMus. 61 // Provided for mus. Updates the client-area of the WindowTreeHostMus.
61 virtual void UpdateClientArea(); 62 virtual void UpdateClientArea();
62 63
63 // Overriden from views::View. 64 // Overriden from views::View.
64 void VisibilityChanged(views::View* starting_from, bool is_visible) override; 65 void VisibilityChanged(views::View* starting_from, bool is_visible) override;
65 66
66 protected: 67 protected:
67 // Whether the frame should be painted with theming. 68 // Whether the frame should be painted with theming.
68 // By default, tabbed browser windows are themed but popup and app windows are 69 // By default, tabbed browser windows are themed but popup and app windows are
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 133
133 namespace chrome { 134 namespace chrome {
134 135
135 // Provided by a browser_non_client_frame_view_factory_*.cc implementation 136 // Provided by a browser_non_client_frame_view_factory_*.cc implementation
136 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( 137 BrowserNonClientFrameView* CreateBrowserNonClientFrameView(
137 BrowserFrame* frame, BrowserView* browser_view); 138 BrowserFrame* frame, BrowserView* browser_view);
138 139
139 } // namespace chrome 140 } // namespace chrome
140 141
141 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 142 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698