summaryrefslogtreecommitdiffstats
path: root/ui/views/touchui
diff options
context:
space:
mode:
authormiletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-20 12:07:35 +0000
committermiletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-20 12:07:35 +0000
commit0c7f7ea1a698bde4670c8f93adaab34f1befd1a9 (patch)
treebc3c3c9659da957bff0daac2f193d5b88e1bee77 /ui/views/touchui
parentddb5e56ff2f76f2734187d9477f0732f68dff396 (diff)
downloadchromium_src-0c7f7ea1a698bde4670c8f93adaab34f1befd1a9.zip
chromium_src-0c7f7ea1a698bde4670c8f93adaab34f1befd1a9.tar.gz
chromium_src-0c7f7ea1a698bde4670c8f93adaab34f1befd1a9.tar.bz2
Replace ET_GESTURE_DOUBLE_TAP with ET_GESTURE_TAP
ET_GESTURE_TAP now has a tap count memeber to tell if it is a single or double tap. So replace the usage of ET_GESTURE_DOUBLE_TAP with ET_GESTURE_TAP. BUG=140382 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188901 Review URL: https://chromiumcodereview.appspot.com/12745006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189248 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/touchui')
-rw-r--r--ui/views/touchui/touch_selection_controller_impl_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/views/touchui/touch_selection_controller_impl_unittest.cc b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
index 1a191f7..15163a2 100644
--- a/ui/views/touchui/touch_selection_controller_impl_unittest.cc
+++ b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
@@ -166,7 +166,7 @@ TEST_F(TouchSelectionControllerImplTest, SelectionInTextfieldTest) {
textfield_->SetText(ASCIIToUTF16("some text"));
// Tap the textfield to invoke touch selection.
ui::GestureEvent tap(ui::ET_GESTURE_TAP, 0, 0, 0, base::TimeDelta(),
- ui::GestureEventDetails(ui::ET_GESTURE_TAP, 0.0f, 0.0f), 0);
+ ui::GestureEventDetails(ui::ET_GESTURE_TAP, 1.0f, 0.0f), 0);
textfield_view_->OnGestureEvent(&tap);
// Test selecting a range.
@@ -198,7 +198,7 @@ TEST_F(TouchSelectionControllerImplTest, SelectionInBidiTextfieldTest) {
textfield_->SetText(WideToUTF16(L"abc\x05d0\x05d1\x05d2"));
// Tap the textfield to invoke touch selection.
ui::GestureEvent tap(ui::ET_GESTURE_TAP, 0, 0, 0, base::TimeDelta(),
- ui::GestureEventDetails(ui::ET_GESTURE_TAP, 0.0f, 0.0f), 0);
+ ui::GestureEventDetails(ui::ET_GESTURE_TAP, 1.0f, 0.0f), 0);
textfield_view_->OnGestureEvent(&tap);
// Test cursor at run boundary and with empty selection.
@@ -246,7 +246,7 @@ TEST_F(TouchSelectionControllerImplTest, SelectRectCallbackTest) {
textfield_->SetText(ASCIIToUTF16("textfield with selected text"));
// Tap the textfield to invoke touch selection.
ui::GestureEvent tap(ui::ET_GESTURE_TAP, 0, 0, 0, base::TimeDelta(),
- ui::GestureEventDetails(ui::ET_GESTURE_TAP, 0.0f, 0.0f), 0);
+ ui::GestureEventDetails(ui::ET_GESTURE_TAP, 1.0f, 0.0f), 0);
textfield_view_->OnGestureEvent(&tap);
textfield_->SelectRange(ui::Range(3, 7));
@@ -283,7 +283,7 @@ TEST_F(TouchSelectionControllerImplTest, SelectRectInBidiCallbackTest) {
textfield_->SetText(WideToUTF16(L"abc\x05e1\x05e2\x05e3"L"def"));
// Tap the textfield to invoke touch selection.
ui::GestureEvent tap(ui::ET_GESTURE_TAP, 0, 0, 0, base::TimeDelta(),
- ui::GestureEventDetails(ui::ET_GESTURE_TAP, 0.0f, 0.0f), 0);
+ ui::GestureEventDetails(ui::ET_GESTURE_TAP, 1.0f, 0.0f), 0);
textfield_view_->OnGestureEvent(&tap);
// Select [c] from left to right.