ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / base / i18n / icu_util.h
blob5094cb0f1df538f85d19c47e36d7d6ea299d8582
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
3 // found in the LICENSE file.
5 #ifndef BASE_I18N_ICU_UTIL_H_
6 #define BASE_I18N_ICU_UTIL_H_
8 #include "base/files/memory_mapped_file.h"
9 #include "base/i18n/base_i18n_export.h"
10 #include "build/build_config.h"
12 namespace base {
13 namespace i18n {
15 BASE_I18N_EXPORT extern const char kIcuDataFileName[];
17 // Call this function to load ICU's data tables for the current process. This
18 // function should be called before ICU is used.
19 BASE_I18N_EXPORT bool InitializeICU();
21 #if defined(OS_ANDROID)
22 // Android uses a file descriptor passed by browser process to initialize ICU
23 // in render processes.
24 BASE_I18N_EXPORT bool InitializeICUWithFileDescriptor(
25 int data_fd,
26 base::MemoryMappedFile::Region data_region);
27 #endif
29 // In a test binary, the call above might occur twice.
30 BASE_I18N_EXPORT void AllowMultipleInitializeCallsForTesting();
32 } // namespace i18n
33 } // namespace base
35 #endif // BASE_I18N_ICU_UTIL_H_