Flutter Engine
The Flutter Engine
lib
ui
window
platform_message.cc
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
#include "flutter/lib/ui/window/platform_message.h"
6
7
#include <utility>
8
9
namespace
flutter
{
10
11
PlatformMessage::PlatformMessage
(std::string channel,
12
fml::MallocMapping
data
,
13
fml::RefPtr<PlatformMessageResponse>
response)
14
: channel_(
std
::move(channel)),
15
data_(
std
::move(
data
)),
16
has_data_(
true
),
17
response_(
std
::move(response)) {}
18
PlatformMessage::PlatformMessage
(std::string channel,
19
fml::RefPtr<PlatformMessageResponse>
response)
20
: channel_(
std
::move(channel)),
21
data_(),
22
has_data_(
false
),
23
response_(
std
::move(response)) {}
24
25
PlatformMessage::~PlatformMessage
() =
default
;
26
27
}
// namespace flutter
flutter::PlatformMessage::~PlatformMessage
~PlatformMessage()
flutter::PlatformMessage::PlatformMessage
PlatformMessage(std::string channel, fml::MallocMapping data, fml::RefPtr< PlatformMessageResponse > response)
Definition:
platform_message.cc:11
fml::MallocMapping
A Mapping like NonOwnedMapping, but uses Free as its release proc.
Definition:
mapping.h:144
fml::RefPtr
Definition:
ref_ptr.h:65
dart::false
false
Definition:
isolate_reload.cc:58
flutter
Definition:
asset_manager.cc:10
flutter::data
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition:
switches.h:41
std
Definition:
ref_ptr.h:256
true
true
Definition:
verylargebitmap.cpp:163
Generated on Sun Jun 23 2024 21:55:06 for Flutter Engine by
1.9.4