| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/frame/FrameHost.h" | 5 #include "core/frame/FrameHost.h" |
| 6 #include "core/frame/FrameView.h" | 6 #include "core/frame/FrameView.h" |
| 7 #include "core/frame/TopControls.h" | 7 #include "core/frame/TopControls.h" |
| 8 #include "core/html/HTMLFrameOwnerElement.h" | 8 #include "core/html/HTMLFrameOwnerElement.h" |
| 9 #include "core/page/Page.h" | 9 #include "core/page/Page.h" |
| 10 #include "core/page/scrolling/RootScrollerController.h" | 10 #include "core/page/scrolling/RootScrollerController.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 webViewImpl()->handleInputEvent( | 116 webViewImpl()->handleInputEvent( |
| 117 generateEvent(WebInputEvent::GestureScrollBegin)); | 117 generateEvent(WebInputEvent::GestureScrollBegin)); |
| 118 webViewImpl()->handleInputEvent( | 118 webViewImpl()->handleInputEvent( |
| 119 generateEvent(WebInputEvent::GestureScrollUpdate, 0, -deltaY)); | 119 generateEvent(WebInputEvent::GestureScrollUpdate, 0, -deltaY)); |
| 120 webViewImpl()->handleInputEvent( | 120 webViewImpl()->handleInputEvent( |
| 121 generateEvent(WebInputEvent::GestureScrollEnd)); | 121 generateEvent(WebInputEvent::GestureScrollEnd)); |
| 122 } | 122 } |
| 123 | 123 |
| 124 WebViewImpl* webViewImpl() const | 124 WebViewImpl* webViewImpl() const |
| 125 { | 125 { |
| 126 return m_helper.webViewImpl(); | 126 return m_helper.webView(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 FrameHost& frameHost() const | 129 FrameHost& frameHost() const |
| 130 { | 130 { |
| 131 return m_helper.webViewImpl()->page()->frameHost(); | 131 return m_helper.webView()->page()->frameHost(); |
| 132 } | 132 } |
| 133 | 133 |
| 134 LocalFrame* mainFrame() const | 134 LocalFrame* mainFrame() const |
| 135 { | 135 { |
| 136 return toWebLocalFrameImpl(webViewImpl()->mainFrame())->frame(); | 136 return webViewImpl()->mainFrameImpl()->frame(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 WebLocalFrame* mainWebFrame() const | 139 WebLocalFrame* mainWebFrame() const |
| 140 { | 140 { |
| 141 return toWebLocalFrameImpl(webViewImpl()->mainFrame()); | 141 return webViewImpl()->mainFrameImpl(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 FrameView* mainFrameView() const | 144 FrameView* mainFrameView() const |
| 145 { | 145 { |
| 146 return webViewImpl()->mainFrameImpl()->frame()->view(); | 146 return webViewImpl()->mainFrameImpl()->frame()->view(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 VisualViewport& visualViewport() const | 149 VisualViewport& visualViewport() const |
| 150 { | 150 { |
| 151 return frameHost().visualViewport(); | 151 return frameHost().visualViewport(); |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 body, | 491 body, |
| 492 exceptionState); | 492 exceptionState); |
| 493 | 493 |
| 494 ASSERT_EQ(body, iframe->contentDocument()->rootScroller()); | 494 ASSERT_EQ(body, iframe->contentDocument()->rootScroller()); |
| 495 } | 495 } |
| 496 } | 496 } |
| 497 | 497 |
| 498 } // namespace | 498 } // namespace |
| 499 | 499 |
| 500 } // namespace blink | 500 } // namespace blink |
| OLD | NEW |