| 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 | 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 static const SkColor frame_color_app_panel_inactive; | 152 static const SkColor frame_color_app_panel_inactive; |
| 153 static const SkColor frame_color_incognito; | 153 static const SkColor frame_color_incognito; |
| 154 static const SkColor frame_color_incognito_inactive; | 154 static const SkColor frame_color_incognito_inactive; |
| 155 static const SkColor toolbar_color; | 155 static const SkColor toolbar_color; |
| 156 static const SkColor toolbar_separator_color; | 156 static const SkColor toolbar_separator_color; |
| 157 | 157 |
| 158 private: | 158 private: |
| 159 // Helper class for managing data packs. | 159 // Helper class for managing data packs. |
| 160 class LoadedDataPack { | 160 class LoadedDataPack { |
| 161 public: | 161 public: |
| 162 LoadedDataPack(const FilePath& path); | 162 explicit LoadedDataPack(const FilePath& path); |
| 163 bool GetStringPiece(int resource_id, base::StringPiece* data); | 163 bool GetStringPiece(int resource_id, base::StringPiece* data) const; |
| 164 RefCountedStaticMemory* GetStaticMemory(int resource_id) const; |
| 164 | 165 |
| 165 private: | 166 private: |
| 166 void Load(); | 167 void Load(); |
| 167 | 168 |
| 168 scoped_ptr<base::DataPack> data_pack_; | 169 scoped_ptr<base::DataPack> data_pack_; |
| 169 FilePath path_; | 170 FilePath path_; |
| 170 | 171 |
| 171 DISALLOW_COPY_AND_ASSIGN(LoadedDataPack); | 172 DISALLOW_COPY_AND_ASSIGN(LoadedDataPack); |
| 172 }; | 173 }; |
| 173 | 174 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 scoped_ptr<gfx::Font> medium_bold_font_; | 258 scoped_ptr<gfx::Font> medium_bold_font_; |
| 258 scoped_ptr<gfx::Font> large_font_; | 259 scoped_ptr<gfx::Font> large_font_; |
| 259 scoped_ptr<gfx::Font> web_font_; | 260 scoped_ptr<gfx::Font> web_font_; |
| 260 | 261 |
| 261 static ResourceBundle* g_shared_instance_; | 262 static ResourceBundle* g_shared_instance_; |
| 262 | 263 |
| 263 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); | 264 DISALLOW_COPY_AND_ASSIGN(ResourceBundle); |
| 264 }; | 265 }; |
| 265 | 266 |
| 266 #endif // APP_RESOURCE_BUNDLE_H_ | 267 #endif // APP_RESOURCE_BUNDLE_H_ |
| OLD | NEW |