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

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

Issue 2555623002: Last round of cleaning up MD layout constants. (Closed)
Patch Set: rebase Created 4 years 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"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // Returns the location icon, if this frame has any. 58 // Returns the location icon, if this frame has any.
59 virtual views::View* GetLocationIconView() const; 59 virtual views::View* GetLocationIconView() const;
60 60
61 // Returns the profile switcher button, if this frame has any. 61 // Returns the profile switcher button, if this frame has any.
62 virtual views::View* GetProfileSwitcherView() const; 62 virtual views::View* GetProfileSwitcherView() const;
63 63
64 // Overriden from views::View. 64 // Overriden from views::View.
65 void VisibilityChanged(views::View* starting_from, bool is_visible) override; 65 void VisibilityChanged(views::View* starting_from, bool is_visible) override;
66 66
67 // The padding on the left, right, and bottom of the avatar icon.
68 static constexpr int kAvatarIconPadding = 4;
Peter Kasting 2016/12/08 20:57:49 Nit: Goes above constructor (see http://google.git
Evan Stade 2016/12/13 01:31:16 thanks, for some reason my understanding stopped a
69
67 protected: 70 protected:
68 // Whether the frame should be painted with theming. 71 // Whether the frame should be painted with theming.
69 // 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
70 // not. 73 // not.
71 virtual bool ShouldPaintAsThemed() const; 74 virtual bool ShouldPaintAsThemed() const;
72 75
73 // Compute aspects of the frame needed to paint the frame background. 76 // Compute aspects of the frame needed to paint the frame background.
74 SkColor GetFrameColor(bool active) const; 77 SkColor GetFrameColor(bool active) const;
75 gfx::ImageSkia GetFrameImage(bool active) const; 78 gfx::ImageSkia GetFrameImage(bool active) const;
76 gfx::ImageSkia GetFrameOverlayImage(bool active) const; 79 gfx::ImageSkia GetFrameOverlayImage(bool active) const;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 136
134 namespace chrome { 137 namespace chrome {
135 138
136 // Provided by a browser_non_client_frame_view_factory_*.cc implementation 139 // Provided by a browser_non_client_frame_view_factory_*.cc implementation
137 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( 140 BrowserNonClientFrameView* CreateBrowserNonClientFrameView(
138 BrowserFrame* frame, BrowserView* browser_view); 141 BrowserFrame* frame, BrowserView* browser_view);
139 142
140 } // namespace chrome 143 } // namespace chrome
141 144
142 #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