OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // DataPack represents a read-only view onto an on-disk file that contains | 5 // DataPack represents a read-only view onto an on-disk file that contains |
6 // (key, value) pairs of data. It's used to store static resources like | 6 // (key, value) pairs of data. It's used to store static resources like |
7 // translation strings and images. | 7 // translation strings and images. |
8 | 8 |
9 #ifndef UI_BASE_RESOURCE_DATA_PACK_H_ | 9 #ifndef UI_BASE_RESOURCE_DATA_PACK_H_ |
10 #define UI_BASE_RESOURCE_DATA_PACK_H_ | 10 #define UI_BASE_RESOURCE_DATA_PACK_H_ |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/platform_file.h" | 16 #include "base/platform_file.h" |
17 #include "base/string_piece.h" | 17 #include "base/strings/string_piece.h" |
18 #include "ui/base/layout.h" | 18 #include "ui/base/layout.h" |
19 #include "ui/base/resource/resource_handle.h" | 19 #include "ui/base/resource/resource_handle.h" |
20 #include "ui/base/ui_export.h" | 20 #include "ui/base/ui_export.h" |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 class FilePath; | 23 class FilePath; |
24 class MemoryMappedFile; | 24 class MemoryMappedFile; |
25 class RefCountedStaticMemory; | 25 class RefCountedStaticMemory; |
26 } | 26 } |
27 | 27 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // The scale of the image in this resource pack relative to images in the 1x | 71 // The scale of the image in this resource pack relative to images in the 1x |
72 // resource pak. | 72 // resource pak. |
73 ui::ScaleFactor scale_factor_; | 73 ui::ScaleFactor scale_factor_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(DataPack); | 75 DISALLOW_COPY_AND_ASSIGN(DataPack); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace ui | 78 } // namespace ui |
79 | 79 |
80 #endif // UI_BASE_RESOURCE_DATA_PACK_H_ | 80 #endif // UI_BASE_RESOURCE_DATA_PACK_H_ |
OLD | NEW |