summaryrefslogtreecommitdiffstats
path: root/ui/native_theme/native_theme_android.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-16 13:31:18 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-16 13:31:18 +0000
commit990e62268f8a7074995ea00895da064312e49535 (patch)
tree6447bc15cd3e2f728b7351b27571a3c6da35ae41 /ui/native_theme/native_theme_android.cc
parent8d0f9016803d12e160b588cca2a7fc4612323aad (diff)
downloadchromium_src-990e62268f8a7074995ea00895da064312e49535.zip
chromium_src-990e62268f8a7074995ea00895da064312e49535.tar.gz
chromium_src-990e62268f8a7074995ea00895da064312e49535.tar.bz2
ui: Make native_theme its own library.
BUG=103304 R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/11275322 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/native_theme/native_theme_android.cc')
-rw-r--r--ui/native_theme/native_theme_android.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/ui/native_theme/native_theme_android.cc b/ui/native_theme/native_theme_android.cc
new file mode 100644
index 0000000..884bc7e
--- /dev/null
+++ b/ui/native_theme/native_theme_android.cc
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 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/native_theme/native_theme_android.h"
+
+#include "base/basictypes.h"
+#include "base/logging.h"
+
+namespace ui {
+
+// static
+NativeTheme* NativeTheme::instance() {
+ return NativeThemeAndroid::instance();
+}
+
+// static
+NativeThemeAndroid* NativeThemeAndroid::instance() {
+ CR_DEFINE_STATIC_LOCAL(NativeThemeAndroid, s_native_theme, ());
+ return &s_native_theme;
+}
+
+SkColor NativeThemeAndroid::GetSystemColor(ColorId color_id) const {
+ NOTIMPLEMENTED();
+ return SK_ColorBLACK;
+}
+
+NativeThemeAndroid::NativeThemeAndroid() {
+}
+
+NativeThemeAndroid::~NativeThemeAndroid() {
+}
+
+} // namespace ui