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

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: Don't call NotifyThemeChanged if not ready. 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
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_theme.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e23995cd44ec609682a6fe4298ffd37fd365a312
--- /dev/null
+++ b/chrome/browser/managed_mode/managed_user_theme.h
@@ -0,0 +1,31 @@
+// 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;
+}
+
+// This theme is used as a default theme for supervised users. It uses a light
+// blue as frame color, and defines color properties for the avatar label.
+class ManagedUserTheme : public CustomThemeSupplier {
+ public:
+ ManagedUserTheme();
+
+ // Overridden from CustomThemeSupplier:
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698