OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RESOURCE_RESOURCE_BUNDLE_H_ | 5 #ifndef UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ |
6 #define UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ | 6 #define UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // bright red bitmap. | 271 // bright red bitmap. |
272 gfx::Image* GetEmptyImage(); | 272 gfx::Image* GetEmptyImage(); |
273 | 273 |
274 // Class level lock. Used to protect internal data structures that may be | 274 // Class level lock. Used to protect internal data structures that may be |
275 // accessed from other threads (e.g., images_). | 275 // accessed from other threads (e.g., images_). |
276 scoped_ptr<base::Lock> lock_; | 276 scoped_ptr<base::Lock> lock_; |
277 | 277 |
278 // Handles for data sources. | 278 // Handles for data sources. |
279 DataHandle resources_data_; | 279 DataHandle resources_data_; |
280 DataHandle large_icon_resources_data_; | 280 DataHandle large_icon_resources_data_; |
281 #if !defined(NACL_WIN64) | |
282 scoped_ptr<DataPack> locale_resources_data_; | 281 scoped_ptr<DataPack> locale_resources_data_; |
283 #endif | |
284 | 282 |
285 // References to extra data packs loaded via AddDataPackToSharedInstance. | 283 // References to extra data packs loaded via AddDataPackToSharedInstance. |
286 std::vector<LoadedDataPack*> data_packs_; | 284 std::vector<LoadedDataPack*> data_packs_; |
287 | 285 |
288 // Cached images. The ResourceBundle caches all retrieved images and keeps | 286 // Cached images. The ResourceBundle caches all retrieved images and keeps |
289 // ownership of the pointers. | 287 // ownership of the pointers. |
290 typedef std::map<int, gfx::Image*> ImageMap; | 288 typedef std::map<int, gfx::Image*> ImageMap; |
291 ImageMap images_; | 289 ImageMap images_; |
292 | 290 |
293 // The various fonts used. Cached to avoid repeated GDI creation/destruction. | 291 // The various fonts used. Cached to avoid repeated GDI creation/destruction. |
(...skipping 10 matching lines...) Expand all Loading... |
304 | 302 |
305 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); | 303 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); |
306 }; | 304 }; |
307 | 305 |
308 } // namespace ui | 306 } // namespace ui |
309 | 307 |
310 // TODO(beng): Someday, maybe, get rid of this. | 308 // TODO(beng): Someday, maybe, get rid of this. |
311 using ui::ResourceBundle; | 309 using ui::ResourceBundle; |
312 | 310 |
313 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ | 311 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_ |
OLD | NEW |