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

Side by Side Diff: content/browser/renderer_host/input/gesture_text_selector_unittest.cc

Issue 401863003: Merge 279991 "[Android] Select text when stylus first button is ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985_122/src/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/renderer_host/input/gesture_text_selector.h" 10 #include "content/browser/renderer_host/input/gesture_text_selector.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // 7. ET_GESTURE_SCROLL_END 156 // 7. ET_GESTURE_SCROLL_END
157 event_time += base::TimeDelta::FromMilliseconds(10); 157 event_time += base::TimeDelta::FromMilliseconds(10);
158 const GestureEventData scroll_end( 158 const GestureEventData scroll_end(
159 GestureEventDetails(ui::ET_GESTURE_SCROLL_END, 0, 0), 0, event_time, 159 GestureEventDetails(ui::ET_GESTURE_SCROLL_END, 0, 0), 0, event_time,
160 x2, y2, x2, y2, 1, gfx::RectF(0, 0, 0, 0)); 160 x2, y2, x2, y2, 1, gfx::RectF(0, 0, 0, 0));
161 EXPECT_TRUE(selector_->OnGestureEvent(scroll_end)); 161 EXPECT_TRUE(selector_->OnGestureEvent(scroll_end));
162 EXPECT_EQ(3u, event_log_.size()); // NO CHANGE 162 EXPECT_EQ(3u, event_log_.size()); // NO CHANGE
163 } 163 }
164 164
165 } // namespace content 165 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698