Flutter Engine
The 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
11#include "flutter/assets/asset_manager.h"
12#include "flutter/flow/layers/layer_tree.h"
13#include "flutter/lib/ui/semantics/custom_accessibility_action.h"
14#include "flutter/lib/ui/semantics/semantics_node.h"
15#include "flutter/lib/ui/text/font_collection.h"
16#include "flutter/lib/ui/window/platform_message.h"
17#include "flutter/shell/common/platform_message_handler.h"
18#include "third_party/dart/runtime/include/dart_api.h"
19
20namespace flutter {
21
23 public:
24 virtual std::string DefaultRouteName() = 0;
25
26 virtual void ScheduleFrame(bool regenerate_layer_trees = true) = 0;
27
28 virtual void OnAllViewsRendered() = 0;
29
30 virtual void Render(int64_t view_id,
31 std::unique_ptr<flutter::LayerTree> layer_tree,
32 float device_pixel_ratio) = 0;
33
36
38 std::unique_ptr<PlatformMessage> message) = 0;
39
41
42 virtual std::shared_ptr<AssetManager> GetAssetManager() = 0;
43
44 virtual void OnRootIsolateCreated() = 0;
45
46 virtual void UpdateIsolateDescription(const std::string isolate_name,
47 int64_t isolate_port) = 0;
48
49 virtual void SetNeedsReportTimings(bool value) = 0;
50
51 virtual std::unique_ptr<std::vector<std::string>>
53 const std::vector<std::string>& supported_locale_data) = 0;
54
55 virtual void RequestDartDeferredLibrary(intptr_t loading_unit_id) = 0;
56
57 virtual std::weak_ptr<PlatformMessageHandler> GetPlatformMessageHandler()
58 const = 0;
59
60 virtual void SendChannelUpdate(std::string name, bool listening) = 0;
61
62 virtual double GetScaledFontSize(double unscaled_font_size,
63 int configuration_id) const = 0;
64
65 protected:
67};
68
69} // namespace flutter
70
71#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 UpdateSemantics(SemanticsNodeUpdates update, CustomAccessibilityActionUpdates actions)=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 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 ScheduleFrame(bool regenerate_layer_trees=true)=0
Win32Message message
std::unordered_map< int32_t, SemanticsNode > SemanticsNodeUpdates
std::unordered_map< int32_t, CustomAccessibilityAction > CustomAccessibilityActionUpdates
DEF_SWITCHES_START aot vmservice shared library name
Definition switches.h:32