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

Side by Side Diff: ui/base/theme_provider.h

Issue 23614007: Use the normal Google logo for managed users for --enable-instant-extended-api (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed mac compile failure Created 7 years, 3 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 | « ui/base/default_theme_provider.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_THEME_PROVIDER_H_ 5 #ifndef UI_BASE_THEME_PROVIDER_H_
6 #define UI_BASE_THEME_PROVIDER_H_ 6 #define UI_BASE_THEME_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/base/layout.h" 10 #include "ui/base/layout.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Get the image specified by |id|. An implementation of ThemeProvider should 53 // Get the image specified by |id|. An implementation of ThemeProvider should
54 // have its own source of ids (e.g. an enum, or external resource bundle). 54 // have its own source of ids (e.g. an enum, or external resource bundle).
55 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const = 0; 55 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const = 0;
56 56
57 // Get the color specified by |id|. 57 // Get the color specified by |id|.
58 virtual SkColor GetColor(int id) const = 0; 58 virtual SkColor GetColor(int id) const = 0;
59 59
60 // Get the property (e.g. an alignment expressed in an enum, or a width or 60 // Get the property (e.g. an alignment expressed in an enum, or a width or
61 // height) specified by |id|. 61 // height) specified by |id|.
62 virtual bool GetDisplayProperty(int id, int* result) const = 0; 62 virtual int GetDisplayProperty(int id) const = 0;
63 63
64 // Whether we should use the native system frame (typically Aero glass) or 64 // Whether we should use the native system frame (typically Aero glass) or
65 // a custom frame. 65 // a custom frame.
66 virtual bool ShouldUseNativeFrame() const = 0; 66 virtual bool ShouldUseNativeFrame() const = 0;
67 67
68 // Whether or not we have a certain image. Used for when the default theme 68 // Whether or not we have a certain image. Used for when the default theme
69 // doesn't provide a certain image, but custom themes might (badges, etc). 69 // doesn't provide a certain image, but custom themes might (badges, etc).
70 virtual bool HasCustomImage(int id) const = 0; 70 virtual bool HasCustomImage(int id) const = 0;
71 71
72 // Reads the image data from the theme file into the specified vector. Only 72 // Reads the image data from the theme file into the specified vector. Only
(...skipping 30 matching lines...) Expand all
103 // is missing. 103 // is missing.
104 104
105 // As above, but flips it in RTL locales. 105 // As above, but flips it in RTL locales.
106 virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) const = 0; 106 virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) const = 0;
107 #endif 107 #endif
108 }; 108 };
109 109
110 } // namespace ui 110 } // namespace ui
111 111
112 #endif // UI_BASE_THEME_PROVIDER_H_ 112 #endif // UI_BASE_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « ui/base/default_theme_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698