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

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

Issue 2616523004: Layout avatar button
Patch Set: More stuff Created 3 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 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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/leak_annotations.h" 10 #include "base/debug/leak_annotations.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 #if defined(OS_LINUX) 101 #if defined(OS_LINUX)
102 browser_command_handler_.reset(new BrowserCommandHandlerLinux(browser_view_)); 102 browser_command_handler_.reset(new BrowserCommandHandlerLinux(browser_view_));
103 #endif 103 #endif
104 } 104 }
105 105
106 int BrowserFrame::GetMinimizeButtonOffset() const { 106 int BrowserFrame::GetMinimizeButtonOffset() const {
107 return native_browser_frame_->GetMinimizeButtonOffset(); 107 return native_browser_frame_->GetMinimizeButtonOffset();
108 } 108 }
109 109
110 int BrowserFrame::GetMinimizeButtonHeight() const {
111 return native_browser_frame_->GetMinimizeButtonHeight();
112 }
113
110 gfx::Rect BrowserFrame::GetBoundsForTabStrip(views::View* tabstrip) const { 114 gfx::Rect BrowserFrame::GetBoundsForTabStrip(views::View* tabstrip) const {
111 // This can be invoked before |browser_frame_view_| has been set. 115 // This can be invoked before |browser_frame_view_| has been set.
112 return browser_frame_view_ ? 116 return browser_frame_view_ ?
113 browser_frame_view_->GetBoundsForTabStrip(tabstrip) : gfx::Rect(); 117 browser_frame_view_->GetBoundsForTabStrip(tabstrip) : gfx::Rect();
114 } 118 }
115 119
116 int BrowserFrame::GetTopInset(bool restored) const { 120 int BrowserFrame::GetTopInset(bool restored) const {
117 return browser_frame_view_->GetTopInset(restored); 121 return browser_frame_view_->GetTopInset(restored);
118 } 122 }
119 123
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 return menu_model_builder_->menu_model(); 279 return menu_model_builder_->menu_model();
276 } 280 }
277 281
278 views::View* BrowserFrame::GetNewAvatarMenuButton() { 282 views::View* BrowserFrame::GetNewAvatarMenuButton() {
279 return browser_frame_view_->GetProfileSwitcherView(); 283 return browser_frame_view_->GetProfileSwitcherView();
280 } 284 }
281 285
282 void BrowserFrame::OnMenuClosed() { 286 void BrowserFrame::OnMenuClosed() {
283 menu_runner_.reset(); 287 menu_runner_.reset();
284 } 288 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.h ('k') | chrome/browser/ui/views/frame/browser_frame_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698