Flutter Engine
fuchsia_intl.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter 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.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_FUCHSIA_INTL_H_
6 #define FLUTTER_SHELL_PLATFORM_FUCHSIA_FUCHSIA_INTL_H_
7 
8 #include <fuchsia/intl/cpp/fidl.h>
9 
10 namespace flutter_runner {
11 
12 // Make a byte vector containing the JSON string used for a localization
13 // PlatformMessage, using the locale list in the given Profile.
14 //
15 // This method does not return a `fml::RefPtr<flutter::PlatformMessage>` for
16 // testing convenience; that would require an unreasonably large set of
17 // dependencies for the unit tests.
18 std::vector<uint8_t> MakeLocalizationPlatformMessageData(
19  const fuchsia::intl::Profile& intl_profile);
20 
21 } // namespace flutter_runner
22 
23 #endif // FLUTTER_SHELL_PLATFORM_FUCHSIA_FUCHSIA_INTL_H_
std::vector< uint8_t > MakeLocalizationPlatformMessageData(const Profile &intl_profile)
Definition: fuchsia_intl.cc:30