mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Some components in the Flutter engine were derived from the forked blink codebase. While the forked components have either been removed or rewritten, the use of the blink namespace has mostly (and inconsistently) remained. This renames the blink namesapce to flutter for consistency. There are no functional changes in this patch.
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef FLUTTER_LIB_UI_PLATFORM_PLATFORM_MESSAGE_RESPONSE_DART_H_
|
|
#define FLUTTER_LIB_UI_PLATFORM_PLATFORM_MESSAGE_RESPONSE_DART_H_
|
|
|
|
#include "flutter/fml/message_loop.h"
|
|
#include "flutter/lib/ui/window/platform_message_response.h"
|
|
#include "third_party/tonic/dart_persistent_value.h"
|
|
|
|
namespace flutter {
|
|
|
|
class PlatformMessageResponseDart : public PlatformMessageResponse {
|
|
FML_FRIEND_MAKE_REF_COUNTED(PlatformMessageResponseDart);
|
|
|
|
public:
|
|
// Callable on any thread.
|
|
void Complete(std::unique_ptr<fml::Mapping> data) override;
|
|
void CompleteEmpty() override;
|
|
|
|
protected:
|
|
explicit PlatformMessageResponseDart(
|
|
tonic::DartPersistentValue callback,
|
|
fml::RefPtr<fml::TaskRunner> ui_task_runner);
|
|
~PlatformMessageResponseDart() override;
|
|
|
|
tonic::DartPersistentValue callback_;
|
|
fml::RefPtr<fml::TaskRunner> ui_task_runner_;
|
|
};
|
|
|
|
} // namespace flutter
|
|
|
|
#endif // FLUTTER_LIB_UI_PLATFORM_PLATFORM_MESSAGE_RESPONSE_DART_H_
|