diff options
author | keishi@chromium.org <keishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-17 11:27:50 +0000 |
---|---|---|
committer | keishi@chromium.org <keishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-17 11:27:50 +0000 |
commit | 63cb30217d84099dfbd12e1a616b0cd7788f9730 (patch) | |
tree | 8194496cad5b8392c7f4388a943d4e3dd6de30f9 /ui/native_theme/fallback_theme.h | |
parent | 7b2cc1be3140506b7e22b6e82e2422cbbe4cc36f (diff) | |
download | chromium_src-63cb30217d84099dfbd12e1a616b0cd7788f9730.zip chromium_src-63cb30217d84099dfbd12e1a616b0cd7788f9730.tar.gz chromium_src-63cb30217d84099dfbd12e1a616b0cd7788f9730.tar.bz2 |
Use the default theme as the fallback UI in Blink
Most native themes don't support zooming or styling required by Blink.
This introduces a FallbackTheme that can be used in these situations.
Blink side change: https://codereview.chromium.org/14108007/
BUG=84973
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200431
Review URL: https://chromiumcodereview.appspot.com/14424007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200785 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/native_theme/fallback_theme.h')
-rw-r--r-- | ui/native_theme/fallback_theme.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ui/native_theme/fallback_theme.h b/ui/native_theme/fallback_theme.h new file mode 100644 index 0000000..2a69936 --- /dev/null +++ b/ui/native_theme/fallback_theme.h @@ -0,0 +1,28 @@ +// 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. This is only used when +// zooming a web page and the native theme doesn't support scaling. +class NATIVE_THEME_EXPORT FallbackTheme : public NativeThemeBase { + public: + 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_ |