Flutter Engine
The Flutter Engine
shell
platform
fuchsia
flutter
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
11
namespace
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.
19
fml::MallocMapping
MakeLocalizationPlatformMessageData
(
20
const
fuchsia::intl::Profile& intl_profile);
21
22
}
// namespace flutter_runner
23
24
#endif
// FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_FUCHSIA_INTL_H_
fml::MallocMapping
A Mapping like NonOwnedMapping, but uses Free as its release proc.
Definition:
mapping.h:144
flutter_runner
Definition:
accessibility_bridge.cc:20
flutter_runner::MakeLocalizationPlatformMessageData
fml::MallocMapping MakeLocalizationPlatformMessageData(const Profile &intl_profile)
Definition:
fuchsia_intl.cc:29
Generated on Sun Jun 23 2024 21:55:15 for Flutter Engine by
1.9.4