| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |