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

Unified Diff: ui/native_theme/fallback_theme.h

Issue 14424007: Use the default theme as the fallback UI in Blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use aura colors for fallback theme Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/native_theme/fallback_theme.cc » ('j') | ui/native_theme/fallback_theme.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/fallback_theme.h
diff --git a/ui/native_theme/fallback_theme.h b/ui/native_theme/fallback_theme.h
new file mode 100644
index 0000000000000000000000000000000000000000..65bfc3ac61306cfbca5ebefd62283ac8d8d299c0
--- /dev/null
+++ b/ui/native_theme/fallback_theme.h
@@ -0,0 +1,31 @@
+// 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.
+
+#ifndef UI_NATIVE_THEME_FALLBACK_THEME_H_
+#define UI_NATIVE_THEME_FALLBACK_THEME_H_
+
+#include "ui/native_theme/native_theme_base.h"
+
+namespace ui {
+
+// This theme can draw UI controls on every platform. We use it when a feature
+// is missing from the native theme.
sky 2013/04/26 16:13:50 Please indicate this is only used when scaling and
keishi 2013/04/30 08:16:58 Done.
+class NATIVE_THEME_EXPORT FallbackTheme : public NativeThemeBase {
+ public:
+ static FallbackTheme* instance();
+
+ protected:
+ FallbackTheme();
+ virtual ~FallbackTheme();
+
+ private:
+ // Overridden from NativeThemeBase:
+ virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(FallbackTheme);
+};
+
+} // namespace ui
+
+#endif // UI_NATIVE_THEME_FALLBACK_THEME_H_
« no previous file with comments | « no previous file | ui/native_theme/fallback_theme.cc » ('j') | ui/native_theme/fallback_theme.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698