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

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

Issue 2015373002: Fix webview crash on attempt to scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed content_tests (handle case when view is not available), added expected event into Fling test … 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 blink::WebInputEvent::Type wait_for_type_; 516 blink::WebInputEvent::Type wait_for_type_;
513 uint32_t ack_result_; 517 uint32_t ack_result_;
514 base::Closure quit_; 518 base::Closure quit_;
515 519
516 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); 520 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher);
517 }; 521 };
518 522
519 } // namespace content 523 } // namespace content
520 524
521 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 525 #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