summaryrefslogtreecommitdiffstats
path: root/ui/base/resource/data_pack_literal.cc
diff options
context:
space:
mode:
authoradriansc@chromium.org <adriansc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-13 21:45:17 +0000
committeradriansc@chromium.org <adriansc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-13 21:45:17 +0000
commitc13b1e74736c5c65500abf4dfff5ad19ec4383e4 (patch)
tree52e8dcb292f0129a74a7951877f036aeca067a00 /ui/base/resource/data_pack_literal.cc
parenta861db15107dec307b9246678101f26238055a3c (diff)
downloadchromium_src-c13b1e74736c5c65500abf4dfff5ad19ec4383e4.zip
chromium_src-c13b1e74736c5c65500abf4dfff5ad19ec4383e4.tar.gz
chromium_src-c13b1e74736c5c65500abf4dfff5ad19ec4383e4.tar.bz2
Updated *.pak file format to support both UTF8 and UTF16
Inserted a new field in the header that specifies which encoding is to be used for the text resources. I also upped file format to version 4. BUG=76281 TEST=unit_tests Review URL: http://codereview.chromium.org/7744017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/resource/data_pack_literal.cc')
-rw-r--r--ui/base/resource/data_pack_literal.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/ui/base/resource/data_pack_literal.cc b/ui/base/resource/data_pack_literal.cc
index 4a32fa9..510d07a 100644
--- a/ui/base/resource/data_pack_literal.cc
+++ b/ui/base/resource/data_pack_literal.cc
@@ -7,13 +7,14 @@
namespace ui {
extern const char kSamplePakContents[] = {
- 0x03, 0x00, 0x00, 0x00, // header(version
- 0x04, 0x00, 0x00, 0x00, // no. entries)
- 0x01, 0x00, 0x26, 0x00, 0x00, 0x00, // index entry 1
- 0x04, 0x00, 0x26, 0x00, 0x00, 0x00, // index entry 4
- 0x06, 0x00, 0x32, 0x00, 0x00, 0x00, // index entry 6
- 0x0a, 0x00, 0x3e, 0x00, 0x00, 0x00, // index entry 10
- 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, // extra entry for the size of last
+ 0x04, 0x00, 0x00, 0x00, // header(version
+ 0x04, 0x00, 0x00, 0x00, // no. entries
+ 0x01, // encoding)
+ 0x01, 0x00, 0x27, 0x00, 0x00, 0x00, // index entry 1
+ 0x04, 0x00, 0x27, 0x00, 0x00, 0x00, // index entry 4
+ 0x06, 0x00, 0x33, 0x00, 0x00, 0x00, // index entry 6
+ 0x0a, 0x00, 0x3f, 0x00, 0x00, 0x00, // index entry 10
+ 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, // extra entry for the size of last
't', 'h', 'i', 's', ' ', 'i', 's', ' ', 'i', 'd', ' ', '4',
't', 'h', 'i', 's', ' ', 'i', 's', ' ', 'i', 'd', ' ', '6'
};