Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 11 matching lines...) Expand all Loading... | |
| 22 base::MemoryMappedFile::Region* out_region); | 22 base::MemoryMappedFile::Region* out_region); |
| 23 | 23 |
| 24 // Returns the file descriptor and region for chrome_100_percent.pak | 24 // Returns the file descriptor and region for chrome_100_percent.pak |
| 25 UI_BASE_EXPORT int GetCommonResourcesPackFd( | 25 UI_BASE_EXPORT int GetCommonResourcesPackFd( |
| 26 base::MemoryMappedFile::Region* out_region); | 26 base::MemoryMappedFile::Region* out_region); |
| 27 | 27 |
| 28 // Tell ResourceBundle to locate locale pak files via | 28 // Tell ResourceBundle to locate locale pak files via |
| 29 // GetPathForAndroidLocalePakWithinApk rather than looking for them on disk. | 29 // GetPathForAndroidLocalePakWithinApk rather than looking for them on disk. |
| 30 UI_BASE_EXPORT void SetLocalePaksStoredInApk(bool value); | 30 UI_BASE_EXPORT void SetLocalePaksStoredInApk(bool value); |
| 31 | 31 |
| 32 // Tell ResourceBundle to locate locale pak files via | |
|
Yaron
2015/06/18 20:45:43
nit: update
agrieve
2015/06/19 01:37:25
Done.
| |
| 33 // GetPathForAndroidLocalePakWithinApk rather than looking for them on disk. | |
| 34 UI_BASE_EXPORT bool GetLocalePaksStoredInApk(); | |
| 35 | |
| 32 // Returns the path within the apk for the given locale's .pak file, or an | 36 // Returns the path within the apk for the given locale's .pak file, or an |
| 33 // empty string if it doesn't exist. | 37 // empty string if it doesn't exist. |
| 34 // Only locale paks for the active Android language can be retrieved. | 38 // Only locale paks for the active Android language can be retrieved. |
| 35 UI_BASE_EXPORT std::string GetPathForAndroidLocalePakWithinApk( | 39 UI_BASE_EXPORT std::string GetPathForAndroidLocalePakWithinApk( |
| 36 const std::string& locale); | 40 const std::string& locale); |
| 37 | 41 |
| 38 bool RegisterResourceBundleAndroid(JNIEnv* env); | 42 bool RegisterResourceBundleAndroid(JNIEnv* env); |
| 39 | 43 |
| 40 } // namespace ui | 44 } // namespace ui |
| 41 | 45 |
| 42 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_ | 46 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_ |
| OLD | NEW |