Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter_windows_engine_builder.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_SHELL_PLATFORM_WINDOWS_TESTING_FLUTTER_WINDOWS_ENGINE_BUILDER_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_FLUTTER_WINDOWS_ENGINE_BUILDER_H_
7
8#include <memory>
9
10#include "flutter/fml/macros.h"
15
16namespace flutter {
17namespace testing {
18
20 public:
23
24 void SetDartEntrypoint(std::string entrypoint);
25
26 void AddDartEntrypointArgument(std::string arg);
27
31
32 void SetSwitches(std::vector<std::string> switches);
33
35
37 std::shared_ptr<WindowsProcTable> windows_proc_table);
38
39 std::unique_ptr<FlutterWindowsEngine> Build();
40
41 private:
42 WindowsTestContext& context_;
43 FlutterDesktopEngineProperties properties_ = {};
44 std::string dart_entrypoint_;
45 std::vector<std::string> dart_entrypoint_arguments_;
46 std::vector<std::string> switches_;
49 std::shared_ptr<WindowsProcTable> windows_proc_table_;
50
52};
53
54} // namespace testing
55} // namespace flutter
56
57#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_FLUTTER_WINDOWS_ENGINE_BUILDER_H_
std::function< SHORT(UINT, bool)> MapVirtualKeyToScanCode
void SetCreateKeyboardHandlerCallbacks(KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state, KeyboardKeyEmbedderHandler::MapVirtualKeyToScanCode map_vk_to_scan)
void SetSwitches(std::vector< std::string > switches)
void SetImpellerSwitch(FlutterDesktopImpellerSwitch impeller_switch)
void SetWindowsProcTable(std::shared_ptr< WindowsProcTable > windows_proc_table)
FlutterDesktopImpellerSwitch
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
std::shared_ptr< ContextGLES > context