| Flutter Windows Embedder |

platform_view_plugin.cc
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 #include "flutter/shell/platform/windows/platform_view_plugin.h"
6
7 namespace flutter {
8
9 PlatformViewPlugin::PlatformViewPlugin(BinaryMessenger* messenger,
10 TaskRunner* task_runner)
11 : PlatformViewManager(messenger), task_runner_(task_runner) {}
12
13 PlatformViewPlugin::~PlatformViewPlugin() {}
14
15 // TODO(schectman): Impelement platform view lookup.
16 // https://github.com/flutter/flutter/issues/143375
17 std::optional<HWND> PlatformViewPlugin::GetNativeHandleForId(
18 PlatformViewId id) const {
19 return std::nullopt;
20 }
21
22 // TODO(schectman): Impelement platform view type registration.
23 // https://github.com/flutter/flutter/issues/143375
24 void PlatformViewPlugin::RegisterPlatformViewType(
25 std::string_view type_name,
26 const FlutterPlatformViewTypeEntry& type) {}
27
28 // TODO(schectman): Impelement platform view instantiation.
29 // https://github.com/flutter/flutter/issues/143375
30 void PlatformViewPlugin::InstantiatePlatformView(PlatformViewId id) {}
31
32 // TODO(schectman): Impelement platform view addition.
33 // https://github.com/flutter/flutter/issues/143375
34 bool PlatformViewPlugin::AddPlatformView(PlatformViewId id,
35 std::string_view type_name) {
36 return true;
37 }
38
39 // TODO(schectman): Impelement platform view focus request.
40 // https://github.com/flutter/flutter/issues/143375
41 bool PlatformViewPlugin::FocusPlatformView(PlatformViewId id,
42 FocusChangeDirection direction,
43 bool focus) {
44 return true;
45 }
46
47 } // namespace flutter
flutter::BinaryMessenger
Definition: binary_messenger.h:28
flutter::PlatformViewManager
Definition: platform_view_manager.h:27
flutter::PlatformViewPlugin::RegisterPlatformViewType
void RegisterPlatformViewType(std::string_view type_name, const FlutterPlatformViewTypeEntry &type)
Definition: platform_view_plugin.cc:24
flutter::PlatformViewPlugin::PlatformViewPlugin
PlatformViewPlugin(BinaryMessenger *messenger, TaskRunner *task_runner)
Definition: platform_view_plugin.cc:9
flutter::PlatformViewPlugin::GetNativeHandleForId
std::optional< HWND > GetNativeHandleForId(PlatformViewId id) const
Definition: platform_view_plugin.cc:17
flutter::PlatformViewPlugin::~PlatformViewPlugin
~PlatformViewPlugin()
Definition: platform_view_plugin.cc:13
flutter::PlatformViewPlugin::FocusPlatformView
bool FocusPlatformView(PlatformViewId id, FocusChangeDirection direction, bool focus) override
Definition: platform_view_plugin.cc:41
flutter::PlatformViewPlugin::AddPlatformView
bool AddPlatformView(PlatformViewId id, std::string_view type_name) override
Definition: platform_view_plugin.cc:34
flutter::PlatformViewPlugin::InstantiatePlatformView
void InstantiatePlatformView(PlatformViewId id)
Definition: platform_view_plugin.cc:30
flutter::TaskRunner
Definition: task_runner.h:26
PlatformViewId
int64_t PlatformViewId
Definition: flutter_windows_internal.h:42
type
enum flutter::testing::@93::KeyboardChange::Type type
flutter
Definition: accessibility_bridge_windows.cc:11
flutter::FocusChangeDirection
FocusChangeDirection
Definition: platform_view_manager.h:17
platform_view_plugin.h
FlutterPlatformViewTypeEntry
Definition: flutter_windows_internal.h:57