Chromium Code Reviews| Index: ui/views/controls/textfield/textfield.h |
| diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h |
| index 4b453cb48a32a5ff59ff05dd7c9aef00cf255c1a..03af1c05162eceb3710e67853241454d90fe5666 100644 |
| --- a/ui/views/controls/textfield/textfield.h |
| +++ b/ui/views/controls/textfield/textfield.h |
| @@ -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" |
| @@ -41,7 +42,8 @@ class ImageView; |
| class TextfieldController; |
| // This class implements a View that wraps a native text (edit) field. |
| -class VIEWS_EXPORT Textfield : public View { |
| +class VIEWS_EXPORT Textfield |
|
msw
2013/09/04 20:18:20
nit: you don't need to split this line anymore.
dmazzoni
2013/09/04 22:01:09
Done.
|
| + : public View { |
| public: |
| // The textfield's class name. |
| static const char kViewClassName[]; |
| @@ -285,6 +287,11 @@ class VIEWS_EXPORT Textfield : public View { |
| // 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_; |
| @@ -344,6 +351,9 @@ class VIEWS_EXPORT Textfield : public View { |
| // 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); |
| }; |