| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_NATIVE_TEXTFIELD_VIEWS_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // Updates the obscured state of the text for passwords, etc. | 139 // Updates the obscured state of the text for passwords, etc. |
| 140 void UpdateIsObscured(); | 140 void UpdateIsObscured(); |
| 141 | 141 |
| 142 // Updates the enabled state. | 142 // Updates the enabled state. |
| 143 void UpdateEnabled(); | 143 void UpdateEnabled(); |
| 144 | 144 |
| 145 // Updates the horizontal and vertical margins. | 145 // Updates the horizontal and vertical margins. |
| 146 void UpdateHorizontalMargins(); | 146 void UpdateHorizontalMargins(); |
| 147 void UpdateVerticalMargins(); | 147 void UpdateVerticalMargins(); |
| 148 | 148 |
| 149 // Displays a virtual keyboard or alternate input view if enabled. |
| 150 void ShowImeIfNeeded(); |
| 151 |
| 149 // Returns whether or not an IME is composing text. | 152 // Returns whether or not an IME is composing text. |
| 150 bool IsIMEComposing() const; | 153 bool IsIMEComposing() const; |
| 151 | 154 |
| 152 // Gets the selected logical text range. | 155 // Gets the selected logical text range. |
| 153 const gfx::Range& GetSelectedRange() const; | 156 const gfx::Range& GetSelectedRange() const; |
| 154 | 157 |
| 155 // Selects the specified logical text range. | 158 // Selects the specified logical text range. |
| 156 void SelectRange(const gfx::Range& range); | 159 void SelectRange(const gfx::Range& range); |
| 157 | 160 |
| 158 // Gets the text selection model. | 161 // Gets the text selection model. |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // obscured text. When the timer is running, the last typed char is shown | 391 // obscured text. When the timer is running, the last typed char is shown |
| 389 // and when the time expires, the last typed char is obscured. | 392 // and when the time expires, the last typed char is obscured. |
| 390 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_; | 393 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_; |
| 391 | 394 |
| 392 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 395 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
| 393 }; | 396 }; |
| 394 | 397 |
| 395 } // namespace views | 398 } // namespace views |
| 396 | 399 |
| 397 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 400 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| OLD | NEW |