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

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

Issue 2833363002: Add GetCaptionButtonHeightInDIPs() method (Closed)
Patch Set: Created 3 years, 8 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 #if defined(OS_LINUX) 100 #if defined(OS_LINUX)
101 browser_command_handler_.reset(new BrowserCommandHandlerLinux(browser_view_)); 101 browser_command_handler_.reset(new BrowserCommandHandlerLinux(browser_view_));
102 #endif 102 #endif
103 } 103 }
104 104
105 int BrowserFrame::GetMinimizeButtonOffset() const { 105 int BrowserFrame::GetMinimizeButtonOffset() const {
106 return native_browser_frame_->GetMinimizeButtonOffset(); 106 return native_browser_frame_->GetMinimizeButtonOffset();
107 } 107 }
108 108
109 int BrowserFrame::GetMinimizeButtonHeight() const {
110 return native_browser_frame_->GetMinimizeButtonHeight();
111 }
112
109 gfx::Rect BrowserFrame::GetBoundsForTabStrip(views::View* tabstrip) const { 113 gfx::Rect BrowserFrame::GetBoundsForTabStrip(views::View* tabstrip) const {
110 // This can be invoked before |browser_frame_view_| has been set. 114 // This can be invoked before |browser_frame_view_| has been set.
111 return browser_frame_view_ ? 115 return browser_frame_view_ ?
112 browser_frame_view_->GetBoundsForTabStrip(tabstrip) : gfx::Rect(); 116 browser_frame_view_->GetBoundsForTabStrip(tabstrip) : gfx::Rect();
113 } 117 }
114 118
115 int BrowserFrame::GetTopInset(bool restored) const { 119 int BrowserFrame::GetTopInset(bool restored) const {
116 return browser_frame_view_->GetTopInset(restored); 120 return browser_frame_view_->GetTopInset(restored);
117 } 121 }
118 122
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 return menu_model_builder_->menu_model(); 281 return menu_model_builder_->menu_model();
278 } 282 }
279 283
280 views::View* BrowserFrame::GetNewAvatarMenuButton() { 284 views::View* BrowserFrame::GetNewAvatarMenuButton() {
281 return browser_frame_view_->GetProfileSwitcherView(); 285 return browser_frame_view_->GetProfileSwitcherView();
282 } 286 }
283 287
284 void BrowserFrame::OnMenuClosed() { 288 void BrowserFrame::OnMenuClosed() {
285 menu_runner_.reset(); 289 menu_runner_.reset();
286 } 290 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698