Flutter Engine
 
Loading...
Searching...
No Matches
runtime_delegate.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_RUNTIME_RUNTIME_DELEGATE_H_
6#define FLUTTER_RUNTIME_RUNTIME_DELEGATE_H_
7
8#include <memory>
9#include <vector>
10
19#include "third_party/dart/runtime/include/dart_api.h"
20
21namespace flutter {
22
24 public:
25 virtual std::string DefaultRouteName() = 0;
26
27 virtual void ScheduleFrame(bool regenerate_layer_trees = true) = 0;
28
29 virtual void OnAllViewsRendered() = 0;
30
31 virtual void Render(int64_t view_id,
32 std::unique_ptr<flutter::LayerTree> layer_tree,
33 float device_pixel_ratio) = 0;
34
35 virtual void UpdateSemantics(int64_t view_id,
38
39 virtual void SetApplicationLocale(std::string locale) = 0;
40
41 virtual void SetSemanticsTreeEnabled(bool enabled) = 0;
42
44 std::unique_ptr<PlatformMessage> message) = 0;
45
47
48 virtual std::shared_ptr<AssetManager> GetAssetManager() = 0;
49
50 virtual void OnRootIsolateCreated() = 0;
51
52 virtual void UpdateIsolateDescription(const std::string isolate_name,
53 int64_t isolate_port) = 0;
54
55 virtual void SetNeedsReportTimings(bool value) = 0;
56
57 virtual std::unique_ptr<std::vector<std::string>>
59 const std::vector<std::string>& supported_locale_data) = 0;
60
61 virtual void RequestDartDeferredLibrary(intptr_t loading_unit_id) = 0;
62
63 virtual std::weak_ptr<PlatformMessageHandler> GetPlatformMessageHandler()
64 const = 0;
65
66 virtual void SendChannelUpdate(std::string name, bool listening) = 0;
67
68 virtual double GetScaledFontSize(double unscaled_font_size,
69 int configuration_id) const = 0;
70
72 const ViewFocusChangeRequest& request) = 0;
73
74 protected:
76};
77
78} // namespace flutter
79
80#endif // FLUTTER_RUNTIME_RUNTIME_DELEGATE_H_
virtual std::unique_ptr< std::vector< std::string > > ComputePlatformResolvedLocale(const std::vector< std::string > &supported_locale_data)=0
virtual void RequestDartDeferredLibrary(intptr_t loading_unit_id)=0
virtual double GetScaledFontSize(double unscaled_font_size, int configuration_id) const =0
virtual std::string DefaultRouteName()=0
virtual std::weak_ptr< PlatformMessageHandler > GetPlatformMessageHandler() const =0
virtual void HandlePlatformMessage(std::unique_ptr< PlatformMessage > message)=0
virtual void SetNeedsReportTimings(bool value)=0
virtual void SetApplicationLocale(std::string locale)=0
virtual std::shared_ptr< AssetManager > GetAssetManager()=0
virtual void OnRootIsolateCreated()=0
virtual FontCollection & GetFontCollection()=0
virtual void Render(int64_t view_id, std::unique_ptr< flutter::LayerTree > layer_tree, float device_pixel_ratio)=0
virtual void UpdateSemantics(int64_t view_id, SemanticsNodeUpdates update, CustomAccessibilityActionUpdates actions)=0
virtual void UpdateIsolateDescription(const std::string isolate_name, int64_t isolate_port)=0
virtual void OnAllViewsRendered()=0
virtual void SendChannelUpdate(std::string name, bool listening)=0
virtual void RequestViewFocusChange(const ViewFocusChangeRequest &request)=0
virtual void SetSemanticsTreeEnabled(bool enabled)=0
virtual void ScheduleFrame(bool regenerate_layer_trees=true)=0
G_BEGIN_DECLS GBytes * message
G_BEGIN_DECLS FlutterViewId view_id
std::unordered_map< int32_t, SemanticsNode > SemanticsNodeUpdates
std::unordered_map< int32_t, CustomAccessibilityAction > CustomAccessibilityActionUpdates
DEF_SWITCHES_START aot vmservice shared library name
Definition switch_defs.h:27