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

Unified Diff: third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp

Issue 2569273002: Add constructors to WebInputEvents and setters so we can work at cleaning up these public structs. (Closed)
Patch Set: Rebase Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp b/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp
index 4ec36224379274c1bac80becec049e36eecdca39..50f0f3ec9c08e1bd2aeae11ca0d5a9341ca1fbd2 100644
--- a/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp
+++ b/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp
@@ -83,9 +83,8 @@ class GetNavigationPolicyTest : public testing::Test {
int modifiers,
WebMouseEvent::Button button,
bool asPopup) {
- WebMouseEvent event;
- event.modifiers = modifiers;
- event.type = WebInputEvent::MouseUp;
+ WebMouseEvent event(WebInputEvent::MouseUp, modifiers,
+ WebInputEvent::TimeStampForTesting);
event.button = button;
setCurrentInputEventForTest(&event);
m_chromeClientImpl->setScrollbarsVisible(!asPopup);

Powered by Google App Engine
This is Rietveld 408576698