Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: ui/views/controls/textfield/textfield.h

Issue 2034863002: Move SelectionBound from ui/base/touch to ui/gfx to be used by cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated views_unittests Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/touch_selection/ui_touch_selection.gyp ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 const gfx::Point& press_pt, 256 const gfx::Point& press_pt,
257 ui::OSExchangeData* data) override; 257 ui::OSExchangeData* data) override;
258 int GetDragOperationsForView(View* sender, const gfx::Point& p) override; 258 int GetDragOperationsForView(View* sender, const gfx::Point& p) override;
259 bool CanStartDragForView(View* sender, 259 bool CanStartDragForView(View* sender,
260 const gfx::Point& press_pt, 260 const gfx::Point& press_pt,
261 const gfx::Point& p) override; 261 const gfx::Point& p) override;
262 262
263 // ui::TouchEditable overrides: 263 // ui::TouchEditable overrides:
264 void SelectRect(const gfx::Point& start, const gfx::Point& end) override; 264 void SelectRect(const gfx::Point& start, const gfx::Point& end) override;
265 void MoveCaretTo(const gfx::Point& point) override; 265 void MoveCaretTo(const gfx::Point& point) override;
266 void GetSelectionEndPoints(ui::SelectionBound* anchor, 266 void GetSelectionEndPoints(gfx::SelectionBound* anchor,
267 ui::SelectionBound* focus) override; 267 gfx::SelectionBound* focus) override;
268 gfx::Rect GetBounds() override; 268 gfx::Rect GetBounds() override;
269 gfx::NativeView GetNativeView() const override; 269 gfx::NativeView GetNativeView() const override;
270 void ConvertPointToScreen(gfx::Point* point) override; 270 void ConvertPointToScreen(gfx::Point* point) override;
271 void ConvertPointFromScreen(gfx::Point* point) override; 271 void ConvertPointFromScreen(gfx::Point* point) override;
272 bool DrawsHandles() override; 272 bool DrawsHandles() override;
273 void OpenContextMenu(const gfx::Point& anchor) override; 273 void OpenContextMenu(const gfx::Point& anchor) override;
274 void DestroyTouchSelection() override; 274 void DestroyTouchSelection() override;
275 275
276 // ui::SimpleMenuModel::Delegate overrides: 276 // ui::SimpleMenuModel::Delegate overrides:
277 bool IsCommandIdChecked(int command_id) const override; 277 bool IsCommandIdChecked(int command_id) const override;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/touch_selection/ui_touch_selection.gyp ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698