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 
6 
7 namespace flutter {
8 
10  TaskRunner* task_runner)
11  : PlatformViewManager(messenger), task_runner_(task_runner) {}
12 
14 
15 // TODO(schectman): Impelement platform view lookup.
16 // https://github.com/flutter/flutter/issues/143375
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
25  std::string_view type_name,
27 
28 // TODO(schectman): Impelement platform view instantiation.
29 // https://github.com/flutter/flutter/issues/143375
31 
32 // TODO(schectman): Impelement platform view addition.
33 // https://github.com/flutter/flutter/issues/143375
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
42  FocusChangeDirection direction,
43  bool focus) {
44  return true;
45 }
46 
47 } // namespace flutter
flutter::PlatformViewPlugin::RegisterPlatformViewType
void RegisterPlatformViewType(std::string_view type_name, const FlutterPlatformViewTypeEntry &type)
Definition: platform_view_plugin.cc:24
flutter::PlatformViewPlugin::AddPlatformView
bool AddPlatformView(PlatformViewId id, std::string_view type_name) override
Definition: platform_view_plugin.cc:34
PlatformViewId
int64_t PlatformViewId
Definition: flutter_windows_internal.h:42
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::BinaryMessenger
Definition: binary_messenger.h:28
FlutterPlatformViewTypeEntry
Definition: flutter_windows_internal.h:57
flutter::PlatformViewPlugin::FocusPlatformView
bool FocusPlatformView(PlatformViewId id, FocusChangeDirection direction, bool focus) override
Definition: platform_view_plugin.cc:41
flutter::PlatformViewPlugin::InstantiatePlatformView
void InstantiatePlatformView(PlatformViewId id)
Definition: platform_view_plugin.cc:30
flutter::FocusChangeDirection
FocusChangeDirection
Definition: platform_view_manager.h:17
flutter
Definition: accessibility_bridge_windows.cc:11
flutter::TaskRunner
Definition: task_runner.h:26
type
enum flutter::testing::@88::KeyboardChange::Type type
flutter::PlatformViewPlugin::PlatformViewPlugin
PlatformViewPlugin(BinaryMessenger *messenger, TaskRunner *task_runner)
Definition: platform_view_plugin.cc:9
platform_view_plugin.h
flutter::PlatformViewManager
Definition: platform_view_manager.h:27