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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 const gfx::Point& press_pt, | 250 const gfx::Point& press_pt, |
251 ui::OSExchangeData* data) override; | 251 ui::OSExchangeData* data) override; |
252 int GetDragOperationsForView(View* sender, const gfx::Point& p) override; | 252 int GetDragOperationsForView(View* sender, const gfx::Point& p) override; |
253 bool CanStartDragForView(View* sender, | 253 bool CanStartDragForView(View* sender, |
254 const gfx::Point& press_pt, | 254 const gfx::Point& press_pt, |
255 const gfx::Point& p) override; | 255 const gfx::Point& p) override; |
256 | 256 |
257 // ui::TouchEditable overrides: | 257 // ui::TouchEditable overrides: |
258 void SelectRect(const gfx::Point& start, const gfx::Point& end) override; | 258 void SelectRect(const gfx::Point& start, const gfx::Point& end) override; |
259 void MoveCaretTo(const gfx::Point& point) override; | 259 void MoveCaretTo(const gfx::Point& point) override; |
260 void GetSelectionEndPoints(gfx::Rect* p1, gfx::Rect* p2) override; | 260 void GetSelectionEndPoints(ui::SelectionBound* anchor, |
| 261 ui::SelectionBound* focus) override; |
261 gfx::Rect GetBounds() override; | 262 gfx::Rect GetBounds() override; |
262 gfx::NativeView GetNativeView() const override; | 263 gfx::NativeView GetNativeView() const override; |
263 void ConvertPointToScreen(gfx::Point* point) override; | 264 void ConvertPointToScreen(gfx::Point* point) override; |
264 void ConvertPointFromScreen(gfx::Point* point) override; | 265 void ConvertPointFromScreen(gfx::Point* point) override; |
265 bool DrawsHandles() override; | 266 bool DrawsHandles() override; |
266 void OpenContextMenu(const gfx::Point& anchor) override; | 267 void OpenContextMenu(const gfx::Point& anchor) override; |
267 void DestroyTouchSelection() override; | 268 void DestroyTouchSelection() override; |
268 | 269 |
269 // ui::SimpleMenuModel::Delegate overrides: | 270 // ui::SimpleMenuModel::Delegate overrides: |
270 bool IsCommandIdChecked(int command_id) const override; | 271 bool IsCommandIdChecked(int command_id) const override; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 | 471 |
471 // Used to bind callback functions to this object. | 472 // Used to bind callback functions to this object. |
472 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 473 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
473 | 474 |
474 DISALLOW_COPY_AND_ASSIGN(Textfield); | 475 DISALLOW_COPY_AND_ASSIGN(Textfield); |
475 }; | 476 }; |
476 | 477 |
477 } // namespace views | 478 } // namespace views |
478 | 479 |
479 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 480 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |