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

Unified Diff: chrome/browser/managed_mode/managed_user_theme.h

Issue 19471005: Add custom default theme support and create a managed user default theme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments and add tests. Created 7 years, 5 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
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..25e97df24796357cea135b8df4a8b93621dc6b85
--- /dev/null
+++ b/chrome/browser/managed_mode/managed_user_theme.h
@@ -0,0 +1,29 @@
+// 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"
+
+namespace gfx {
+class Image;
+}
+
+class ManagedUserTheme : public CustomThemeSupplier {
+ public:
+ ManagedUserTheme();
+
+ // Overridden from CustomThemeProvider:
pkotwicz 2013/07/22 20:17:28 Nit: CustomThemeSupplier
Adrian Kuegel 2013/07/23 08:13:29 Thanks for finding this, I forgot to change that.
+ 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();
+
+ DISALLOW_COPY_AND_ASSIGN(ManagedUserTheme);
+};
+
+#endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_THEME_H_
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_theme.cc » ('j') | chrome/browser/themes/custom_theme_supplier.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698