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

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

Issue 2893343002: Resize avatar button as appropriate for opaque browser frame. (Closed)
Patch Set: comment 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_non_client_frame_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Updates the throbber. 54 // Updates the throbber.
55 virtual void UpdateThrobber(bool running) = 0; 55 virtual void UpdateThrobber(bool running) = 0;
56 56
57 // Returns the profile switcher button, if this frame has any. 57 // Returns the profile switcher button, if this frame has any.
58 virtual views::View* GetProfileSwitcherView() const; 58 virtual views::View* GetProfileSwitcherView() const;
59 59
60 // Provided for mus. Updates the client-area of the WindowTreeHostMus. 60 // Provided for mus. Updates the client-area of the WindowTreeHostMus.
61 virtual void UpdateClientArea(); 61 virtual void UpdateClientArea();
62 62
63 // Overriden from views::View. 63 // Overriden from views::View.
64 void ChildPreferredSizeChanged(views::View* child) override;
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
69 // not. 70 // not.
70 virtual bool ShouldPaintAsThemed() const; 71 virtual bool ShouldPaintAsThemed() const;
71 72
72 // Compute aspects of the frame needed to paint the frame background. 73 // Compute aspects of the frame needed to paint the frame background.
73 SkColor GetFrameColor(bool active) const; 74 SkColor GetFrameColor(bool active) const;
(...skipping 58 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_non_client_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698