| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 const ViewHierarchyChangedDetails& details) OVERRIDE; | 278 const ViewHierarchyChangedDetails& details) OVERRIDE; |
| 279 virtual const char* GetClassName() const OVERRIDE; | 279 virtual const char* GetClassName() const OVERRIDE; |
| 280 | 280 |
| 281 // The object that actually implements the native text field. | 281 // The object that actually implements the native text field. |
| 282 NativeTextfieldWrapper* native_wrapper_; | 282 NativeTextfieldWrapper* native_wrapper_; |
| 283 | 283 |
| 284 private: | 284 private: |
| 285 // Returns the insets to the rectangle where text is actually painted. | 285 // Returns the insets to the rectangle where text is actually painted. |
| 286 gfx::Insets GetTextInsets() const; | 286 gfx::Insets GetTextInsets() const; |
| 287 | 287 |
| 288 // Handles a request to change the value of this text field from software |
| 289 // using an accessibility API (typically automation software, screen readers |
| 290 // don't normally use this). Sets the value and clears the selection. |
| 291 void AccessibilitySetValue(const string16& new_value); |
| 292 |
| 288 // This is the current listener for events from this Textfield. | 293 // This is the current listener for events from this Textfield. |
| 289 TextfieldController* controller_; | 294 TextfieldController* controller_; |
| 290 | 295 |
| 291 // The mask of style options for this Textfield. | 296 // The mask of style options for this Textfield. |
| 292 StyleFlags style_; | 297 StyleFlags style_; |
| 293 | 298 |
| 294 // The fonts used to render the text in the Textfield. | 299 // The fonts used to render the text in the Textfield. |
| 295 gfx::FontList font_list_; | 300 gfx::FontList font_list_; |
| 296 | 301 |
| 297 // The text displayed in the Textfield. | 302 // The text displayed in the Textfield. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 348 |
| 344 // The duration to reveal the last typed char for obscured textfields. | 349 // The duration to reveal the last typed char for obscured textfields. |
| 345 base::TimeDelta obscured_reveal_duration_; | 350 base::TimeDelta obscured_reveal_duration_; |
| 346 | 351 |
| 347 DISALLOW_COPY_AND_ASSIGN(Textfield); | 352 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 348 }; | 353 }; |
| 349 | 354 |
| 350 } // namespace views | 355 } // namespace views |
| 351 | 356 |
| 352 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 357 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |