summaryrefslogtreecommitdiffstats
path: root/ui/gfx/native_theme.cc
diff options
context:
space:
mode:
authorrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 16:58:22 +0000
committerrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 16:58:22 +0000
commita5a0a77c2855312cc94d1a6ea02048414d5aa224 (patch)
treeec8b8c02fa03d126c4945c656d3f270f542bca24 /ui/gfx/native_theme.cc
parentbbc7b7da4c34cd7b8a03900448d523104f5c2436 (diff)
downloadchromium_src-a5a0a77c2855312cc94d1a6ea02048414d5aa224.zip
chromium_src-a5a0a77c2855312cc94d1a6ea02048414d5aa224.tar.gz
chromium_src-a5a0a77c2855312cc94d1a6ea02048414d5aa224.tar.bz2
Revert 80314 - Step 1 in refactoring NativeThemeWin so that it shares more with the native
theme support in linux and chromeos. This first change introduces a new common base class for all plaforms called NativeTheme, and NativeThemeWin now derives from it. NativeThemeWin will continue to support its "old" API while the transition to the new API is ongoing, so that each user of NativeThemeWin can be transitioned carefully. Once the windows support is complete, the linux and chromeos native themes will then derive from NativeTheme, and any references do the specific platform classes will be removed as needed. TEST=No user visible changes caused by this CL BUG=None R=xiyuan@chromium.org Review URL: http://codereview.chromium.org/6728029 TBR=rogerta@chromium.org Review URL: http://codereview.chromium.org/6720022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/native_theme.cc')
-rw-r--r--ui/gfx/native_theme.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/ui/gfx/native_theme.cc b/ui/gfx/native_theme.cc
deleted file mode 100644
index 331d429..0000000
--- a/ui/gfx/native_theme.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/gfx/native_theme.h"
-
-#include "ui/gfx/size.h"
-
-namespace gfx {
-
-unsigned int NativeTheme::thumb_inactive_color_ = 0xeaeaea;
-unsigned int NativeTheme::thumb_active_color_ = 0xf4f4f4;
-unsigned int NativeTheme::track_color_ = 0xd3d3d3;
-
-void NativeTheme::SetScrollbarColors(unsigned inactive_color,
- unsigned active_color,
- unsigned track_color) const {
- thumb_inactive_color_ = inactive_color;
- thumb_active_color_ = active_color;
- track_color_ = track_color;
-}
-
-// NativeTheme::instance() is implemented in the platform specific source files,
-// such as native_theme_win.cc or native_theme_linux.cc
-
-} // namespace gfx