Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
7namespace 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
void RegisterPlatformViewType(std::string_view type_name, const FlutterPlatformViewTypeEntry &type)
PlatformViewPlugin(BinaryMessenger *messenger, TaskRunner *task_runner)
std::optional< HWND > GetNativeHandleForId(PlatformViewId id) const
bool FocusPlatformView(PlatformViewId id, FocusChangeDirection direction, bool focus) override
bool AddPlatformView(PlatformViewId id, std::string_view type_name) override
void InstantiatePlatformView(PlatformViewId id)
int64_t PlatformViewId