| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 void SetAccessibleName(const base::string16& name); | 200 void SetAccessibleName(const base::string16& name); |
| 201 | 201 |
| 202 // Returns whether there is a drag operation originating from the textfield. | 202 // Returns whether there is a drag operation originating from the textfield. |
| 203 bool HasTextBeingDragged(); | 203 bool HasTextBeingDragged(); |
| 204 | 204 |
| 205 // View overrides: | 205 // View overrides: |
| 206 gfx::Insets GetInsets() const override; | 206 gfx::Insets GetInsets() const override; |
| 207 int GetBaseline() const override; | 207 int GetBaseline() const override; |
| 208 gfx::Size GetPreferredSize() const override; | 208 gfx::Size GetPreferredSize() const override; |
| 209 const char* GetClassName() const override; | 209 const char* GetClassName() const override; |
| 210 gfx::RenderText* GetRenderText() override; |
| 210 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; | 211 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; |
| 211 bool OnMousePressed(const ui::MouseEvent& event) override; | 212 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 212 bool OnMouseDragged(const ui::MouseEvent& event) override; | 213 bool OnMouseDragged(const ui::MouseEvent& event) override; |
| 213 void OnMouseReleased(const ui::MouseEvent& event) override; | 214 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 214 void OnGestureEvent(ui::GestureEvent* event) override; | 215 void OnGestureEvent(ui::GestureEvent* event) override; |
| 215 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 216 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 216 bool CanHandleAccelerators() const override; | 217 bool CanHandleAccelerators() const override; |
| 217 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 218 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
| 218 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; | 219 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; |
| 219 bool GetDropFormats( | 220 bool GetDropFormats( |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 | 489 |
| 489 // Used to bind callback functions to this object. | 490 // Used to bind callback functions to this object. |
| 490 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 491 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
| 491 | 492 |
| 492 DISALLOW_COPY_AND_ASSIGN(Textfield); | 493 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 493 }; | 494 }; |
| 494 | 495 |
| 495 } // namespace views | 496 } // namespace views |
| 496 | 497 |
| 497 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 498 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |