Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: third_party/WebKit/Source/core/exported/WebViewBase.h

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 139
136 // These functions only apply to the main frame. 140 // These functions only apply to the main frame.
137 // 141 //
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 virtual void EnableTapHighlightAtPoint( 223 virtual void EnableTapHighlightAtPoint(
220 const GestureEventWithHitTestResults& targeted_tap_event) = 0; 224 const GestureEventWithHitTestResults& targeted_tap_event) = 0;
221 virtual LinkHighlightImpl* GetLinkHighlight(int) = 0; 225 virtual LinkHighlightImpl* GetLinkHighlight(int) = 0;
222 virtual unsigned NumLinkHighlights() = 0; 226 virtual unsigned NumLinkHighlights() = 0;
223 virtual void EnableTapHighlights(HeapVector<Member<Node>>&) = 0; 227 virtual void EnableTapHighlights(HeapVector<Member<Node>>&) = 0;
224 virtual void SetCurrentInputEventForTest(const WebInputEvent*) = 0; 228 virtual void SetCurrentInputEventForTest(const WebInputEvent*) = 0;
225 }; 229 };
226 } 230 }
227 231
228 #endif 232 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698