Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter_platform_node_delegate_windows.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_FLUTTER_PLATFORM_NODE_DELEGATE_WINDOWS_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_PLATFORM_NODE_DELEGATE_WINDOWS_H_
7
13
14namespace flutter {
15
16// The Windows implementation of FlutterPlatformNodeDelegate.
17//
18// This class implements a wrapper around the Windows accessibility objects
19// that compose the accessibility tree.
21 public:
22 FlutterPlatformNodeDelegateWindows(std::weak_ptr<AccessibilityBridge> bridge,
25
26 bool IsIAccessibleExEnabled() override;
27
28 // |ui::AXPlatformNodeDelegate|
29 void Init(std::weak_ptr<OwnerBridge> bridge, ui::AXNode* node) override;
30
31 // |ui::AXPlatformNodeDelegate|
33
34 // |ui::AXPlatformNodeDelegate|
36 int screen_physical_pixel_x,
37 int screen_physical_pixel_y) const override;
38
39 // |FlutterPlatformNodeDelegate|
41 const ui::AXCoordinateSystem coordinate_system,
42 const ui::AXClippingBehavior clipping_behavior,
43 ui::AXOffscreenResult* offscreen_result) const override;
44
45 // Dispatches a Windows accessibility event of the specified type, generated
46 // by the accessibility node associated with this object. This is a
47 // convenience wrapper around |NotifyWinEvent|.
49
50 // Sets the accessibility focus to the accessibility node associated with
51 // this object.
52 void SetFocus();
53
54 // | AXPlatformNodeDelegate |
55 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override;
56
57 // | FlutterPlatformNodeDelegate |
58 ui::AXPlatformNode* GetPlatformNode() const override;
59
60 private:
61 ui::AXPlatformNode* ax_platform_node_;
62 std::weak_ptr<AccessibilityBridge> bridge_;
63 FlutterWindowsView* view_;
64
66};
67
68} // namespace flutter
69
70#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_PLATFORM_NODE_DELEGATE_WINDOWS_H_
ax::mojom::Event event_type
void Init(std::weak_ptr< OwnerBridge > bridge, ui::AXNode *node) override
Called only once, immediately after construction. The constructor doesn't take any arguments because ...
virtual void DispatchWinAccessibilityEvent(ax::mojom::Event event_type)
gfx::NativeViewAccessible HitTestSync(int screen_physical_pixel_x, int screen_physical_pixel_y) const override
gfx::Rect GetBoundsRect(const ui::AXCoordinateSystem coordinate_system, const ui::AXClippingBehavior clipping_behavior, ui::AXOffscreenResult *offscreen_result) const override
FlView * view
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
UnimplementedNativeViewAccessible * NativeViewAccessible