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

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: Fix for --force-device-scale-factor, vector icon, review comments Created 3 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 (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/window/non_client_view.h" 10 #include "ui/views/window/non_client_view.h"
11 11
12 class BrowserFrame; 12 class BrowserFrame;
13 class BrowserView; 13 class BrowserView;
14 14
15 namespace views {
16 class MenuButton;
17 }
18
15 // A specialization of the NonClientFrameView object that provides additional 19 // A specialization of the NonClientFrameView object that provides additional
16 // Browser-specific methods. 20 // Browser-specific methods.
17 class BrowserNonClientFrameView : public views::NonClientFrameView, 21 class BrowserNonClientFrameView : public views::NonClientFrameView,
18 public ProfileAttributesStorage::Observer { 22 public ProfileAttributesStorage::Observer {
19 public: 23 public:
20 // The padding on the left, right, and bottom of the avatar icon. 24 // The padding on the left, right, and bottom of the avatar icon.
21 static constexpr int kAvatarIconPadding = 4; 25 static constexpr int kAvatarIconPadding = 4;
22 26
23 BrowserNonClientFrameView(BrowserFrame* frame, BrowserView* browser_view); 27 BrowserNonClientFrameView(BrowserFrame* frame, BrowserView* browser_view);
24 ~BrowserNonClientFrameView() override; 28 ~BrowserNonClientFrameView() override;
(...skipping 23 matching lines...) Expand all
48 gfx::ImageSkia GetIncognitoAvatarIcon() const; 52 gfx::ImageSkia GetIncognitoAvatarIcon() const;
49 53
50 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation 54 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation
51 // state of the window. 55 // state of the window.
52 SkColor GetToolbarTopSeparatorColor() const; 56 SkColor GetToolbarTopSeparatorColor() const;
53 57
54 // Updates the throbber. 58 // Updates the throbber.
55 virtual void UpdateThrobber(bool running) = 0; 59 virtual void UpdateThrobber(bool running) = 0;
56 60
57 // Returns the profile switcher button, if this frame has any. 61 // Returns the profile switcher button, if this frame has any.
58 virtual views::View* GetProfileSwitcherView() const; 62 virtual views::MenuButton* GetProfileSwitcherButton() const;
59 63
60 // Provided for mus. Updates the client-area of the WindowTreeHostMus. 64 // Provided for mus. Updates the client-area of the WindowTreeHostMus.
61 virtual void UpdateClientArea(); 65 virtual void UpdateClientArea();
62 66
63 // Overriden from views::View. 67 // Overriden from views::View.
64 void VisibilityChanged(views::View* starting_from, bool is_visible) override; 68 void VisibilityChanged(views::View* starting_from, bool is_visible) override;
65 69
66 protected: 70 protected:
67 // Whether the frame should be painted with theming. 71 // Whether the frame should be painted with theming.
68 // By default, tabbed browser windows are themed but popup and app windows are 72 // 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 136
133 namespace chrome { 137 namespace chrome {
134 138
135 // Provided by a browser_non_client_frame_view_factory_*.cc implementation 139 // Provided by a browser_non_client_frame_view_factory_*.cc implementation
136 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( 140 BrowserNonClientFrameView* CreateBrowserNonClientFrameView(
137 BrowserFrame* frame, BrowserView* browser_view); 141 BrowserFrame* frame, BrowserView* browser_view);
138 142
139 } // namespace chrome 143 } // namespace chrome
140 144
141 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 145 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698