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

Unified Diff: chrome/browser/ui/views/detachable_toolbar_view.cc

Issue 12013004: alternate ntp: unpinned bookmark bar in ntp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « chrome/browser/ui/views/detachable_toolbar_view.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/detachable_toolbar_view.cc
diff --git a/chrome/browser/ui/views/detachable_toolbar_view.cc b/chrome/browser/ui/views/detachable_toolbar_view.cc
index fd9db04d23ee3a1e5b3af229299097f1283ff64f..07ff12fa3476e7dab6453ad650af665ee4b9f225 100644
--- a/chrome/browser/ui/views/detachable_toolbar_view.cc
+++ b/chrome/browser/ui/views/detachable_toolbar_view.cc
@@ -65,20 +65,12 @@ void DetachableToolbarView::CalculateContentArea(
// static
void DetachableToolbarView::PaintHorizontalBorder(gfx::Canvas* canvas,
DetachableToolbarView* view) {
- PaintHorizontalBorderWithColor(canvas, view,
- ThemeService::GetDefaultColor(ThemeService::COLOR_TOOLBAR_SEPARATOR));
-}
-
-// static
-void DetachableToolbarView::PaintHorizontalBorderWithColor(
- gfx::Canvas* canvas,
- DetachableToolbarView* view,
- SkColor border_color) {
// Border can be at the top or at the bottom of the view depending on whether
// the view (bar/shelf) is attached or detached.
int thickness = views::NonClientFrameView::kClientEdgeThickness;
int y = view->IsDetached() ? 0 : (view->height() - thickness);
- canvas->FillRect(gfx::Rect(0, y, view->width(), thickness), border_color);
+ canvas->FillRect(gfx::Rect(0, y, view->width(), thickness),
+ ThemeService::GetDefaultColor(ThemeService::COLOR_TOOLBAR_SEPARATOR));
}
// static
« no previous file with comments | « chrome/browser/ui/views/detachable_toolbar_view.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698