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

Unified Diff: chrome/browser/themes/custom_theme_provider.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: Fix bugs. 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/themes/custom_theme_provider.cc
diff --git a/chrome/browser/themes/custom_theme_provider.cc b/chrome/browser/themes/custom_theme_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1b7782450b9508cc345af52829964ff4cc5728cb
--- /dev/null
+++ b/chrome/browser/themes/custom_theme_provider.cc
@@ -0,0 +1,43 @@
+// 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_provider.h"
+
+#include "base/memory/ref_counted_memory.h"
+#include "ui/gfx/color_utils.h"
+
+CustomThemeProvider::CustomThemeProvider(ThemeType theme_type)
+ : theme_type_(theme_type) {}
+
+CustomThemeProvider::~CustomThemeProvider() {}
+
+void CustomThemeProvider::StartUsingTheme() {}
+
+void CustomThemeProvider::StopUsingTheme() {}
+
+bool CustomThemeProvider::GetTint(int id, color_utils::HSL* hsl) const {
+ return false;
+}
+
+bool CustomThemeProvider::GetColor(int id, SkColor* color) const {
+ return false;
+}
+
+bool CustomThemeProvider::GetDisplayProperty(int id, int* result) const {
+ return false;
+}
+
+gfx::Image CustomThemeProvider::GetImageNamed(int id) {
+ return gfx::Image();
+}
+
+bool CustomThemeProvider::HasCustomImage(int id) const {
+ return false;
+}
+
+base::RefCountedMemory* CustomThemeProvider::GetRawData(
+ int idr_id,
+ ui::ScaleFactor scale_factor) const {
+ return NULL;
+}

Powered by Google App Engine
This is Rietveld 408576698