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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame.cc

Issue 1412833008: Draw the same portion of the frame background behind the tabstrip in maximized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@match_frame_alignment
Patch Set: Add comment Created 5 years, 1 month 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 #include "chrome/browser/ui/views/frame/browser_frame.h" 5 #include "chrome/browser/ui/views/frame/browser_frame.h"
6 6
7 #include "base/debug/leak_annotations.h" 7 #include "base/debug/leak_annotations.h"
8 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.h"
9 #include "chrome/browser/app_mode/app_mode_utils.h" 9 #include "chrome/browser/app_mode/app_mode_utils.h"
10 #include "chrome/browser/themes/theme_service.h" 10 #include "chrome/browser/themes/theme_service.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 int BrowserFrame::GetMinimizeButtonOffset() const { 95 int BrowserFrame::GetMinimizeButtonOffset() const {
96 return native_browser_frame_->GetMinimizeButtonOffset(); 96 return native_browser_frame_->GetMinimizeButtonOffset();
97 } 97 }
98 98
99 gfx::Rect BrowserFrame::GetBoundsForTabStrip(views::View* tabstrip) const { 99 gfx::Rect BrowserFrame::GetBoundsForTabStrip(views::View* tabstrip) const {
100 // This can be invoked before |browser_frame_view_| has been set. 100 // This can be invoked before |browser_frame_view_| has been set.
101 return browser_frame_view_ ? 101 return browser_frame_view_ ?
102 browser_frame_view_->GetBoundsForTabStrip(tabstrip) : gfx::Rect(); 102 browser_frame_view_->GetBoundsForTabStrip(tabstrip) : gfx::Rect();
103 } 103 }
104 104
105 int BrowserFrame::GetTopInset() const { 105 int BrowserFrame::GetTopInset(bool restored) const {
106 return browser_frame_view_->GetTopInset(); 106 return browser_frame_view_->GetTopInset(restored);
107 } 107 }
108 108
109 int BrowserFrame::GetThemeBackgroundXInset() const { 109 int BrowserFrame::GetThemeBackgroundXInset() const {
110 return browser_frame_view_->GetThemeBackgroundXInset(); 110 return browser_frame_view_->GetThemeBackgroundXInset();
111 } 111 }
112 112
113 void BrowserFrame::UpdateThrobber(bool running) { 113 void BrowserFrame::UpdateThrobber(bool running) {
114 browser_frame_view_->UpdateThrobber(running); 114 browser_frame_view_->UpdateThrobber(running);
115 } 115 }
116 116
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 AvatarMenuButton* BrowserFrame::GetAvatarMenuButton() { 240 AvatarMenuButton* BrowserFrame::GetAvatarMenuButton() {
241 return browser_frame_view_->avatar_button(); 241 return browser_frame_view_->avatar_button();
242 } 242 }
243 243
244 #if defined(FRAME_AVATAR_BUTTON) 244 #if defined(FRAME_AVATAR_BUTTON)
245 NewAvatarButton* BrowserFrame::GetNewAvatarMenuButton() { 245 NewAvatarButton* BrowserFrame::GetNewAvatarMenuButton() {
246 return browser_frame_view_->new_avatar_button(); 246 return browser_frame_view_->new_avatar_button();
247 } 247 }
248 #endif 248 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.h ('k') | chrome/browser/ui/views/frame/browser_non_client_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698