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

Unified Diff: chrome/browser/themes/custom_theme_supplier.cc

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 | « chrome/browser/themes/custom_theme_supplier.h ('k') | chrome/browser/themes/theme_properties.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/custom_theme_supplier.cc
diff --git a/chrome/browser/themes/custom_theme_supplier.cc b/chrome/browser/themes/custom_theme_supplier.cc
new file mode 100644
index 0000000000000000000000000000000000000000..657f218341f5e91c0059c69b3e99d78a1c8852cc
--- /dev/null
+++ b/chrome/browser/themes/custom_theme_supplier.cc
@@ -0,0 +1,44 @@
+// 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.
+
+#include "chrome/browser/themes/custom_theme_supplier.h"
+
+#include "base/memory/ref_counted_memory.h"
+#include "ui/gfx/color_utils.h"
+#include "ui/gfx/image/image.h"
+
+CustomThemeSupplier::CustomThemeSupplier(ThemeType theme_type)
+ : theme_type_(theme_type) {}
+
+CustomThemeSupplier::~CustomThemeSupplier() {}
+
+void CustomThemeSupplier::StartUsingTheme() {}
+
+void CustomThemeSupplier::StopUsingTheme() {}
+
+bool CustomThemeSupplier::GetTint(int id, color_utils::HSL* hsl) const {
+ return false;
+}
+
+bool CustomThemeSupplier::GetColor(int id, SkColor* color) const {
+ return false;
+}
+
+bool CustomThemeSupplier::GetDisplayProperty(int id, int* result) const {
+ return false;
+}
+
+gfx::Image CustomThemeSupplier::GetImageNamed(int id) {
+ return gfx::Image();
+}
+
+base::RefCountedMemory* CustomThemeSupplier::GetRawData(
+ int idr_id,
+ ui::ScaleFactor scale_factor) const {
+ return NULL;
+}
+
+bool CustomThemeSupplier::HasCustomImage(int id) const {
+ return false;
+}
« no previous file with comments | « chrome/browser/themes/custom_theme_supplier.h ('k') | chrome/browser/themes/theme_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698