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

Side by Side Diff: ui/gfx/native_theme_chromeos.cc

Issue 9567009: ui/gfx: Include missing skia_util.h to fix Linux ChromiumOS GTK build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/gfx/native_theme_chromeos.h" 5 #include "ui/gfx/native_theme_chromeos.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "grit/gfx_resources.h" 9 #include "grit/gfx_resources.h"
10 #include "third_party/skia/include/core/SkPaint.h" 10 #include "third_party/skia/include/core/SkPaint.h"
11 #include "third_party/skia/include/core/SkPath.h" 11 #include "third_party/skia/include/core/SkPath.h"
12 #include "third_party/skia/include/core/SkShader.h" 12 #include "third_party/skia/include/core/SkShader.h"
13 #include "third_party/skia/include/effects/SkGradientShader.h" 13 #include "third_party/skia/include/effects/SkGradientShader.h"
14 #include "ui/base/resource/resource_bundle.h" 14 #include "ui/base/resource/resource_bundle.h"
15 #include "ui/gfx/insets.h" 15 #include "ui/gfx/insets.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
18 #include "ui/gfx/skbitmap_operations.h" 18 #include "ui/gfx/skbitmap_operations.h"
19 #include "ui/gfx/skia_util.h"
19 20
20 namespace { 21 namespace {
21 22
22 // Color constants. See theme_draw for details. 23 // Color constants. See theme_draw for details.
23 24
24 // Border color used for many widgets. 25 // Border color used for many widgets.
25 const SkColor kBaseStroke = SkColorSetRGB(0x8F, 0x8F, 0x8F); 26 const SkColor kBaseStroke = SkColorSetRGB(0x8F, 0x8F, 0x8F);
26 27
27 // Disabled border color used for many widgets. 28 // Disabled border color used for many widgets.
28 const SkColor kDisabledBaseStroke = SkColorSetRGB(0xB7, 0xB7, 0xB7); 29 const SkColor kDisabledBaseStroke = SkColorSetRGB(0xB7, 0xB7, 0xB7);
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 831
831 if (stroke_border) { 832 if (stroke_border) {
832 SkPaint stroke_paint; 833 SkPaint stroke_paint;
833 GetStrokePaint(state, &stroke_paint); 834 GetStrokePaint(state, &stroke_paint);
834 canvas->drawPath(border, stroke_paint); 835 canvas->drawPath(border, stroke_paint);
835 } 836 }
836 } 837 }
837 838
838 } // namespace gfx 839 } // namespace gfx
839 840
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698