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

Side by Side Diff: ui/base/native_theme/native_theme.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.h ('k') | ui/base/native_theme/native_theme_android.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 5 #include "ui/base/native_theme/native_theme.h"
6 6
7 #include "ui/gfx/size.h" 7 namespace ui {
8
9 namespace gfx {
10 8
11 unsigned int NativeTheme::thumb_inactive_color_ = 0xeaeaea; 9 unsigned int NativeTheme::thumb_inactive_color_ = 0xeaeaea;
12 unsigned int NativeTheme::thumb_active_color_ = 0xf4f4f4; 10 unsigned int NativeTheme::thumb_active_color_ = 0xf4f4f4;
13 unsigned int NativeTheme::track_color_ = 0xd3d3d3; 11 unsigned int NativeTheme::track_color_ = 0xd3d3d3;
14 12
15 void NativeTheme::SetScrollbarColors(unsigned inactive_color, 13 void NativeTheme::SetScrollbarColors(unsigned inactive_color,
16 unsigned active_color, 14 unsigned active_color,
17 unsigned track_color) const { 15 unsigned track_color) const {
18 thumb_inactive_color_ = inactive_color; 16 thumb_inactive_color_ = inactive_color;
19 thumb_active_color_ = active_color; 17 thumb_active_color_ = active_color;
20 track_color_ = track_color; 18 track_color_ = track_color;
21 } 19 }
22 20
23 // NativeTheme::instance() is implemented in the platform specific source files, 21 // NativeTheme::instance() is implemented in the platform specific source files,
24 // such as native_theme_win.cc or native_theme_linux.cc 22 // such as native_theme_win.cc or native_theme_linux.cc
25 23
26 } // namespace gfx 24 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/native_theme/native_theme.h ('k') | ui/base/native_theme/native_theme_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698