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

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

Issue 23983039: Merge 221688 "Implement put_accvalue for textfields and location..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1599/src/
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/textfield/textfield.h
===================================================================
--- ui/views/controls/textfield/textfield.h (revision 223520)
+++ ui/views/controls/textfield/textfield.h (working copy)
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "build/build_config.h"
@@ -288,6 +289,11 @@
// Returns the insets to the rectangle where text is actually painted.
gfx::Insets GetTextInsets() const;
+ // 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). Sets the value and clears the selection.
+ void AccessibilitySetValue(const string16& new_value);
+
// This is the current listener for events from this Textfield.
TextfieldController* controller_;
@@ -347,6 +353,9 @@
// The duration to reveal the last typed char for obscured textfields.
base::TimeDelta obscured_reveal_duration_;
+ // Used to bind callback functions to this object.
+ base::WeakPtrFactory<Textfield> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(Textfield);
};

Powered by Google App Engine
This is Rietveld 408576698