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

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

Issue 349013002: Include Page.h in fewer headers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "config.h" 5 #include "config.h"
6 6
7 #include "core/frame/PinchViewport.h" 7 #include "core/frame/PinchViewport.h"
8 8
9 #include "core/frame/FrameHost.h" 9 #include "core/frame/FrameHost.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
11 #include "core/page/Page.h"
11 #include "core/rendering/RenderObject.h" 12 #include "core/rendering/RenderObject.h"
12 #include "core/rendering/RenderView.h" 13 #include "core/rendering/RenderView.h"
13 #include "core/rendering/compositing/CompositedLayerMapping.h" 14 #include "core/rendering/compositing/CompositedLayerMapping.h"
14 #include "core/rendering/compositing/RenderLayerCompositor.h" 15 #include "core/rendering/compositing/RenderLayerCompositor.h"
15 #include "public/platform/Platform.h" 16 #include "public/platform/Platform.h"
16 #include "public/platform/WebLayerTreeView.h" 17 #include "public/platform/WebLayerTreeView.h"
17 #include "public/platform/WebUnitTestSupport.h" 18 #include "public/platform/WebUnitTestSupport.h"
18 #include "public/web/WebContextMenuData.h" 19 #include "public/web/WebContextMenuData.h"
19 #include "public/web/WebFrameClient.h" 20 #include "public/web/WebFrameClient.h"
20 #include "public/web/WebInputEvent.h" 21 #include "public/web/WebInputEvent.h"
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 pinchViewport.scrollIntoView(FloatRect(50, 75, 50, 75)); 796 pinchViewport.scrollIntoView(FloatRect(50, 75, 50, 75));
796 EXPECT_POINT_EQ(IntPoint(50, 75), frame()->view()->scrollPosition()); 797 EXPECT_POINT_EQ(IntPoint(50, 75), frame()->view()->scrollPosition());
797 EXPECT_FLOAT_POINT_EQ(FloatPoint(), pinchViewport.visibleRect().location()); 798 EXPECT_FLOAT_POINT_EQ(FloatPoint(), pinchViewport.visibleRect().location());
798 799
799 pinchViewport.scrollIntoView(FloatRect(190, 290, 10, 10)); 800 pinchViewport.scrollIntoView(FloatRect(190, 290, 10, 10));
800 EXPECT_POINT_EQ(IntPoint(100, 150), frame()->view()->scrollPosition()); 801 EXPECT_POINT_EQ(IntPoint(100, 150), frame()->view()->scrollPosition());
801 EXPECT_FLOAT_POINT_EQ(FloatPoint(50, 75), pinchViewport.visibleRect().locati on()); 802 EXPECT_FLOAT_POINT_EQ(FloatPoint(50, 75), pinchViewport.visibleRect().locati on());
802 } 803 }
803 804
804 } // namespace 805 } // namespace
OLDNEW
« no previous file with comments | « Source/web/tests/ChromeClientImplTest.cpp ('k') | Source/web/tests/ScrollingCoordinatorChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698