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

Side by Side Diff: chrome/browser/views/detachable_toolbar_view.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/views/detachable_toolbar_view.h" 5 #include "chrome/browser/views/detachable_toolbar_view.h"
6 6
7 #include "app/gfx/canvas.h"
8 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
9 #include "chrome/browser/browser_theme_provider.h" 8 #include "chrome/browser/browser_theme_provider.h"
9 #include "gfx/canvas.h"
10 #include "gfx/skia_util.h" 10 #include "gfx/skia_util.h"
11 #include "grit/theme_resources.h" 11 #include "grit/theme_resources.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "third_party/skia/include/core/SkShader.h" 13 #include "third_party/skia/include/core/SkShader.h"
14 14
15 // How round the 'new tab' style bookmarks bar is. 15 // How round the 'new tab' style bookmarks bar is.
16 static const int kNewtabBarRoundness = 5; 16 static const int kNewtabBarRoundness = 5;
17 17
18 const SkColor DetachableToolbarView::kEdgeDividerColor = 18 const SkColor DetachableToolbarView::kEdgeDividerColor =
19 SkColorSetRGB(222, 234, 248); 19 SkColorSetRGB(222, 234, 248);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 paint_down.setShader(gfx::CreateGradientShader(height / 2, 113 paint_down.setShader(gfx::CreateGradientShader(height / 2,
114 height - vertical_padding, 114 height - vertical_padding,
115 middle_color, 115 middle_color,
116 bottom_color))->safeUnref(); 116 bottom_color))->safeUnref();
117 SkRect rc_down = { SkIntToScalar(x), 117 SkRect rc_down = { SkIntToScalar(x),
118 SkIntToScalar(height / 2), 118 SkIntToScalar(height / 2),
119 SkIntToScalar(x + 1), 119 SkIntToScalar(x + 1),
120 SkIntToScalar(height - vertical_padding) }; 120 SkIntToScalar(height - vertical_padding) };
121 canvas->drawRect(rc_down, paint_down); 121 canvas->drawRect(rc_down, paint_down);
122 } 122 }
OLDNEW
« no previous file with comments | « chrome/browser/views/create_application_shortcut_view.cc ('k') | chrome/browser/views/download_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698