Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: ui/base/resource/data_pack_literal.cc

Issue 7744017: Updated *.pak file format to support both UTF8 and UTF16 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified mac-specific parts of the code. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/resource/data_pack.cc ('k') | ui/base/resource/data_pack_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 extern const char kSamplePakContents[] = { 9 extern const char kSamplePakContents[] = {
10 0x03, 0x00, 0x00, 0x00, // header(version 10 0x04, 0x00, 0x00, 0x00, // header(version
11 0x04, 0x00, 0x00, 0x00, // no. entries) 11 0x04, 0x00, 0x00, 0x00, // no. entries
12 0x01, 0x00, 0x26, 0x00, 0x00, 0x00, // index entry 1 12 0x01, // encoding)
13 0x04, 0x00, 0x26, 0x00, 0x00, 0x00, // index entry 4 13 0x01, 0x00, 0x27, 0x00, 0x00, 0x00, // index entry 1
14 0x06, 0x00, 0x32, 0x00, 0x00, 0x00, // index entry 6 14 0x04, 0x00, 0x27, 0x00, 0x00, 0x00, // index entry 4
15 0x0a, 0x00, 0x3e, 0x00, 0x00, 0x00, // index entry 10 15 0x06, 0x00, 0x33, 0x00, 0x00, 0x00, // index entry 6
16 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, // extra entry for the size of last 16 0x0a, 0x00, 0x3f, 0x00, 0x00, 0x00, // index entry 10
17 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, // extra entry for the size of last
17 't', 'h', 'i', 's', ' ', 'i', 's', ' ', 'i', 'd', ' ', '4', 18 't', 'h', 'i', 's', ' ', 'i', 's', ' ', 'i', 'd', ' ', '4',
18 't', 'h', 'i', 's', ' ', 'i', 's', ' ', 'i', 'd', ' ', '6' 19 't', 'h', 'i', 's', ' ', 'i', 's', ' ', 'i', 'd', ' ', '6'
19 }; 20 };
20 21
21 extern const size_t kSamplePakSize = sizeof(kSamplePakContents); 22 extern const size_t kSamplePakSize = sizeof(kSamplePakContents);
22 23
23 } // namespace ui 24 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/resource/data_pack.cc ('k') | ui/base/resource/data_pack_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698