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> | |
| 9 #include <string> | |
| 10 | |
| 8 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/files/memory_mapped_file.h" | |
| 13 #include "ui/base/ui_base_export.h" | |
| 9 | 14 |
| 10 namespace ui { | 15 namespace ui { |
| 11 | 16 |
| 17 // Loads "resources.apk" from the .apk. | |
| 18 UI_BASE_EXPORT void LoadMainAndroidPackFile(); | |
|
gunsch
2015/06/16 20:27:31
This method doesn't appear to have a caller?
agrieve
2015/06/17 01:48:02
Yikes! Nice catch! Seems I had my branches crossed
| |
| 19 | |
| 20 // Returns the file descriptor and region for resources.pak. | |
| 21 UI_BASE_EXPORT int GetMainAndroidPackFd( | |
| 22 base::MemoryMappedFile::Region* out_region); | |
| 23 | |
| 24 // Returns the file descriptor and region for chrome_100_percent.pak | |
| 25 UI_BASE_EXPORT int GetCommonResourcesPackFd( | |
| 26 base::MemoryMappedFile::Region* out_region); | |
| 27 | |
| 12 // Checks whether the locale data pak is contained within the .apk. | 28 // Checks whether the locale data pak is contained within the .apk. |
| 13 bool AssetContainedInApk(const std::string& filename); | 29 bool AssetContainedInApk(const std::string& filename); |
| 14 | 30 |
| 15 bool RegisterResourceBundleAndroid(JNIEnv* env); | 31 bool RegisterResourceBundleAndroid(JNIEnv* env); |
| 16 | 32 |
| 17 } // namespace ui | 33 } // namespace ui |
| 18 | 34 |
| 19 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_ | 35 #endif // UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_ |
| 20 | |
| OLD | NEW |