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

Side by Side Diff: ui/base/native_theme/native_theme_aura.cc

Issue 10310136: ui: Move NativeTheme files into ui/base/native_theme/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 8 years, 7 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 | « ui/base/native_theme/native_theme_aura.h ('k') | ui/base/native_theme/native_theme_base.h » ('j') | 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_aura.h" 5 #include "ui/base/native_theme/native_theme_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "grit/gfx_resources.h" 8 #include "grit/gfx_resources.h"
9 #include "ui/base/resource/resource_bundle.h" 9 #include "ui/base/resource/resource_bundle.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "ui/gfx/size.h" 11 #include "ui/gfx/size.h"
12 #include "ui/gfx/skbitmap_operations.h" 12 #include "ui/gfx/skbitmap_operations.h"
13 13
14 namespace { 14 namespace {
15 15
(...skipping 26 matching lines...) Expand all
42 const SkColor kTextfieldDefaultBackground = SK_ColorWHITE; 42 const SkColor kTextfieldDefaultBackground = SK_ColorWHITE;
43 const SkColor kTextfieldSelectionBackgroundFocused = 43 const SkColor kTextfieldSelectionBackgroundFocused =
44 SkColorSetARGB(0x54, 0x60, 0xA8, 0xEB); 44 SkColorSetARGB(0x54, 0x60, 0xA8, 0xEB);
45 const SkColor kTextfieldSelectionBackgroundUnfocused = SK_ColorLTGRAY; 45 const SkColor kTextfieldSelectionBackgroundUnfocused = SK_ColorLTGRAY;
46 const SkColor kTextfieldSelectionColor = 46 const SkColor kTextfieldSelectionColor =
47 color_utils::AlphaBlend(SK_ColorBLACK, 47 color_utils::AlphaBlend(SK_ColorBLACK,
48 kTextfieldSelectionBackgroundFocused, 0xdd); 48 kTextfieldSelectionBackgroundFocused, 0xdd);
49 49
50 } // namespace 50 } // namespace
51 51
52 namespace gfx { 52 namespace ui {
53 53
54 // static 54 // static
55 const NativeTheme* NativeTheme::instance() { 55 const NativeTheme* NativeTheme::instance() {
56 return NativeThemeAura::instance(); 56 return NativeThemeAura::instance();
57 } 57 }
58 58
59 // static 59 // static
60 const NativeThemeAura* NativeThemeAura::instance() { 60 const NativeThemeAura* NativeThemeAura::instance() {
61 CR_DEFINE_STATIC_LOCAL(NativeThemeAura, s_native_theme, ()); 61 CR_DEFINE_STATIC_LOCAL(NativeThemeAura, s_native_theme, ());
62 return &s_native_theme; 62 return &s_native_theme;
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 SkBitmap* center = rb.GetBitmapNamed(center_resource_id); 285 SkBitmap* center = rb.GetBitmapNamed(center_resource_id);
286 DrawTiledImage(canvas, *center, 286 DrawTiledImage(canvas, *center,
287 0, 0, 1.0, 1.0, 287 0, 0, 1.0, 1.0,
288 rect.x() + left->width(), rect.y(), 288 rect.x() + left->width(), rect.y(),
289 rect.width() - left->width() - right->width(), 289 rect.width() - left->width() - right->width(),
290 center->height()); 290 center->height());
291 } 291 }
292 } 292 }
293 } 293 }
294 294
295 } // namespace gfx 295 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/native_theme/native_theme_aura.h ('k') | ui/base/native_theme/native_theme_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698