Chromium Code Reviews| Index: chrome/browser/managed_mode/managed_user_theme.h |
| diff --git a/chrome/browser/managed_mode/managed_user_theme.h b/chrome/browser/managed_mode/managed_user_theme.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f35b9209a0ed520cfef86829b8c2e15407047aaa |
| --- /dev/null |
| +++ b/chrome/browser/managed_mode/managed_user_theme.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2013 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 CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_THEME_H_ |
| +#define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_THEME_H_ |
| + |
| +#include "chrome/browser/themes/custom_theme_supplier.h" |
| +#include "ui/base/resource/resource_bundle.h" |
| + |
| +namespace gfx { |
| +class Image; |
| +} |
| + |
| +class ManagedUserTheme : public CustomThemeSupplier { |
| + public: |
| + ManagedUserTheme(); |
| + |
| + // Overridden from CustomThemeProvider: |
| + virtual bool GetColor(int id, SkColor* color) const OVERRIDE; |
| + virtual gfx::Image GetImageNamed(int id) OVERRIDE; |
| + virtual bool HasCustomImage(int id) const OVERRIDE; |
| + |
| + private: |
| + virtual ~ManagedUserTheme(); |
| + |
| + ui::ResourceBundle& rb_; |
|
pkotwicz
2013/07/19 18:33:20
Request the ResourceBundle where needed
Adrian Kuegel
2013/07/22 12:58:08
Done.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(ManagedUserTheme); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_THEME_H_ |