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

Side by Side Diff: content/public/test/browser_test_utils.h

Issue 2046843003: Merge "Fix webview crash on attempt to scroll." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: 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
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 CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Simulate a mouse wheel event. 123 // Simulate a mouse wheel event.
124 void SimulateMouseWheelEvent(WebContents* web_contents, 124 void SimulateMouseWheelEvent(WebContents* web_contents,
125 const gfx::Point& point, 125 const gfx::Point& point,
126 const gfx::Vector2d& delta); 126 const gfx::Vector2d& delta);
127 127
128 // Sends a simple, three-event (Begin/Update/End) gesture scroll. 128 // Sends a simple, three-event (Begin/Update/End) gesture scroll.
129 void SimulateGestureScrollSequence(WebContents* web_contents, 129 void SimulateGestureScrollSequence(WebContents* web_contents,
130 const gfx::Point& point, 130 const gfx::Point& point,
131 const gfx::Vector2dF& delta); 131 const gfx::Vector2dF& delta);
132 132
133 void SimulateGestureFlingSequence(WebContents* web_contents,
134 const gfx::Point& point,
135 const gfx::Vector2dF& velocity);
136
133 // Taps the screen at |point|. 137 // Taps the screen at |point|.
134 void SimulateTapAt(WebContents* web_contents, const gfx::Point& point); 138 void SimulateTapAt(WebContents* web_contents, const gfx::Point& point);
135 139
136 #if defined(USE_AURA) 140 #if defined(USE_AURA)
137 // Generates a TouchStart at |point|. 141 // Generates a TouchStart at |point|.
138 void SimulateTouchPressAt(WebContents* web_contents, const gfx::Point& point); 142 void SimulateTouchPressAt(WebContents* web_contents, const gfx::Point& point);
139 #endif 143 #endif
140 144
141 // Taps the screen with modifires at |point|. 145 // Taps the screen with modifires at |point|.
142 void SimulateTapWithModifiersAt(WebContents* web_contents, 146 void SimulateTapWithModifiersAt(WebContents* web_contents,
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 blink::WebInputEvent::Type wait_for_type_; 510 blink::WebInputEvent::Type wait_for_type_;
507 uint32_t ack_result_; 511 uint32_t ack_result_;
508 base::Closure quit_; 512 base::Closure quit_;
509 513
510 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); 514 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher);
511 }; 515 };
512 516
513 } // namespace content 517 } // namespace content
514 518
515 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 519 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698