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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 void ConvertPointToScreen(gfx::Point* point) override; | 265 void ConvertPointToScreen(gfx::Point* point) override; |
266 void ConvertPointFromScreen(gfx::Point* point) override; | 266 void ConvertPointFromScreen(gfx::Point* point) override; |
267 bool DrawsHandles() override; | 267 bool DrawsHandles() override; |
268 void OpenContextMenu(const gfx::Point& anchor) override; | 268 void OpenContextMenu(const gfx::Point& anchor) override; |
269 void DestroyTouchSelection() override; | 269 void DestroyTouchSelection() override; |
270 | 270 |
271 // ui::SimpleMenuModel::Delegate overrides: | 271 // ui::SimpleMenuModel::Delegate overrides: |
272 bool IsCommandIdChecked(int command_id) const override; | 272 bool IsCommandIdChecked(int command_id) const override; |
273 bool IsCommandIdEnabled(int command_id) const override; | 273 bool IsCommandIdEnabled(int command_id) const override; |
274 bool GetAcceleratorForCommandId(int command_id, | 274 bool GetAcceleratorForCommandId(int command_id, |
275 ui::Accelerator* accelerator) override; | 275 ui::Accelerator* accelerator) const override; |
276 void ExecuteCommand(int command_id, int event_flags) override; | 276 void ExecuteCommand(int command_id, int event_flags) override; |
277 | 277 |
278 // ui::TextInputClient overrides: | 278 // ui::TextInputClient overrides: |
279 void SetCompositionText(const ui::CompositionText& composition) override; | 279 void SetCompositionText(const ui::CompositionText& composition) override; |
280 void ConfirmCompositionText() override; | 280 void ConfirmCompositionText() override; |
281 void ClearCompositionText() override; | 281 void ClearCompositionText() override; |
282 void InsertText(const base::string16& text) override; | 282 void InsertText(const base::string16& text) override; |
283 void InsertChar(const ui::KeyEvent& event) override; | 283 void InsertChar(const ui::KeyEvent& event) override; |
284 ui::TextInputType GetTextInputType() const override; | 284 ui::TextInputType GetTextInputType() const override; |
285 ui::TextInputMode GetTextInputMode() const override; | 285 ui::TextInputMode GetTextInputMode() const override; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 | 484 |
485 // Used to bind callback functions to this object. | 485 // Used to bind callback functions to this object. |
486 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 486 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
487 | 487 |
488 DISALLOW_COPY_AND_ASSIGN(Textfield); | 488 DISALLOW_COPY_AND_ASSIGN(Textfield); |
489 }; | 489 }; |
490 | 490 |
491 } // namespace views | 491 } // namespace views |
492 | 492 |
493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |