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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 // Overridden from ui::TextInputClient: | 179 // Overridden from ui::TextInputClient: |
180 virtual void SetCompositionText( | 180 virtual void SetCompositionText( |
181 const ui::CompositionText& composition) OVERRIDE; | 181 const ui::CompositionText& composition) OVERRIDE; |
182 virtual void ConfirmCompositionText() OVERRIDE; | 182 virtual void ConfirmCompositionText() OVERRIDE; |
183 virtual void ClearCompositionText() OVERRIDE; | 183 virtual void ClearCompositionText() OVERRIDE; |
184 virtual void InsertText(const string16& text) OVERRIDE; | 184 virtual void InsertText(const string16& text) OVERRIDE; |
185 virtual void InsertChar(char16 ch, int flags) OVERRIDE; | 185 virtual void InsertChar(char16 ch, int flags) OVERRIDE; |
186 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; | 186 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; |
187 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 187 virtual ui::TextInputType GetTextInputType() const OVERRIDE; |
| 188 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; |
188 virtual bool CanComposeInline() const OVERRIDE; | 189 virtual bool CanComposeInline() const OVERRIDE; |
189 virtual gfx::Rect GetCaretBounds() OVERRIDE; | 190 virtual gfx::Rect GetCaretBounds() OVERRIDE; |
190 virtual bool GetCompositionCharacterBounds(uint32 index, | 191 virtual bool GetCompositionCharacterBounds(uint32 index, |
191 gfx::Rect* rect) OVERRIDE; | 192 gfx::Rect* rect) OVERRIDE; |
192 virtual bool HasCompositionText() OVERRIDE; | 193 virtual bool HasCompositionText() OVERRIDE; |
193 virtual bool GetTextRange(ui::Range* range) OVERRIDE; | 194 virtual bool GetTextRange(ui::Range* range) OVERRIDE; |
194 virtual bool GetCompositionTextRange(ui::Range* range) OVERRIDE; | 195 virtual bool GetCompositionTextRange(ui::Range* range) OVERRIDE; |
195 virtual bool GetSelectionRange(ui::Range* range) OVERRIDE; | 196 virtual bool GetSelectionRange(ui::Range* range) OVERRIDE; |
196 virtual bool SetSelectionRange(const ui::Range& range) OVERRIDE; | 197 virtual bool SetSelectionRange(const ui::Range& range) OVERRIDE; |
197 virtual bool DeleteRange(const ui::Range& range) OVERRIDE; | 198 virtual bool DeleteRange(const ui::Range& range) OVERRIDE; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 // obscured text. When the timer is running, the last typed char is shown | 338 // obscured text. When the timer is running, the last typed char is shown |
338 // and when the time expires, the last typed char is obscured. | 339 // and when the time expires, the last typed char is obscured. |
339 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_; | 340 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_; |
340 | 341 |
341 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 342 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
342 }; | 343 }; |
343 | 344 |
344 } // namespace views | 345 } // namespace views |
345 | 346 |
346 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 347 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
OLD | NEW |