| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // View overrides: | 211 // View overrides: |
| 212 gfx::Insets GetInsets() const override; | 212 gfx::Insets GetInsets() const override; |
| 213 int GetBaseline() const override; | 213 int GetBaseline() const override; |
| 214 gfx::Size GetPreferredSize() const override; | 214 gfx::Size GetPreferredSize() const override; |
| 215 const char* GetClassName() const override; | 215 const char* GetClassName() const override; |
| 216 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; | 216 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; |
| 217 bool OnMousePressed(const ui::MouseEvent& event) override; | 217 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 218 bool OnMouseDragged(const ui::MouseEvent& event) override; | 218 bool OnMouseDragged(const ui::MouseEvent& event) override; |
| 219 void OnMouseReleased(const ui::MouseEvent& event) override; | 219 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 220 bool OnKeyPressed(const ui::KeyEvent& event) override; | 220 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 221 ui::TextInputClient* GetTextInputClient() override; | |
| 222 void OnGestureEvent(ui::GestureEvent* event) override; | 221 void OnGestureEvent(ui::GestureEvent* event) override; |
| 223 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 222 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 224 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 223 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
| 225 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; | 224 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; |
| 226 bool GetDropFormats( | 225 bool GetDropFormats( |
| 227 int* formats, | 226 int* formats, |
| 228 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) override; | 227 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) override; |
| 229 bool CanDrop(const ui::OSExchangeData& data) override; | 228 bool CanDrop(const ui::OSExchangeData& data) override; |
| 230 int OnDragUpdated(const ui::DropTargetEvent& event) override; | 229 int OnDragUpdated(const ui::DropTargetEvent& event) override; |
| 231 void OnDragExited() override; | 230 void OnDragExited() override; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 bool GetAcceleratorForCommandId(int command_id, | 277 bool GetAcceleratorForCommandId(int command_id, |
| 279 ui::Accelerator* accelerator) override; | 278 ui::Accelerator* accelerator) override; |
| 280 void ExecuteCommand(int command_id, int event_flags) override; | 279 void ExecuteCommand(int command_id, int event_flags) override; |
| 281 | 280 |
| 282 // ui::TextInputClient overrides: | 281 // ui::TextInputClient overrides: |
| 283 void SetCompositionText(const ui::CompositionText& composition) override; | 282 void SetCompositionText(const ui::CompositionText& composition) override; |
| 284 void ConfirmCompositionText() override; | 283 void ConfirmCompositionText() override; |
| 285 void ClearCompositionText() override; | 284 void ClearCompositionText() override; |
| 286 void InsertText(const base::string16& text) override; | 285 void InsertText(const base::string16& text) override; |
| 287 void InsertChar(base::char16 ch, int flags) override; | 286 void InsertChar(base::char16 ch, int flags) override; |
| 288 gfx::NativeWindow GetAttachedWindow() const override; | |
| 289 ui::TextInputType GetTextInputType() const override; | 287 ui::TextInputType GetTextInputType() const override; |
| 290 ui::TextInputMode GetTextInputMode() const override; | 288 ui::TextInputMode GetTextInputMode() const override; |
| 291 int GetTextInputFlags() const override; | 289 int GetTextInputFlags() const override; |
| 292 bool CanComposeInline() const override; | 290 bool CanComposeInline() const override; |
| 293 gfx::Rect GetCaretBounds() const override; | 291 gfx::Rect GetCaretBounds() const override; |
| 294 bool GetCompositionCharacterBounds(uint32 index, | 292 bool GetCompositionCharacterBounds(uint32 index, |
| 295 gfx::Rect* rect) const override; | 293 gfx::Rect* rect) const override; |
| 296 bool HasCompositionText() const override; | 294 bool HasCompositionText() const override; |
| 297 bool GetTextRange(gfx::Range* range) const override; | 295 bool GetTextRange(gfx::Range* range) const override; |
| 298 bool GetCompositionTextRange(gfx::Range* range) const override; | 296 bool GetCompositionTextRange(gfx::Range* range) const override; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 483 |
| 486 // Used to bind callback functions to this object. | 484 // Used to bind callback functions to this object. |
| 487 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 485 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
| 488 | 486 |
| 489 DISALLOW_COPY_AND_ASSIGN(Textfield); | 487 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 490 }; | 488 }; |
| 491 | 489 |
| 492 } // namespace views | 490 } // namespace views |
| 493 | 491 |
| 494 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 492 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |