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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/themes/custom_theme_supplier.h"
6
7 #include "base/memory/ref_counted_memory.h"
8 #include "ui/gfx/color_utils.h"
9 #include "ui/gfx/image/image.h"
10
11 CustomThemeSupplier::CustomThemeSupplier(ThemeType theme_type)
12 : theme_type_(theme_type) {}
13
14 CustomThemeSupplier::~CustomThemeSupplier() {}
15
16 void CustomThemeSupplier::StartUsingTheme() {}
17
18 void CustomThemeSupplier::StopUsingTheme() {}
19
20 bool CustomThemeSupplier::GetTint(int id, color_utils::HSL* hsl) const {
21 return false;
22 }
23
24 bool CustomThemeSupplier::GetColor(int id, SkColor* color) const {
25 return false;
26 }
27
28 bool CustomThemeSupplier::GetDisplayProperty(int id, int* result) const {
29 return false;
30 }
31
32 gfx::Image CustomThemeSupplier::GetImageNamed(int id) {
33 return gfx::Image();
34 }
35
36 base::RefCountedMemory* CustomThemeSupplier::GetRawData(
37 int idr_id,
38 ui::ScaleFactor scale_factor) const {
39 return NULL;
40 }
41
42 bool CustomThemeSupplier::HasCustomImage(int id) const {
43 return false;
44 }
OLDNEW
« 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