Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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_FLUTTER_FUCHSIA_INTL_H_
6#define FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_FUCHSIA_INTL_H_
7
8#include <fuchsia/intl/cpp/fidl.h>
9#include "flutter/fml/mapping.h"
10
11namespace flutter_runner {
12
13// Make a byte vector containing the JSON string used for a localization
14// PlatformMessage, using the locale list in the given Profile.
15//
16// This method does not return a `std::unique_ptr<flutter::PlatformMessage>` for
17// testing convenience; that would require an unreasonably large set of
18// dependencies for the unit tests.
20 const fuchsia::intl::Profile& intl_profile);
21
22} // namespace flutter_runner
23
24#endif // FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_FUCHSIA_INTL_H_
A Mapping like NonOwnedMapping, but uses Free as its release proc.
Definition mapping.h:144
fml::MallocMapping MakeLocalizationPlatformMessageData(const Profile &intl_profile)