OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 CHROME_COMMON_RESOURCE_BUNDLE_H__ | 5 #ifndef CHROME_COMMON_RESOURCE_BUNDLE_H__ |
6 #define CHROME_COMMON_RESOURCE_BUNDLE_H__ | 6 #define CHROME_COMMON_RESOURCE_BUNDLE_H__ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 #if defined(OS_WIN) | 108 #if defined(OS_WIN) |
109 // Loads and returns an icon from the theme dll. | 109 // Loads and returns an icon from the theme dll. |
110 HICON LoadThemeIcon(int icon_id); | 110 HICON LoadThemeIcon(int icon_id); |
111 | 111 |
112 // Loads and returns the global accelerators. | 112 // Loads and returns the global accelerators. |
113 HACCEL GetGlobalAccelerators(); | 113 HACCEL GetGlobalAccelerators(); |
114 | 114 |
115 // Loads and returns a cursor from the app module. | 115 // Loads and returns a cursor from the app module. |
116 HCURSOR LoadCursor(int cursor_id); | 116 HCURSOR LoadCursor(int cursor_id); |
117 #elif defined(OS_LINUX) | 117 #elif defined(TOOLKIT_GTK) |
118 // Load a theme image as a GdkPixbuf. | 118 // Load a theme image as a GdkPixbuf. |
119 GdkPixbuf* LoadPixbuf(int resource_id); | 119 GdkPixbuf* LoadPixbuf(int resource_id); |
120 #endif | 120 #endif |
121 | 121 |
122 // Sets an Extension object that can handle theme resource requests. | 122 // Sets an Extension object that can handle theme resource requests. |
123 void SetThemeExtension(const Extension& e); | 123 void SetThemeExtension(const Extension& e); |
124 | 124 |
125 private: | 125 private: |
126 // We define a DataHandle typedef to abstract across how data is stored | 126 // We define a DataHandle typedef to abstract across how data is stored |
127 // across platforms. | 127 // across platforms. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 scoped_ptr<ChromeFont> web_font_; | 186 scoped_ptr<ChromeFont> web_font_; |
187 | 187 |
188 static ResourceBundle* g_shared_instance_; | 188 static ResourceBundle* g_shared_instance_; |
189 | 189 |
190 scoped_ptr<Extension> theme_extension_; | 190 scoped_ptr<Extension> theme_extension_; |
191 | 191 |
192 DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle); | 192 DISALLOW_EVIL_CONSTRUCTORS(ResourceBundle); |
193 }; | 193 }; |
194 | 194 |
195 #endif // CHROME_COMMON_RESOURCE_BUNDLE_H__ | 195 #endif // CHROME_COMMON_RESOURCE_BUNDLE_H__ |
OLD | NEW |