Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
lib
ui
window
platform_message_response.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_LIB_UI_WINDOW_PLATFORM_MESSAGE_RESPONSE_H_
6
#define FLUTTER_LIB_UI_WINDOW_PLATFORM_MESSAGE_RESPONSE_H_
7
8
#include <vector>
9
10
#include "flutter/fml/mapping.h"
11
#include "flutter/fml/memory/ref_counted.h"
12
#include "flutter/fml/memory/ref_ptr.h"
13
14
namespace
flutter
{
15
16
class
PlatformMessageResponse
17
:
public
fml::RefCountedThreadSafe
<PlatformMessageResponse> {
18
FML_FRIEND_REF_COUNTED_THREAD_SAFE
(
PlatformMessageResponse
);
19
20
public
:
21
// Callable on any thread.
22
virtual
void
Complete
(std::unique_ptr<fml::Mapping>
data
) = 0;
23
virtual
void
CompleteEmpty
() = 0;
24
25
bool
is_complete
()
const
{
return
is_complete_
; }
26
27
protected
:
28
PlatformMessageResponse
();
29
virtual
~PlatformMessageResponse
();
30
31
bool
is_complete_
=
false
;
32
};
33
34
}
// namespace flutter
35
36
#endif
// FLUTTER_LIB_UI_WINDOW_PLATFORM_MESSAGE_RESPONSE_H_
flutter::PlatformMessageResponse
Definition
platform_message_response.h:17
flutter::PlatformMessageResponse::~PlatformMessageResponse
virtual ~PlatformMessageResponse()
flutter::PlatformMessageResponse::Complete
virtual void Complete(std::unique_ptr< fml::Mapping > data)=0
flutter::PlatformMessageResponse::CompleteEmpty
virtual void CompleteEmpty()=0
flutter::PlatformMessageResponse::is_complete
bool is_complete() const
Definition
platform_message_response.h:25
flutter::PlatformMessageResponse::is_complete_
bool is_complete_
Definition
platform_message_response.h:31
flutter::PlatformMessageResponse::PlatformMessageResponse
PlatformMessageResponse()
fml::RefCountedThreadSafe
Definition
ref_counted.h:63
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
FML_FRIEND_REF_COUNTED_THREAD_SAFE
#define FML_FRIEND_REF_COUNTED_THREAD_SAFE(T)
Definition
ref_counted.h:126
Generated on Fri Apr 26 2024 06:14:17 for Flutter Engine by
1.9.8