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

Side by Side Diff: Source/web/tests/WebInputEventConversionTest.cpp

Issue 27183013: Use [ImplementedAs=domWindow] for Document.defaultView() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 webViewImpl->settings()->setViewportEnabled(true); 102 webViewImpl->settings()->setViewportEnabled(true);
103 int pageWidth = 640; 103 int pageWidth = 640;
104 int pageHeight = 480; 104 int pageHeight = 480;
105 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 105 webViewImpl->resize(WebSize(pageWidth, pageHeight));
106 webViewImpl->layout(); 106 webViewImpl->layout();
107 107
108 webViewImpl->setPageScaleFactor(2, WebPoint()); 108 webViewImpl->setPageScaleFactor(2, WebPoint());
109 109
110 FrameView* view = webViewImpl->page()->mainFrame()->view(); 110 FrameView* view = webViewImpl->page()->mainFrame()->view();
111 RefPtr<Document> document = webViewImpl->page()->mainFrame()->document(); 111 RefPtr<Document> document = webViewImpl->page()->mainFrame()->document();
112 DOMWindow* domWindow = webViewImpl->page()->mainFrame()->document()->default View(); 112 DOMWindow* domWindow = webViewImpl->page()->mainFrame()->document()->domWind ow();
113 RenderObject* docRenderer = webViewImpl->page()->mainFrame()->document()->re nderer(); 113 RenderObject* docRenderer = webViewImpl->page()->mainFrame()->document()->re nderer();
114 114
115 { 115 {
116 WebMouseEvent webMouseEvent; 116 WebMouseEvent webMouseEvent;
117 webMouseEvent.type = WebInputEvent::MouseMove; 117 webMouseEvent.type = WebInputEvent::MouseMove;
118 webMouseEvent.x = 10; 118 webMouseEvent.x = 10;
119 webMouseEvent.y = 10; 119 webMouseEvent.y = 10;
120 webMouseEvent.windowX = 10; 120 webMouseEvent.windowX = 10;
121 webMouseEvent.windowY = 10; 121 webMouseEvent.windowY = 10;
122 webMouseEvent.globalX = 10; 122 webMouseEvent.globalX = 10;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 EXPECT_EQ(10, webTouchBuilder.touches[0].screenPosition.x); 285 EXPECT_EQ(10, webTouchBuilder.touches[0].screenPosition.x);
286 EXPECT_EQ(10, webTouchBuilder.touches[0].screenPosition.y); 286 EXPECT_EQ(10, webTouchBuilder.touches[0].screenPosition.y);
287 EXPECT_EQ(10, webTouchBuilder.touches[0].position.x); 287 EXPECT_EQ(10, webTouchBuilder.touches[0].position.x);
288 EXPECT_EQ(10, webTouchBuilder.touches[0].position.y); 288 EXPECT_EQ(10, webTouchBuilder.touches[0].position.y);
289 EXPECT_EQ(10, webTouchBuilder.touches[0].radiusX); 289 EXPECT_EQ(10, webTouchBuilder.touches[0].radiusX);
290 EXPECT_EQ(10, webTouchBuilder.touches[0].radiusY); 290 EXPECT_EQ(10, webTouchBuilder.touches[0].radiusY);
291 } 291 }
292 } 292 }
293 293
294 } // anonymous namespace 294 } // anonymous namespace
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698