| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // TextfieldModel::Delegate overrides: | 216 // TextfieldModel::Delegate overrides: |
| 217 virtual void OnCompositionTextConfirmedOrCleared() OVERRIDE; | 217 virtual void OnCompositionTextConfirmedOrCleared() OVERRIDE; |
| 218 | 218 |
| 219 // ContextMenuController overrides: | 219 // ContextMenuController overrides: |
| 220 virtual void ShowContextMenuForView(View* source, | 220 virtual void ShowContextMenuForView(View* source, |
| 221 const gfx::Point& point, | 221 const gfx::Point& point, |
| 222 ui::MenuSourceType source_type) OVERRIDE; | 222 ui::MenuSourceType source_type) OVERRIDE; |
| 223 | 223 |
| 224 // DragController overrides: | 224 // DragController overrides: |
| 225 virtual void WriteDragDataForView(View* sender, | 225 virtual void WriteDragDataForView(View* sender, |
| 226 const gfx::Point& press_pt, | 226 const gfx::PointF& press_pt, |
| 227 ui::OSExchangeData* data) OVERRIDE; | 227 ui::OSExchangeData* data) OVERRIDE; |
| 228 virtual int GetDragOperationsForView(View* sender, | 228 virtual int GetDragOperationsForView(View* sender, |
| 229 const gfx::Point& p) OVERRIDE; | 229 const gfx::PointF& p) OVERRIDE; |
| 230 virtual bool CanStartDragForView(View* sender, | 230 virtual bool CanStartDragForView(View* sender, |
| 231 const gfx::Point& press_pt, | 231 const gfx::PointF& press_pt, |
| 232 const gfx::Point& p) OVERRIDE; | 232 const gfx::PointF& p) OVERRIDE; |
| 233 | 233 |
| 234 // ui::TouchEditable overrides: | 234 // ui::TouchEditable overrides: |
| 235 virtual void SelectRect(const gfx::Point& start, | 235 virtual void SelectRect(const gfx::Point& start, |
| 236 const gfx::Point& end) OVERRIDE; | 236 const gfx::Point& end) OVERRIDE; |
| 237 virtual void MoveCaretTo(const gfx::Point& point) OVERRIDE; | 237 virtual void MoveCaretTo(const gfx::Point& point) OVERRIDE; |
| 238 virtual void GetSelectionEndPoints(gfx::Rect* p1, gfx::Rect* p2) OVERRIDE; | 238 virtual void GetSelectionEndPoints(gfx::Rect* p1, gfx::Rect* p2) OVERRIDE; |
| 239 virtual gfx::Rect GetBounds() OVERRIDE; | 239 virtual gfx::Rect GetBounds() OVERRIDE; |
| 240 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 240 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 241 virtual void ConvertPointToScreen(gfx::Point* point) OVERRIDE; | 241 virtual void ConvertPointToScreen(gfx::Point* point) OVERRIDE; |
| 242 virtual void ConvertPointFromScreen(gfx::Point* point) OVERRIDE; | 242 virtual void ConvertPointFromScreen(gfx::Point* point) OVERRIDE; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 | 433 |
| 434 // Used to bind callback functions to this object. | 434 // Used to bind callback functions to this object. |
| 435 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 435 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
| 436 | 436 |
| 437 DISALLOW_COPY_AND_ASSIGN(Textfield); | 437 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 438 }; | 438 }; |
| 439 | 439 |
| 440 } // namespace views | 440 } // namespace views |
| 441 | 441 |
| 442 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 442 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |