| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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.#ifndef WebViewBase_h | 3 // found in the LICENSE file.#ifndef WebViewBase_h |
| 4 | 4 |
| 5 #ifndef WebViewBase_h | 5 #ifndef WebViewBase_h |
| 6 #define WebViewBase_h | 6 #define WebViewBase_h |
| 7 | 7 |
| 8 #include "core/page/EventWithHitTestResults.h" | 8 #include "core/page/EventWithHitTestResults.h" |
| 9 #include "platform/transforms/TransformationMatrix.h" | 9 #include "platform/transforms/TransformationMatrix.h" |
| 10 #include "platform/wtf/RefCounted.h" | 10 #include "platform/wtf/RefCounted.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class Frame; | 26 class Frame; |
| 27 class GraphicsLayer; | 27 class GraphicsLayer; |
| 28 class HitTestResult; | 28 class HitTestResult; |
| 29 class LinkHighlightImpl; | 29 class LinkHighlightImpl; |
| 30 class Page; | 30 class Page; |
| 31 class PaintLayerCompositor; | 31 class PaintLayerCompositor; |
| 32 class PagePopup; | 32 class PagePopup; |
| 33 class PagePopupClient; | 33 class PagePopupClient; |
| 34 class PageScaleConstraintsSet; | 34 class PageScaleConstraintsSet; |
| 35 class WebInputEvent; | 35 class WebInputEvent; |
| 36 class WebInputMethodControllerImpl; | 36 class WebInputMethodController; |
| 37 class WebKeyboardEvent; | 37 class WebKeyboardEvent; |
| 38 class WebLayer; | 38 class WebLayer; |
| 39 class WebLocalFrameBase; | 39 class WebLocalFrameBase; |
| 40 class WebLayerTreeView; | 40 class WebLayerTreeView; |
| 41 class WebPagePopupImpl; | 41 class WebPagePopupImpl; |
| 42 class WebSettingsImpl; | 42 class WebSettingsImpl; |
| 43 struct WebRect; | 43 struct WebRect; |
| 44 | 44 |
| 45 // WebViewBase is a temporary class introduced to decouple the defintion of | 45 // WebViewBase is a temporary class introduced to decouple the defintion of |
| 46 // WebViewImpl from the concrete implementation. It was not possible to move the | 46 // WebViewImpl from the concrete implementation. It was not possible to move the |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 static const WebInputEvent* CurrentInputEvent(); | 164 static const WebInputEvent* CurrentInputEvent(); |
| 165 | 165 |
| 166 virtual void SetCompositorVisibility(bool) = 0; | 166 virtual void SetCompositorVisibility(bool) = 0; |
| 167 using WebWidget::SetSuppressFrameRequestsWorkaroundFor704763Only; | 167 using WebWidget::SetSuppressFrameRequestsWorkaroundFor704763Only; |
| 168 using WebWidget::RecordWheelAndTouchScrollingCount; | 168 using WebWidget::RecordWheelAndTouchScrollingCount; |
| 169 using WebWidget::GetCompositionCharacterBounds; | 169 using WebWidget::GetCompositionCharacterBounds; |
| 170 // Returns the currently active WebInputMethodController which is the one | 170 // Returns the currently active WebInputMethodController which is the one |
| 171 // corresponding to the focused frame. It will return nullptr if there is no | 171 // corresponding to the focused frame. It will return nullptr if there is no |
| 172 // focused frame, or if there is one but it belongs to a different local | 172 // focused frame, or if there is one but it belongs to a different local |
| 173 // root. | 173 // root. |
| 174 virtual WebInputMethodControllerImpl* GetActiveWebInputMethodController() | 174 virtual WebInputMethodController* GetActiveWebInputMethodController() |
| 175 const = 0; | 175 const = 0; |
| 176 virtual void ScheduleAnimationForWidget() = 0; | 176 virtual void ScheduleAnimationForWidget() = 0; |
| 177 virtual CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient() = 0; | 177 virtual CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient() = 0; |
| 178 virtual AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient() = 0; | 178 virtual AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient() = 0; |
| 179 virtual void SetRootGraphicsLayer(GraphicsLayer*) = 0; | 179 virtual void SetRootGraphicsLayer(GraphicsLayer*) = 0; |
| 180 virtual void SetRootLayer(WebLayer*) = 0; | 180 virtual void SetRootLayer(WebLayer*) = 0; |
| 181 virtual CompositorAnimationHost* AnimationHost() const = 0; | 181 virtual CompositorAnimationHost* AnimationHost() const = 0; |
| 182 virtual HitTestResult CoreHitTestResultAt(const WebPoint&) = 0; | 182 virtual HitTestResult CoreHitTestResultAt(const WebPoint&) = 0; |
| 183 | 183 |
| 184 virtual class ChromeClient& ChromeClient() const = 0; | 184 virtual class ChromeClient& ChromeClient() const = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 virtual void EnableTapHighlightAtPoint( | 216 virtual void EnableTapHighlightAtPoint( |
| 217 const GestureEventWithHitTestResults& targeted_tap_event) = 0; | 217 const GestureEventWithHitTestResults& targeted_tap_event) = 0; |
| 218 virtual LinkHighlightImpl* GetLinkHighlight(int) = 0; | 218 virtual LinkHighlightImpl* GetLinkHighlight(int) = 0; |
| 219 virtual unsigned NumLinkHighlights() = 0; | 219 virtual unsigned NumLinkHighlights() = 0; |
| 220 virtual void EnableTapHighlights(HeapVector<Member<Node>>&) = 0; | 220 virtual void EnableTapHighlights(HeapVector<Member<Node>>&) = 0; |
| 221 virtual void SetCurrentInputEventForTest(const WebInputEvent*) = 0; | 221 virtual void SetCurrentInputEventForTest(const WebInputEvent*) = 0; |
| 222 }; | 222 }; |
| 223 } | 223 } |
| 224 | 224 |
| 225 #endif | 225 #endif |
| OLD | NEW |