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

Side by Side Diff: ui/base/resource/resource_bundle_android.h

Issue 2980773002: Revert of Deduplicate Monochrome locale .paks (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/base/resource/resource_bundle_android.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_ 5 #ifndef UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_
6 #define UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_ 6 #define UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 base::MemoryMappedFile::Region* out_region); 24 base::MemoryMappedFile::Region* out_region);
25 25
26 // Returns the file descriptor and region for chrome_100_percent.pak. 26 // Returns the file descriptor and region for chrome_100_percent.pak.
27 UI_BASE_EXPORT int GetCommonResourcesPackFd( 27 UI_BASE_EXPORT int GetCommonResourcesPackFd(
28 base::MemoryMappedFile::Region* out_region); 28 base::MemoryMappedFile::Region* out_region);
29 29
30 // Returns the file descriptor and region for the locale .pak file. 30 // Returns the file descriptor and region for the locale .pak file.
31 UI_BASE_EXPORT int GetLocalePackFd( 31 UI_BASE_EXPORT int GetLocalePackFd(
32 base::MemoryMappedFile::Region* out_region); 32 base::MemoryMappedFile::Region* out_region);
33 33
34 // Returns the file descriptor and region for the secondary locale .pak file.
35 UI_BASE_EXPORT int GetSecondaryLocalePackFd(
36 base::MemoryMappedFile::Region* out_region);
37
38 // Tell ResourceBundle to locate locale pak files via 34 // Tell ResourceBundle to locate locale pak files via
39 // GetPathForAndroidLocalePakWithinApk rather than looking for them on disk. 35 // GetPathForAndroidLocalePakWithinApk rather than looking for them on disk.
40 UI_BASE_EXPORT void SetLocalePaksStoredInApk(bool value); 36 UI_BASE_EXPORT void SetLocalePaksStoredInApk(bool value);
41 37
42 // Tell ResourceBundle to load secondary locale .pak files.
43 UI_BASE_EXPORT void SetLoadSecondaryLocalePaks(bool value);
44
45 // Returns the path within the apk for the given locale's .pak file, or an 38 // Returns the path within the apk for the given locale's .pak file, or an
46 // empty string if it doesn't exist. 39 // empty string if it doesn't exist.
47 // Only locale paks for the active Android language can be retrieved. 40 // Only locale paks for the active Android language can be retrieved.
48 UI_BASE_EXPORT std::string GetPathForAndroidLocalePakWithinApk( 41 UI_BASE_EXPORT std::string GetPathForAndroidLocalePakWithinApk(
49 const std::string& locale); 42 const std::string& locale);
50 43
51 // Get the density of the primary display. Use this instead of using Display 44 // Get the density of the primary display. Use this instead of using Display
52 // to avoid initializing Display in child processes. 45 // to avoid initializing Display in child processes.
53 float GetPrimaryDisplayScale(); 46 float GetPrimaryDisplayScale();
54 47
55 } // namespace ui 48 } // namespace ui
56 49
57 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_ 50 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/base/resource/resource_bundle_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698