| OLD | NEW |
| 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/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "core/frame/FrameHost.h" | 10 #include "core/frame/FrameHost.h" |
| 11 #include "core/frame/LocalFrame.h" | 11 #include "core/frame/LocalFrame.h" |
| 12 #include "core/html/HTMLBodyElement.h" | 12 #include "core/html/HTMLBodyElement.h" |
| 13 #include "core/html/HTMLElement.h" | 13 #include "core/html/HTMLElement.h" |
| 14 #include "core/input/EventHandler.h" |
| 14 #include "core/layout/LayoutObject.h" | 15 #include "core/layout/LayoutObject.h" |
| 15 #include "core/layout/LayoutView.h" | 16 #include "core/layout/LayoutView.h" |
| 16 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h" | 17 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h" |
| 17 #include "core/page/EventHandler.h" | |
| 18 #include "core/page/Page.h" | 18 #include "core/page/Page.h" |
| 19 #include "platform/PlatformGestureEvent.h" | 19 #include "platform/PlatformGestureEvent.h" |
| 20 #include "platform/geometry/DoublePoint.h" | 20 #include "platform/geometry/DoublePoint.h" |
| 21 #include "platform/geometry/DoubleRect.h" | 21 #include "platform/geometry/DoubleRect.h" |
| 22 #include "platform/testing/URLTestHelpers.h" | 22 #include "platform/testing/URLTestHelpers.h" |
| 23 #include "public/platform/Platform.h" | 23 #include "public/platform/Platform.h" |
| 24 #include "public/platform/WebLayerTreeView.h" | 24 #include "public/platform/WebLayerTreeView.h" |
| 25 #include "public/platform/WebUnitTestSupport.h" | 25 #include "public/platform/WebUnitTestSupport.h" |
| 26 #include "public/web/WebContextMenuData.h" | 26 #include "public/web/WebContextMenuData.h" |
| 27 #include "public/web/WebDocument.h" | 27 #include "public/web/WebDocument.h" |
| (...skipping 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1658 registerMockedHttpURLLoad("window_dimensions_wide_div.html"); | 1658 registerMockedHttpURLLoad("window_dimensions_wide_div.html"); |
| 1659 webViewImpl()->resize(IntSize(800, 600)); | 1659 webViewImpl()->resize(IntSize(800, 600)); |
| 1660 navigateTo(m_baseURL + "window_dimensions_wide_div.html"); | 1660 navigateTo(m_baseURL + "window_dimensions_wide_div.html"); |
| 1661 | 1661 |
| 1662 Element* output = frame()->document()->getElementById("output"); | 1662 Element* output = frame()->document()->getElementById("output"); |
| 1663 ASSERT(output); | 1663 ASSERT(output); |
| 1664 EXPECT_EQ(std::string("2000x1500"), std::string(output->innerHTML().ascii().
data())); | 1664 EXPECT_EQ(std::string("2000x1500"), std::string(output->innerHTML().ascii().
data())); |
| 1665 } | 1665 } |
| 1666 | 1666 |
| 1667 } // namespace | 1667 } // namespace |
| OLD | NEW |