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

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

Issue 1308273003: Resend unconsumed scroll update from guest back to embedder (WebView Scroll Bubble). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't require GestureScrollBegin for touch-pad GestureFlingStart. Created 5 years, 2 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void SimulateMouseClickAt(WebContents* web_contents, 106 void SimulateMouseClickAt(WebContents* web_contents,
107 int modifiers, 107 int modifiers,
108 blink::WebMouseEvent::Button button, 108 blink::WebMouseEvent::Button button,
109 const gfx::Point& point); 109 const gfx::Point& point);
110 110
111 // Simulates asynchronously a mouse enter/move/leave event. 111 // Simulates asynchronously a mouse enter/move/leave event.
112 void SimulateMouseEvent(WebContents* web_contents, 112 void SimulateMouseEvent(WebContents* web_contents,
113 blink::WebInputEvent::Type type, 113 blink::WebInputEvent::Type type,
114 const gfx::Point& point); 114 const gfx::Point& point);
115 115
116 // Simulate a mouse wheel event.
117 void SimulateMouseWheelEvent(WebContents* web_contents,
118 const gfx::Point& point,
119 const gfx::Vector2d& delta);
120
121 // Sends a simple, three-event (Begin/Update/End) gesture scroll.
122 void SimulateGestureScrollSequence(WebContents* web_contents,
123 const gfx::Point& point,
124 const gfx::Vector2dF& delta);
125
116 // Taps the screen at |point|. 126 // Taps the screen at |point|.
117 void SimulateTapAt(WebContents* web_contents, const gfx::Point& point); 127 void SimulateTapAt(WebContents* web_contents, const gfx::Point& point);
118 128
119 // Generates a TouchStart at |point|. 129 // Generates a TouchStart at |point|.
120 void SimulateTouchPressAt(WebContents* web_contents, const gfx::Point& point); 130 void SimulateTouchPressAt(WebContents* web_contents, const gfx::Point& point);
121 131
122 // Taps the screen with modifires at |point|. 132 // Taps the screen with modifires at |point|.
123 void SimulateTapWithModifiersAt(WebContents* web_contents, 133 void SimulateTapWithModifiersAt(WebContents* web_contents,
124 unsigned Modifiers, 134 unsigned Modifiers,
125 const gfx::Point& point); 135 const gfx::Point& point);
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 420
411 int frames_to_wait_; 421 int frames_to_wait_;
412 base::Closure quit_; 422 base::Closure quit_;
413 423
414 DISALLOW_COPY_AND_ASSIGN(FrameWatcher); 424 DISALLOW_COPY_AND_ASSIGN(FrameWatcher);
415 }; 425 };
416 426
417 } // namespace content 427 } // namespace content
418 428
419 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 429 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura_unittest.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698