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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h

Issue 1624773002: Clean up frame code a bit: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync, fix compile Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h b/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h
index 4614503f11adc76994e7e29c3f456876b9ccfa96..9d17744861b33570de35616acadd574c0de287c6 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h
@@ -107,9 +107,9 @@ class OpaqueBrowserFrameViewLayout : public views::LayoutManager {
ALIGN_TRAILING
};
- // Determines whether the avatar should be shown on the right side of the tab
- // strip (instead of the usual left).
- bool ShouldAvatarBeOnRight() const;
+ // Determines whether the incognito icon should be shown on the right side of
+ // the tab strip (instead of the usual left).
+ bool ShouldIncognitoIconBeOnRight() const;
// Determines the amount of spacing between the New Tab button and the element
// to its immediate right.
@@ -118,7 +118,7 @@ class OpaqueBrowserFrameViewLayout : public views::LayoutManager {
// Layout various sub-components of this view.
void LayoutWindowControls(views::View* host);
void LayoutTitleBar(views::View* host);
- void LayoutAvatar(views::View* host);
+ void LayoutIncognitoIcon(views::View* host);
void LayoutNewStyleAvatar(views::View* host);
void ConfigureButton(views::View* host,
@@ -146,9 +146,6 @@ class OpaqueBrowserFrameViewLayout : public views::LayoutManager {
OpaqueBrowserFrameViewLayoutDelegate* delegate_;
- // The layout rect of the avatar icon, if visible.
- gfx::Rect avatar_bounds_;
-
// The bounds of the ClientView.
gfx::Rect client_view_bounds_;

Powered by Google App Engine
This is Rietveld 408576698