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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 virtual void DidUpdateFullscreenSize() = 0; | 118 virtual void DidUpdateFullscreenSize() = 0; |
119 virtual void SetLastHiddenPagePopup(WebPagePopupImpl*) = 0; | 119 virtual void SetLastHiddenPagePopup(WebPagePopupImpl*) = 0; |
120 virtual WebInputEventResult SendContextMenuEvent(const WebKeyboardEvent&) = 0; | 120 virtual WebInputEventResult SendContextMenuEvent(const WebKeyboardEvent&) = 0; |
121 | 121 |
122 virtual WebSpellCheckClient* SpellCheckClient() = 0; | 122 virtual WebSpellCheckClient* SpellCheckClient() = 0; |
123 | 123 |
124 virtual CompositorAnimationTimeline* LinkHighlightsTimeline() const = 0; | 124 virtual CompositorAnimationTimeline* LinkHighlightsTimeline() const = 0; |
125 | 125 |
126 virtual WebSettingsImpl* SettingsImpl() = 0; | 126 virtual WebSettingsImpl* SettingsImpl() = 0; |
127 | 127 |
| 128 virtual void RequestDecode( |
| 129 sk_sp<SkImage>, |
| 130 std::unique_ptr<WTF::Function<void(bool)>> callback) = 0; |
| 131 |
128 using WebWidget::GetPagePopup; | 132 using WebWidget::GetPagePopup; |
129 virtual PagePopup* OpenPagePopup(PagePopupClient*) = 0; | 133 virtual PagePopup* OpenPagePopup(PagePopupClient*) = 0; |
130 virtual void ClosePagePopup(PagePopup*) = 0; | 134 virtual void ClosePagePopup(PagePopup*) = 0; |
131 virtual void CleanupPagePopup() = 0; | 135 virtual void CleanupPagePopup() = 0; |
132 virtual LocalDOMWindow* PagePopupWindow() const = 0; | 136 virtual LocalDOMWindow* PagePopupWindow() const = 0; |
133 | 137 |
134 virtual void InvalidateRect(const IntRect&) = 0; | 138 virtual void InvalidateRect(const IntRect&) = 0; |
135 // Indicates two things: | 139 // Indicates two things: |
136 // 1) This view may have a new layout now. | 140 // 1) This view may have a new layout now. |
137 // 2) Calling updateAllLifecyclePhases() is a no-op. | 141 // 2) Calling updateAllLifecyclePhases() is a no-op. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 virtual void EnableTapHighlightAtPoint( | 220 virtual void EnableTapHighlightAtPoint( |
217 const GestureEventWithHitTestResults& targeted_tap_event) = 0; | 221 const GestureEventWithHitTestResults& targeted_tap_event) = 0; |
218 virtual LinkHighlightImpl* GetLinkHighlight(int) = 0; | 222 virtual LinkHighlightImpl* GetLinkHighlight(int) = 0; |
219 virtual unsigned NumLinkHighlights() = 0; | 223 virtual unsigned NumLinkHighlights() = 0; |
220 virtual void EnableTapHighlights(HeapVector<Member<Node>>&) = 0; | 224 virtual void EnableTapHighlights(HeapVector<Member<Node>>&) = 0; |
221 virtual void SetCurrentInputEventForTest(const WebInputEvent*) = 0; | 225 virtual void SetCurrentInputEventForTest(const WebInputEvent*) = 0; |
222 }; | 226 }; |
223 } | 227 } |
224 | 228 |
225 #endif | 229 #endif |
OLD | NEW |