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

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

Issue 2490073002: MacViews/a11y: Allow accessibility clients to focus and unfocus focusable Views. (Closed)
Patch Set: Fix test. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Change the value of a control, such as the text content of a text field. 87 // Change the value of a control, such as the text content of a text field.
88 // If |clear_first| is true, this replaces all text with the |new_value|. 88 // If |clear_first| is true, this replaces all text with the |new_value|.
89 // Otherwise this inserts |new_value| at the cursor position, replacing any 89 // Otherwise this inserts |new_value| at the cursor position, replacing any
90 // selected text. The cursor is placed at the end of |new_value|. 90 // selected text. The cursor is placed at the end of |new_value|.
91 virtual bool SetStringValue(const base::string16& new_value, 91 virtual bool SetStringValue(const base::string16& new_value,
92 bool clear_first) = 0; 92 bool clear_first) = 0;
93 93
94 // Whether SetStringValue() is callable, i.e. if the string value is not read 94 // Whether SetStringValue() is callable, i.e. if the string value is not read
95 // only and if the callback exists. 95 // only and if the callback exists.
96 virtual bool CanSetStringValue() = 0; 96 virtual bool CanSetStringValue() = 0;
97
98 // Focus or unfocus a View, checking if the View is focusable first.
99 virtual bool SetFocused(bool focused) = 0;
97 }; 100 };
98 101
99 } // namespace ui 102 } // namespace ui
100 103
101 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 104 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698