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

Side by Side Diff: app/theme_provider.h

Issue 165375: Merge 23023 - Allow theming of colors for the Mac.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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 | « no previous file | chrome/browser/browser_theme_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:mergeinfo
Merged /trunk/src/app/theme_provider.h:r23023
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 APP_THEME_PROVIDER_H_ 5 #ifndef APP_THEME_PROVIDER_H_
6 #define APP_THEME_PROVIDER_H_ 6 #define APP_THEME_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // is missing. 75 // is missing.
76 virtual GdkPixbuf* GetPixbufNamed(int id) = 0; 76 virtual GdkPixbuf* GetPixbufNamed(int id) = 0;
77 77
78 // As above, but flips it in RTL locales. 78 // As above, but flips it in RTL locales.
79 virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) = 0; 79 virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) = 0;
80 #elif defined(OS_MACOSX) 80 #elif defined(OS_MACOSX)
81 // Gets the NSImage with the specified |id|. 81 // Gets the NSImage with the specified |id|.
82 // 82 //
83 // The bitmap is not assumed to exist. If a theme does not provide an image, 83 // The bitmap is not assumed to exist. If a theme does not provide an image,
84 // this function will return nil. 84 // this function will return nil.
85 virtual NSImage* GetNSImageNamed(int id) = 0;
85 86
86 virtual NSImage* GetNSImageNamed(int id) = 0; 87 // Gets the NSColor with the specified |id|.
88 //
89 // The color is not assumed to exist. If a theme does not provide an color,
90 // this function will return nil.
91 virtual NSColor* GetNSColor(int id) = 0;
92
87 // Gets the NSColor for tinting with the specified |id|. 93 // Gets the NSColor for tinting with the specified |id|.
88 // 94 //
89 // The tint is not assumed to exist. If a theme does not provide a tint with 95 // The tint is not assumed to exist. If a theme does not provide a tint with
90 // that id, this function will return nil. 96 // that id, this function will return nil.
91 virtual NSColor* GetNSColorTint(int id) = 0; 97 virtual NSColor* GetNSColorTint(int id) = 0;
92 #endif 98 #endif
93 }; 99 };
94 100
95 #endif // APP_THEME_PROVIDER_H_ 101 #endif // APP_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698