| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RESOURCE_BUNDLE_H_ | 5 #ifndef APP_RESOURCE_BUNDLE_H_ |
| 6 #define APP_RESOURCE_BUNDLE_H_ | 6 #define APP_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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 static const SkColor frame_color_incognito; | 154 static const SkColor frame_color_incognito; |
| 155 static const SkColor frame_color_incognito_inactive; | 155 static const SkColor frame_color_incognito_inactive; |
| 156 static const SkColor toolbar_color; | 156 static const SkColor toolbar_color; |
| 157 static const SkColor toolbar_separator_color; | 157 static const SkColor toolbar_separator_color; |
| 158 | 158 |
| 159 private: | 159 private: |
| 160 // Helper class for managing data packs. | 160 // Helper class for managing data packs. |
| 161 class LoadedDataPack { | 161 class LoadedDataPack { |
| 162 public: | 162 public: |
| 163 explicit LoadedDataPack(const FilePath& path); | 163 explicit LoadedDataPack(const FilePath& path); |
| 164 ~LoadedDataPack(); |
| 164 bool GetStringPiece(int resource_id, base::StringPiece* data) const; | 165 bool GetStringPiece(int resource_id, base::StringPiece* data) const; |
| 165 RefCountedStaticMemory* GetStaticMemory(int resource_id) const; | 166 RefCountedStaticMemory* GetStaticMemory(int resource_id) const; |
| 166 | 167 |
| 167 private: | 168 private: |
| 168 void Load(); | 169 void Load(); |
| 169 | 170 |
| 170 scoped_ptr<base::DataPack> data_pack_; | 171 scoped_ptr<base::DataPack> data_pack_; |
| 171 FilePath path_; | 172 FilePath path_; |
| 172 | 173 |
| 173 DISALLOW_COPY_AND_ASSIGN(LoadedDataPack); | 174 DISALLOW_COPY_AND_ASSIGN(LoadedDataPack); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 scoped_ptr<gfx::Font> medium_bold_font_; | 260 scoped_ptr<gfx::Font> medium_bold_font_; |
| 260 scoped_ptr<gfx::Font> large_font_; | 261 scoped_ptr<gfx::Font> large_font_; |
| 261 scoped_ptr<gfx::Font> web_font_; | 262 scoped_ptr<gfx::Font> web_font_; |
| 262 | 263 |
| 263 static ResourceBundle* g_shared_instance_; | 264 static ResourceBundle* g_shared_instance_; |
| 264 | 265 |
| 265 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); | 266 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); |
| 266 }; | 267 }; |
| 267 | 268 |
| 268 #endif // APP_RESOURCE_BUNDLE_H_ | 269 #endif // APP_RESOURCE_BUNDLE_H_ |
| OLD | NEW |