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

Unified Diff: ui/views/controls/textfield/textfield.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/table/table_view.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index 44b37d2c19e070e2892219a432fe0fe45205e17c..0d77946328f05a0b58694fd2c288787389ca8b69 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -238,7 +238,8 @@ class VIEWS_EXPORT Textfield : public View,
void OnDragExited() override;
int OnPerformDrop(const ui::DropTargetEvent& event) override;
void OnDragDone() override;
- void GetAccessibleState(ui::AXViewState* state) override;
+ void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
+ bool HandleAccessibleAction(const ui::AXActionData& action_data) override;
void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
bool GetNeedsNotificationWhenVisibleBoundsChange() const override;
void OnVisibleBoundsChanged() override;
@@ -363,14 +364,6 @@ class VIEWS_EXPORT Textfield : public View,
bool PasteSelectionClipboard() override;
void UpdateSelectionClipboard() override;
- // Handles a request to change the value of this text field from software
- // using an accessibility API (typically automation software, screen readers
- // don't normally use this). If |clear_first| is true, this replaces all text
- // with the |new_value|. Otherwise this inserts |new_value| at the cursor
- // position, replacing any selected text. The cursor is placed at the end of
- // |new_value|.
- void AccessibilitySetValue(const base::string16& new_value, bool clear_first);
-
// Updates the painted background color.
void UpdateBackgroundColor();
@@ -380,7 +373,7 @@ class VIEWS_EXPORT Textfield : public View,
// Does necessary updates when the text and/or cursor position changes.
void UpdateAfterChange(bool text_changed, bool cursor_changed);
- // A callback function to periodically update the cursor state.
+ // A callback function to periodically update the cursor node_data.
void UpdateCursor();
// Repaint the cursor.
« no previous file with comments | « ui/views/controls/table/table_view.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698