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

Unified Diff: chrome/browser/views/toolbar_view.cc

Issue 99133: Removes an unused boolean passed to MoveToFront. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.cc ('k') | chrome/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/toolbar_view.cc
===================================================================
--- chrome/browser/views/toolbar_view.cc (revision 14739)
+++ chrome/browser/views/toolbar_view.cc (working copy)
@@ -399,7 +399,7 @@
// For glass, we need to draw a black line below the location bar to separate
// it from the content area. For non-glass, the NonClientView draws the
// toolbar background below the location bar for us.
- if (GetWidget()->AsWindow()->GetNonClientView()->UseNativeFrame())
+ if (GetWidget()->GetWindow()->GetNonClientView()->UseNativeFrame())
canvas->FillRectInt(SK_ColorBLACK, 0, height() - 1, width(), 1);
}
@@ -554,7 +554,7 @@
}
int vertical_spacing = PopupTopSpacing() +
- (GetWidget()->AsWindow()->GetNonClientView()->UseNativeFrame() ?
+ (GetWidget()->GetWindow()->GetNonClientView()->UseNativeFrame() ?
kPopupBottomSpacingGlass : kPopupBottomSpacingNonGlass);
return gfx::Size(0, location_bar_->GetPreferredSize().height() +
vertical_spacing);
@@ -883,7 +883,7 @@
// static
int BrowserToolbarView::PopupTopSpacing() {
- return GetWidget()->AsWindow()->GetNonClientView()->UseNativeFrame() ?
+ return GetWidget()->GetWindow()->GetNonClientView()->UseNativeFrame() ?
0 : kPopupTopSpacingNonGlass;
}
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.cc ('k') | chrome/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698