Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: ui/accessibility/platform/ax_platform_node_delegate.h

Issue 2795843002: Move implementation of accessibility actions to views::View (Closed)
Patch Set: Fix win compile Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
7 7
8 #include "ui/accessibility/ax_enums.h" 8 #include "ui/accessibility/ax_enums.h"
9 #include "ui/accessibility/ax_export.h" 9 #include "ui/accessibility/ax_export.h"
10 #include "ui/gfx/geometry/vector2d.h" 10 #include "ui/gfx/geometry/vector2d.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // 74 //
75 75
76 // Return the platform-native GUI object that should be used as a target 76 // Return the platform-native GUI object that should be used as a target
77 // for accessibility events. 77 // for accessibility events.
78 virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() = 0; 78 virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() = 0;
79 79
80 // 80 //
81 // Actions. 81 // Actions.
82 // 82 //
83 83
84 // Calls one of the methods below to perform an accessibility action, 84 // Perform an accessibility action, switching on the ui::AXAction
85 // switching on the ui::AXAction provided in |data|. 85 // provided in |data|.
86 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0; 86 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0;
87
88 // Perform the default action, e.g. click a button, follow a link, or
89 // toggle a checkbox.
90 virtual void DoDefaultAction() = 0;
91 }; 87 };
92 88
93 } // namespace ui 89 } // namespace ui
94 90
95 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 91 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility.cc ('k') | ui/accessibility/platform/ax_platform_node_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698