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

Side by Side Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Rebased, fixed a comment in web_input_event_builders_mac.mm Created 3 years, 8 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 BLINK_FROM_HERE, WTF::bind(&runServeAsyncRequestsTask, 140 BLINK_FROM_HERE, WTF::bind(&runServeAsyncRequestsTask,
141 WTF::unretained(testClientForFrame(frame)))); 141 WTF::unretained(testClientForFrame(frame))));
142 testing::enterRunLoop(); 142 testing::enterRunLoop();
143 } 143 }
144 144
145 WebMouseEvent createMouseEvent(WebInputEvent::Type type, 145 WebMouseEvent createMouseEvent(WebInputEvent::Type type,
146 WebMouseEvent::Button button, 146 WebMouseEvent::Button button,
147 const IntPoint& point, 147 const IntPoint& point,
148 int modifiers) { 148 int modifiers) {
149 WebMouseEvent result(type, modifiers, WebInputEvent::TimeStampForTesting); 149 WebMouseEvent result(type, modifiers, WebInputEvent::TimeStampForTesting);
150 result.x = result.globalX = point.x(); 150 result.setPositionInWidget(point.x(), point.y());
151 result.y = result.globalX = point.y(); 151 result.setPositionInScreen(point.x(), point.y());
152 result.button = button; 152 result.button = button;
153 result.clickCount = 1; 153 result.clickCount = 1;
154 return result; 154 return result;
155 } 155 }
156 156
157 WebLocalFrameImpl* createLocalChild(WebRemoteFrame* parent, 157 WebLocalFrameImpl* createLocalChild(WebRemoteFrame* parent,
158 const WebString& name, 158 const WebString& name,
159 WebFrameClient* client, 159 WebFrameClient* client,
160 WebWidgetClient* widgetClient, 160 WebWidgetClient* widgetClient,
161 WebFrame* previousSibling, 161 WebFrame* previousSibling,
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 m_testWebViewClient->scheduleAnimation(); 350 m_testWebViewClient->scheduleAnimation();
351 } 351 }
352 352
353 void TestWebViewWidgetClient::didMeaningfulLayout( 353 void TestWebViewWidgetClient::didMeaningfulLayout(
354 WebMeaningfulLayout layoutType) { 354 WebMeaningfulLayout layoutType) {
355 m_testWebViewClient->didMeaningfulLayout(layoutType); 355 m_testWebViewClient->didMeaningfulLayout(layoutType);
356 } 356 }
357 357
358 } // namespace FrameTestHelpers 358 } // namespace FrameTestHelpers
359 } // namespace blink 359 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/Source/web/tests/VisualViewportTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698