OLD | NEW |
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 Platform::current()->currentThread()->getWebTaskRunner()->postTask( | 151 Platform::current()->currentThread()->getWebTaskRunner()->postTask( |
152 BLINK_FROM_HERE, WTF::bind(&runServeAsyncRequestsTask, | 152 BLINK_FROM_HERE, WTF::bind(&runServeAsyncRequestsTask, |
153 WTF::unretained(testClientForFrame(frame)))); | 153 WTF::unretained(testClientForFrame(frame)))); |
154 testing::enterRunLoop(); | 154 testing::enterRunLoop(); |
155 } | 155 } |
156 | 156 |
157 WebMouseEvent createMouseEvent(WebInputEvent::Type type, | 157 WebMouseEvent createMouseEvent(WebInputEvent::Type type, |
158 WebMouseEvent::Button button, | 158 WebMouseEvent::Button button, |
159 const IntPoint& point, | 159 const IntPoint& point, |
160 int modifiers) { | 160 int modifiers) { |
161 WebMouseEvent result; | 161 WebMouseEvent result(type, modifiers, WebInputEvent::TimeStampForTesting); |
162 result.type = type; | |
163 result.x = result.windowX = result.globalX = point.x(); | 162 result.x = result.windowX = result.globalX = point.x(); |
164 result.y = result.windowX = result.globalX = point.y(); | 163 result.y = result.windowX = result.globalX = point.y(); |
165 result.modifiers = modifiers; | |
166 result.button = button; | 164 result.button = button; |
167 result.clickCount = 1; | 165 result.clickCount = 1; |
168 return result; | 166 return result; |
169 } | 167 } |
170 | 168 |
171 WebLocalFrameImpl* createLocalChild(WebRemoteFrame* parent, | 169 WebLocalFrameImpl* createLocalChild(WebRemoteFrame* parent, |
172 const WebString& name, | 170 const WebString& name, |
173 WebFrameClient* client, | 171 WebFrameClient* client, |
174 WebWidgetClient* widgetClient, | 172 WebWidgetClient* widgetClient, |
175 WebFrame* previousSibling, | 173 WebFrame* previousSibling, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 m_testWebViewClient->scheduleAnimation(); | 337 m_testWebViewClient->scheduleAnimation(); |
340 } | 338 } |
341 | 339 |
342 void TestWebViewWidgetClient::didMeaningfulLayout( | 340 void TestWebViewWidgetClient::didMeaningfulLayout( |
343 WebMeaningfulLayout layoutType) { | 341 WebMeaningfulLayout layoutType) { |
344 m_testWebViewClient->didMeaningfulLayout(layoutType); | 342 m_testWebViewClient->didMeaningfulLayout(layoutType); |
345 } | 343 } |
346 | 344 |
347 } // namespace FrameTestHelpers | 345 } // namespace FrameTestHelpers |
348 } // namespace blink | 346 } // namespace blink |
OLD | NEW |