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 bool GetAcceleratorForCommandId(int command_id, | 278 bool GetAcceleratorForCommandId(int command_id, |
279 ui::Accelerator* accelerator) override; | 279 ui::Accelerator* accelerator) override; |
280 void ExecuteCommand(int command_id, int event_flags) override; | 280 void ExecuteCommand(int command_id, int event_flags) override; |
281 | 281 |
282 // ui::TextInputClient overrides: | 282 // ui::TextInputClient overrides: |
283 void SetCompositionText(const ui::CompositionText& composition) override; | 283 void SetCompositionText(const ui::CompositionText& composition) override; |
284 void ConfirmCompositionText() override; | 284 void ConfirmCompositionText() override; |
285 void ClearCompositionText() override; | 285 void ClearCompositionText() override; |
286 void InsertText(const base::string16& text) override; | 286 void InsertText(const base::string16& text) override; |
287 void InsertChar(base::char16 ch, int flags) override; | 287 void InsertChar(base::char16 ch, int flags) override; |
288 gfx::NativeWindow GetAttachedWindow() const override; | |
289 ui::TextInputType GetTextInputType() const override; | 288 ui::TextInputType GetTextInputType() const override; |
290 ui::TextInputMode GetTextInputMode() const override; | 289 ui::TextInputMode GetTextInputMode() const override; |
291 int GetTextInputFlags() const override; | 290 int GetTextInputFlags() const override; |
292 bool CanComposeInline() const override; | 291 bool CanComposeInline() const override; |
293 gfx::Rect GetCaretBounds() const override; | 292 gfx::Rect GetCaretBounds() const override; |
294 bool GetCompositionCharacterBounds(uint32 index, | 293 bool GetCompositionCharacterBounds(uint32 index, |
295 gfx::Rect* rect) const override; | 294 gfx::Rect* rect) const override; |
296 bool HasCompositionText() const override; | 295 bool HasCompositionText() const override; |
297 bool GetTextRange(gfx::Range* range) const override; | 296 bool GetTextRange(gfx::Range* range) const override; |
298 bool GetCompositionTextRange(gfx::Range* range) const override; | 297 bool GetCompositionTextRange(gfx::Range* range) const override; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 | 484 |
486 // Used to bind callback functions to this object. | 485 // Used to bind callback functions to this object. |
487 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 486 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
488 | 487 |
489 DISALLOW_COPY_AND_ASSIGN(Textfield); | 488 DISALLOW_COPY_AND_ASSIGN(Textfield); |
490 }; | 489 }; |
491 | 490 |
492 } // namespace views | 491 } // namespace views |
493 | 492 |
494 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |