[fuchsia] fidl::InterfaceHandle<T> -> THandle. (flutter/engine#29305)
This is harmless, as THandle is an alias for fidl::InterfaceHandle<T>: https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/fidl/fidlgen_hlcpp/codegen/natural_types_protocol.tmpl;l=12;drc=875a5a40770ff14f716427f9bf1002a7378096bf ```sh $ sed -i -E "s/fidl::InterfaceHandle<(.+)>/\1Handle/" shell/platform/fuchsia/flutter/*.h $ sed -i -E "s/fidl::InterfaceHandle<(.+)>/\1Handle/" shell/platform/fuchsia/flutter/*.cc ``` Tested: Built the JIT runner.
This commit is contained in:
@@ -218,8 +218,7 @@ std::string NodeChildrenToString(const flutter::SemanticsNode& node) {
|
||||
AccessibilityBridge::AccessibilityBridge(
|
||||
SetSemanticsEnabledCallback set_semantics_enabled_callback,
|
||||
DispatchSemanticsActionCallback dispatch_semantics_action_callback,
|
||||
fidl::InterfaceHandle<fuchsia::accessibility::semantics::SemanticsManager>
|
||||
semantics_manager,
|
||||
fuchsia::accessibility::semantics::SemanticsManagerHandle semantics_manager,
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
inspect::Node inspect_node)
|
||||
: set_semantics_enabled_callback_(
|
||||
|
||||
@@ -66,7 +66,7 @@ class AccessibilityBridge
|
||||
AccessibilityBridge(
|
||||
SetSemanticsEnabledCallback set_semantics_enabled_callback,
|
||||
DispatchSemanticsActionCallback dispatch_semantics_action_callback,
|
||||
fidl::InterfaceHandle<fuchsia::accessibility::semantics::SemanticsManager>
|
||||
fuchsia::accessibility::semantics::SemanticsManagerHandle
|
||||
semantics_manager,
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
inspect::Node inspect_node);
|
||||
|
||||
@@ -89,8 +89,7 @@ class AccessibilityBridgeTest : public testing::Test {
|
||||
protected:
|
||||
void SetUp() override {
|
||||
// Connect to SemanticsManager service.
|
||||
fidl::InterfaceHandle<fuchsia::accessibility::semantics::SemanticsManager>
|
||||
semantics_manager;
|
||||
fuchsia::accessibility::semantics::SemanticsManagerHandle semantics_manager;
|
||||
zx_status_t semantics_status =
|
||||
services_provider_.service_directory()
|
||||
->Connect<fuchsia::accessibility::semantics::SemanticsManager>(
|
||||
|
||||
@@ -194,7 +194,7 @@ ComponentV1::ComponentV1(
|
||||
|
||||
directory_request_ = directory_ptr_.NewRequest();
|
||||
|
||||
fidl::InterfaceHandle<fuchsia::io::Directory> flutter_public_dir;
|
||||
fuchsia::io::DirectoryHandle flutter_public_dir;
|
||||
// TODO(anmittal): when fixing enumeration using new c++ vfs, make sure that
|
||||
// flutter_public_dir is only accessed once we receive OnOpen Event.
|
||||
// That will prevent FL-175 for public directory
|
||||
@@ -223,7 +223,7 @@ ComponentV1::ComponentV1(
|
||||
const char* other_dirs[] = {"debug", "ctrl", "diagnostics"};
|
||||
// add other directories as RemoteDirs.
|
||||
for (auto& dir_str : other_dirs) {
|
||||
fidl::InterfaceHandle<fuchsia::io::Directory> dir;
|
||||
fuchsia::io::DirectoryHandle dir;
|
||||
auto request = dir.NewRequest().TakeChannel();
|
||||
auto status = fdio_service_connect_at(directory_ptr_.channel().get(),
|
||||
dir_str, request.release());
|
||||
|
||||
@@ -120,8 +120,7 @@ class ComponentV1 final : public Engine::Delegate,
|
||||
void CreateView(
|
||||
zx::eventpair token,
|
||||
fidl::InterfaceRequest<fuchsia::sys::ServiceProvider> incoming_services,
|
||||
fidl::InterfaceHandle<fuchsia::sys::ServiceProvider> outgoing_services)
|
||||
override;
|
||||
fuchsia::sys::ServiceProviderHandle outgoing_services) override;
|
||||
|
||||
// |fuchsia::ui::app::ViewProvider|
|
||||
void CreateViewWithViewRef(zx::eventpair view_token,
|
||||
|
||||
@@ -207,7 +207,7 @@ ComponentV2::ComponentV2(
|
||||
|
||||
directory_request_ = directory_ptr_.NewRequest();
|
||||
|
||||
fidl::InterfaceHandle<fuchsia::io::Directory> flutter_public_dir;
|
||||
fuchsia::io::DirectoryHandle flutter_public_dir;
|
||||
// TODO(anmittal): when fixing enumeration using new c++ vfs, make sure that
|
||||
// flutter_public_dir is only accessed once we receive OnOpen Event.
|
||||
// That will prevent FL-175 for public directory
|
||||
@@ -236,7 +236,7 @@ ComponentV2::ComponentV2(
|
||||
const char* other_dirs[] = {"debug", "ctrl", "diagnostics"};
|
||||
// add other directories as RemoteDirs.
|
||||
for (auto& dir_str : other_dirs) {
|
||||
fidl::InterfaceHandle<fuchsia::io::Directory> dir;
|
||||
fuchsia::io::DirectoryHandle dir;
|
||||
auto request = dir.NewRequest().TakeChannel();
|
||||
auto status = fdio_service_connect_at(directory_ptr_.channel().get(),
|
||||
dir_str, request.release());
|
||||
|
||||
@@ -136,8 +136,7 @@ class ComponentV2 final
|
||||
void CreateView(
|
||||
zx::eventpair token,
|
||||
fidl::InterfaceRequest<fuchsia::sys::ServiceProvider> incoming_services,
|
||||
fidl::InterfaceHandle<fuchsia::sys::ServiceProvider> outgoing_services)
|
||||
override;
|
||||
fuchsia::sys::ServiceProviderHandle outgoing_services) override;
|
||||
|
||||
// |fuchsia::ui::app::ViewProvider|
|
||||
void CreateViewWithViewRef(zx::eventpair view_token,
|
||||
|
||||
@@ -138,15 +138,15 @@ void Engine::Initialize(
|
||||
// Connect to Scenic.
|
||||
auto scenic = runner_services->Connect<fuchsia::ui::scenic::Scenic>();
|
||||
fuchsia::ui::scenic::SessionEndpoints gfx_protocols;
|
||||
fidl::InterfaceHandle<fuchsia::ui::scenic::Session> session;
|
||||
fuchsia::ui::scenic::SessionHandle session;
|
||||
gfx_protocols.set_session(session.NewRequest());
|
||||
fidl::InterfaceHandle<fuchsia::ui::scenic::SessionListener> session_listener;
|
||||
fuchsia::ui::scenic::SessionListenerHandle session_listener;
|
||||
auto session_listener_request = session_listener.NewRequest();
|
||||
gfx_protocols.set_session_listener(session_listener.Bind());
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser;
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused> view_ref_focused;
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source;
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source;
|
||||
fuchsia::ui::views::FocuserHandle focuser;
|
||||
fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused;
|
||||
fuchsia::ui::pointer::TouchSourceHandle touch_source;
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source;
|
||||
|
||||
fuchsia::ui::composition::ViewBoundProtocols flatland_view_protocols;
|
||||
if (use_flatland) {
|
||||
@@ -163,7 +163,7 @@ void Engine::Initialize(
|
||||
scenic->CreateSessionT(std::move(gfx_protocols), [] {});
|
||||
|
||||
// Connect to Flatland.
|
||||
fidl::InterfaceHandle<fuchsia::ui::composition::Flatland> flatland;
|
||||
fuchsia::ui::composition::FlatlandHandle flatland;
|
||||
zx_status_t flatland_status =
|
||||
runner_services->Connect<fuchsia::ui::composition::Flatland>(
|
||||
flatland.NewRequest());
|
||||
@@ -173,8 +173,7 @@ void Engine::Initialize(
|
||||
}
|
||||
|
||||
// Connect to SemanticsManager service.
|
||||
fidl::InterfaceHandle<fuchsia::accessibility::semantics::SemanticsManager>
|
||||
semantics_manager;
|
||||
fuchsia::accessibility::semantics::SemanticsManagerHandle semantics_manager;
|
||||
zx_status_t semantics_status =
|
||||
runner_services
|
||||
->Connect<fuchsia::accessibility::semantics::SemanticsManager>(
|
||||
@@ -187,7 +186,7 @@ void Engine::Initialize(
|
||||
}
|
||||
|
||||
// Connect to ImeService service.
|
||||
fidl::InterfaceHandle<fuchsia::ui::input::ImeService> ime_service;
|
||||
fuchsia::ui::input::ImeServiceHandle ime_service;
|
||||
zx_status_t ime_status =
|
||||
runner_services->Connect<fuchsia::ui::input::ImeService>(
|
||||
ime_service.NewRequest());
|
||||
@@ -197,7 +196,7 @@ void Engine::Initialize(
|
||||
}
|
||||
|
||||
// Connect to Keyboard service.
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard;
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard;
|
||||
zx_status_t keyboard_status =
|
||||
runner_services->Connect<fuchsia::ui::input3::Keyboard>(
|
||||
keyboard.NewRequest());
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace flutter_runner {
|
||||
|
||||
FlatlandConnection::FlatlandConnection(
|
||||
std::string debug_label,
|
||||
fidl::InterfaceHandle<fuchsia::ui::composition::Flatland> flatland,
|
||||
fuchsia::ui::composition::FlatlandHandle flatland,
|
||||
fml::closure error_callback,
|
||||
on_frame_presented_event on_frame_presented_callback,
|
||||
uint64_t max_frames_in_flight,
|
||||
|
||||
@@ -30,13 +30,12 @@ static constexpr fml::TimeDelta kDefaultFlatlandPresentationInterval =
|
||||
// maintaining the Flatland instance connection and presenting updates.
|
||||
class FlatlandConnection final {
|
||||
public:
|
||||
FlatlandConnection(
|
||||
std::string debug_label,
|
||||
fidl::InterfaceHandle<fuchsia::ui::composition::Flatland> flatland,
|
||||
fml::closure error_callback,
|
||||
on_frame_presented_event on_frame_presented_callback,
|
||||
uint64_t max_frames_in_flight,
|
||||
fml::TimeDelta vsync_offset);
|
||||
FlatlandConnection(std::string debug_label,
|
||||
fuchsia::ui::composition::FlatlandHandle flatland,
|
||||
fml::closure error_callback,
|
||||
on_frame_presented_event on_frame_presented_callback,
|
||||
uint64_t max_frames_in_flight,
|
||||
fml::TimeDelta vsync_offset);
|
||||
|
||||
~FlatlandConnection();
|
||||
|
||||
|
||||
@@ -13,13 +13,13 @@ FlatlandPlatformView::FlatlandPlatformView(
|
||||
flutter::TaskRunners task_runners,
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
std::shared_ptr<flutter::ExternalViewEmbedder> external_view_embedder,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input::ImeService> ime_service,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused> view_ref_focused,
|
||||
fidl::InterfaceHandle<fuchsia::ui::composition::ParentViewportWatcher>
|
||||
fuchsia::ui::input::ImeServiceHandle ime_service,
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard,
|
||||
fuchsia::ui::pointer::TouchSourceHandle touch_source,
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source,
|
||||
fuchsia::ui::views::FocuserHandle focuser,
|
||||
fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused,
|
||||
fuchsia::ui::composition::ParentViewportWatcherHandle
|
||||
parent_viewport_watcher,
|
||||
OnEnableWireframe wireframe_enabled_callback,
|
||||
OnCreateFlatlandView on_create_view_callback,
|
||||
|
||||
@@ -27,14 +27,13 @@ class FlatlandPlatformView final : public flutter_runner::PlatformView {
|
||||
flutter::TaskRunners task_runners,
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
std::shared_ptr<flutter::ExternalViewEmbedder> external_view_embedder,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input::ImeService> ime_service,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused>
|
||||
view_ref_focused,
|
||||
fidl::InterfaceHandle<fuchsia::ui::composition::ParentViewportWatcher>
|
||||
fuchsia::ui::input::ImeServiceHandle ime_service,
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard,
|
||||
fuchsia::ui::pointer::TouchSourceHandle touch_source,
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source,
|
||||
fuchsia::ui::views::FocuserHandle focuser,
|
||||
fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused,
|
||||
fuchsia::ui::composition::ParentViewportWatcherHandle
|
||||
parent_viewport_watcher,
|
||||
OnEnableWireframe wireframe_enabled_callback,
|
||||
OnCreateFlatlandView on_create_view_callback,
|
||||
|
||||
@@ -19,8 +19,7 @@ class MockSemanticsManager
|
||||
// |fuchsia::accessibility::semantics::SemanticsManager|:
|
||||
void RegisterViewForSemantics(
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
fidl::InterfaceHandle<fuchsia::accessibility::semantics::SemanticListener>
|
||||
handle,
|
||||
fuchsia::accessibility::semantics::SemanticListenerHandle handle,
|
||||
fidl::InterfaceRequest<fuchsia::accessibility::semantics::SemanticTree>
|
||||
semantic_tree) override {
|
||||
tree_binding_.Bind(std::move(semantic_tree));
|
||||
|
||||
@@ -16,9 +16,8 @@ namespace flutter_runner {
|
||||
|
||||
class FocusDelegate {
|
||||
public:
|
||||
FocusDelegate(fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused>
|
||||
view_ref_focused,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser)
|
||||
FocusDelegate(fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused,
|
||||
fuchsia::ui::views::FocuserHandle focuser)
|
||||
: view_ref_focused_(view_ref_focused.Bind()), focuser_(focuser.Bind()) {}
|
||||
|
||||
/// Continuously watches the host viewRef for focus events, invoking a
|
||||
|
||||
@@ -13,12 +13,12 @@ GfxPlatformView::GfxPlatformView(
|
||||
flutter::TaskRunners task_runners,
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
std::shared_ptr<flutter::ExternalViewEmbedder> external_view_embedder,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input::ImeService> ime_service,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused> view_ref_focused,
|
||||
fuchsia::ui::input::ImeServiceHandle ime_service,
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard,
|
||||
fuchsia::ui::pointer::TouchSourceHandle touch_source,
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source,
|
||||
fuchsia::ui::views::FocuserHandle focuser,
|
||||
fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused,
|
||||
fidl::InterfaceRequest<fuchsia::ui::scenic::SessionListener>
|
||||
session_listener_request,
|
||||
fit::closure on_session_listener_error_callback,
|
||||
|
||||
@@ -30,13 +30,12 @@ class GfxPlatformView final : public flutter_runner::PlatformView,
|
||||
flutter::TaskRunners task_runners,
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
std::shared_ptr<flutter::ExternalViewEmbedder> external_view_embedder,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input::ImeService> ime_service,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused>
|
||||
view_ref_focused,
|
||||
fuchsia::ui::input::ImeServiceHandle ime_service,
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard,
|
||||
fuchsia::ui::pointer::TouchSourceHandle touch_source,
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source,
|
||||
fuchsia::ui::views::FocuserHandle focuser,
|
||||
fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused,
|
||||
fidl::InterfaceRequest<fuchsia::ui::scenic::SessionListener>
|
||||
session_listener_request,
|
||||
fit::closure on_session_listener_error_callback,
|
||||
|
||||
@@ -187,7 +187,7 @@ fml::TimePoint GfxSessionConnection::SnapToNextPhase(
|
||||
GfxSessionConnection::GfxSessionConnection(
|
||||
std::string debug_label,
|
||||
inspect::Node inspect_node,
|
||||
fidl::InterfaceHandle<fuchsia::ui::scenic::Session> session,
|
||||
fuchsia::ui::scenic::SessionHandle session,
|
||||
fml::closure session_error_callback,
|
||||
on_frame_presented_event on_frame_presented_callback,
|
||||
uint64_t max_frames_in_flight,
|
||||
|
||||
@@ -74,14 +74,13 @@ class GfxSessionConnection final {
|
||||
fuchsia::scenic::scheduling::FuturePresentationTimes future_info,
|
||||
fuchsia::scenic::scheduling::PresentationInfo& presentation_info);
|
||||
|
||||
GfxSessionConnection(
|
||||
std::string debug_label,
|
||||
inspect::Node inspect_node,
|
||||
fidl::InterfaceHandle<fuchsia::ui::scenic::Session> session,
|
||||
fml::closure session_error_callback,
|
||||
on_frame_presented_event on_frame_presented_callback,
|
||||
uint64_t max_frames_in_flight,
|
||||
fml::TimeDelta vsync_offset);
|
||||
GfxSessionConnection(std::string debug_label,
|
||||
inspect::Node inspect_node,
|
||||
fuchsia::ui::scenic::SessionHandle session,
|
||||
fml::closure session_error_callback,
|
||||
on_frame_presented_event on_frame_presented_callback,
|
||||
uint64_t max_frames_in_flight,
|
||||
fml::TimeDelta vsync_offset);
|
||||
|
||||
~GfxSessionConnection();
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace flutter_runner {
|
||||
|
||||
IsolateConfigurator::IsolateConfigurator(
|
||||
UniqueFDIONS fdio_ns,
|
||||
fidl::InterfaceHandle<fuchsia::sys::Environment> environment,
|
||||
fuchsia::sys::EnvironmentHandle environment,
|
||||
zx::channel directory_request,
|
||||
zx::eventpair view_ref)
|
||||
: fdio_ns_(std::move(fdio_ns)),
|
||||
|
||||
@@ -18,11 +18,10 @@ namespace flutter_runner {
|
||||
// the root isolate.
|
||||
class IsolateConfigurator final {
|
||||
public:
|
||||
IsolateConfigurator(
|
||||
UniqueFDIONS fdio_ns,
|
||||
fidl::InterfaceHandle<fuchsia::sys::Environment> environment,
|
||||
zx::channel directory_request,
|
||||
zx::eventpair view_ref);
|
||||
IsolateConfigurator(UniqueFDIONS fdio_ns,
|
||||
fuchsia::sys::EnvironmentHandle environment,
|
||||
zx::channel directory_request,
|
||||
zx::eventpair view_ref);
|
||||
|
||||
~IsolateConfigurator();
|
||||
|
||||
@@ -33,7 +32,7 @@ class IsolateConfigurator final {
|
||||
private:
|
||||
bool used_ = false;
|
||||
UniqueFDIONS fdio_ns_;
|
||||
fidl::InterfaceHandle<fuchsia::sys::Environment> environment_;
|
||||
fuchsia::sys::EnvironmentHandle environment_;
|
||||
zx::channel directory_request_;
|
||||
zx::eventpair view_ref_;
|
||||
|
||||
|
||||
@@ -55,12 +55,12 @@ PlatformView::PlatformView(
|
||||
flutter::TaskRunners task_runners,
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
std::shared_ptr<flutter::ExternalViewEmbedder> external_view_embedder,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input::ImeService> ime_service,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused> view_ref_focused,
|
||||
fuchsia::ui::input::ImeServiceHandle ime_service,
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard,
|
||||
fuchsia::ui::pointer::TouchSourceHandle touch_source,
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source,
|
||||
fuchsia::ui::views::FocuserHandle focuser,
|
||||
fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused,
|
||||
OnEnableWireframe wireframe_enabled_callback,
|
||||
OnUpdateView on_update_view_callback,
|
||||
OnCreateSurface on_create_surface_callback,
|
||||
|
||||
@@ -68,13 +68,12 @@ class PlatformView : public flutter::PlatformView,
|
||||
flutter::TaskRunners task_runners,
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
std::shared_ptr<flutter::ExternalViewEmbedder> external_view_embedder,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input::ImeService> ime_service,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser,
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused>
|
||||
view_ref_focused,
|
||||
fuchsia::ui::input::ImeServiceHandle ime_service,
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard,
|
||||
fuchsia::ui::pointer::TouchSourceHandle touch_source,
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source,
|
||||
fuchsia::ui::views::FocuserHandle focuser,
|
||||
fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused,
|
||||
OnEnableWireframe wireframe_enabled_callback,
|
||||
OnUpdateView on_update_view_callback,
|
||||
OnCreateSurface on_create_surface_callback,
|
||||
|
||||
@@ -194,10 +194,9 @@ class MockKeyboard : public fuchsia::ui::input3::testing::Keyboard_TestBase {
|
||||
: keyboard_(this, std::move(keyboard)) {}
|
||||
~MockKeyboard() = default;
|
||||
|
||||
void AddListener(
|
||||
fuchsia::ui::views::ViewRef view_ref,
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::KeyboardListener> listener,
|
||||
AddListenerCallback callback) override {
|
||||
void AddListener(fuchsia::ui::views::ViewRef view_ref,
|
||||
fuchsia::ui::input3::KeyboardListenerHandle listener,
|
||||
AddListenerCallback callback) override {
|
||||
FML_CHECK(!listener_.is_bound());
|
||||
|
||||
listener_ = listener.Bind();
|
||||
@@ -235,38 +234,36 @@ class PlatformViewBuilder {
|
||||
}
|
||||
|
||||
PlatformViewBuilder& SetImeService(
|
||||
fidl::InterfaceHandle<fuchsia::ui::input::ImeService> ime_service) {
|
||||
fuchsia::ui::input::ImeServiceHandle ime_service) {
|
||||
ime_service_ = std::move(ime_service);
|
||||
return *this;
|
||||
}
|
||||
|
||||
PlatformViewBuilder& SetKeyboard(
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard) {
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard) {
|
||||
keyboard_ = std::move(keyboard);
|
||||
return *this;
|
||||
}
|
||||
|
||||
PlatformViewBuilder& SetTouchSource(
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source) {
|
||||
fuchsia::ui::pointer::TouchSourceHandle touch_source) {
|
||||
touch_source_ = std::move(touch_source);
|
||||
return *this;
|
||||
}
|
||||
|
||||
PlatformViewBuilder& SetMouseSource(
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source) {
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source) {
|
||||
mouse_source_ = std::move(mouse_source);
|
||||
return *this;
|
||||
}
|
||||
|
||||
PlatformViewBuilder& SetFocuser(
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser) {
|
||||
PlatformViewBuilder& SetFocuser(fuchsia::ui::views::FocuserHandle focuser) {
|
||||
focuser_ = std::move(focuser);
|
||||
return *this;
|
||||
}
|
||||
|
||||
PlatformViewBuilder& SetViewRefFocused(
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused>
|
||||
view_ref_focused) {
|
||||
fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused) {
|
||||
view_ref_focused_ = std::move(view_ref_focused);
|
||||
return *this;
|
||||
}
|
||||
@@ -337,12 +334,12 @@ class PlatformViewBuilder {
|
||||
|
||||
std::shared_ptr<flutter::ExternalViewEmbedder>
|
||||
external_external_view_embedder_;
|
||||
fidl::InterfaceHandle<fuchsia::ui::input::ImeService> ime_service_;
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard_;
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source_;
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source_;
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::ViewRefFocused> view_ref_focused_;
|
||||
fidl::InterfaceHandle<fuchsia::ui::views::Focuser> focuser_;
|
||||
fuchsia::ui::input::ImeServiceHandle ime_service_;
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard_;
|
||||
fuchsia::ui::pointer::TouchSourceHandle touch_source_;
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source_;
|
||||
fuchsia::ui::views::ViewRefFocusedHandle view_ref_focused_;
|
||||
fuchsia::ui::views::FocuserHandle focuser_;
|
||||
fidl::InterfaceRequest<fuchsia::ui::scenic::SessionListener>
|
||||
session_listener_request_;
|
||||
fit::closure on_session_listener_error_callback_;
|
||||
@@ -1242,7 +1239,7 @@ TEST_F(PlatformViewTests, OnKeyEvent) {
|
||||
flutter::TaskRunners task_runners =
|
||||
flutter::TaskRunners("test_runners", nullptr, nullptr, nullptr, nullptr);
|
||||
|
||||
fidl::InterfaceHandle<fuchsia::ui::input3::Keyboard> keyboard_service;
|
||||
fuchsia::ui::input3::KeyboardHandle keyboard_service;
|
||||
MockKeyboard keyboard(keyboard_service.NewRequest());
|
||||
|
||||
flutter_runner::GfxPlatformView platform_view =
|
||||
|
||||
@@ -34,9 +34,8 @@ struct IxnHasher {
|
||||
// processing and dispatch.
|
||||
class PointerDelegate {
|
||||
public:
|
||||
PointerDelegate(
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> touch_source,
|
||||
fidl::InterfaceHandle<fuchsia::ui::pointer::MouseSource> mouse_source)
|
||||
PointerDelegate(fuchsia::ui::pointer::TouchSourceHandle touch_source,
|
||||
fuchsia::ui::pointer::MouseSourceHandle mouse_source)
|
||||
: touch_source_(touch_source.Bind()),
|
||||
mouse_source_(mouse_source.Bind()) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user