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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 virtual WebInputMethodController* 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& GetChromeClient() const = 0; |
185 | 185 |
186 // These methods are consumed by test code only. | 186 // These methods are consumed by test code only. |
187 virtual BrowserControls& GetBrowserControls() = 0; | 187 virtual BrowserControls& GetBrowserControls() = 0; |
188 virtual Element* FocusedElement() const = 0; | 188 virtual Element* FocusedElement() const = 0; |
189 virtual void EnableFakePageScaleAnimationForTesting(bool) = 0; | 189 virtual void EnableFakePageScaleAnimationForTesting(bool) = 0; |
190 virtual bool FakeDoubleTapAnimationPendingForTesting() const = 0; | 190 virtual bool FakeDoubleTapAnimationPendingForTesting() const = 0; |
191 virtual void AnimateDoubleTapZoom(const IntPoint&) = 0; | 191 virtual void AnimateDoubleTapZoom(const IntPoint&) = 0; |
192 virtual WebRect ComputeBlockBound(const WebPoint&, bool ignore_clipping) = 0; | 192 virtual WebRect ComputeBlockBound(const WebPoint&, bool ignore_clipping) = 0; |
193 virtual void ComputeScaleAndScrollForBlockRect( | 193 virtual void ComputeScaleAndScrollForBlockRect( |
194 const WebPoint& hit_point, | 194 const WebPoint& hit_point, |
(...skipping 21 matching lines...) Expand all 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 |