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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.h

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase + update Created 3 years, 7 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 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 #ifndef WebFrameWidgetBase_h 5 #ifndef WebFrameWidgetBase_h
6 #define WebFrameWidgetBase_h 6 #define WebFrameWidgetBase_h
7 7
8 #include "core/clipboard/DataObject.h" 8 #include "core/clipboard/DataObject.h"
9 #include "platform/UserGestureIndicator.h" 9 #include "platform/UserGestureIndicator.h"
10 #include "platform/wtf/Assertions.h" 10 #include "platform/wtf/Assertions.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 bool DoingDragAndDrop() { return doing_drag_and_drop_; } 75 bool DoingDragAndDrop() { return doing_drag_and_drop_; }
76 static void SetIgnoreInputEvents(bool value) { ignore_input_events_ = value; } 76 static void SetIgnoreInputEvents(bool value) { ignore_input_events_ = value; }
77 static bool IgnoreInputEvents() { return ignore_input_events_; } 77 static bool IgnoreInputEvents() { return ignore_input_events_; }
78 78
79 // WebWidget methods. 79 // WebWidget methods.
80 void DidAcquirePointerLock() override; 80 void DidAcquirePointerLock() override;
81 void DidNotAcquirePointerLock() override; 81 void DidNotAcquirePointerLock() override;
82 void DidLosePointerLock() override; 82 void DidLosePointerLock() override;
83 83
84 // Image decode functionality.
85 void RequestDecode(sk_sp<SkImage>,
86 std::unique_ptr<WTF::Function<void(bool)>> callback);
87
84 protected: 88 protected:
85 enum DragAction { kDragEnter, kDragOver }; 89 enum DragAction { kDragEnter, kDragOver };
86 90
87 // Consolidate some common code between starting a drag over a target and 91 // Consolidate some common code between starting a drag over a target and
88 // updating a drag over a target. If we're starting a drag, |isEntering| 92 // updating a drag over a target. If we're starting a drag, |isEntering|
89 // should be true. 93 // should be true.
90 WebDragOperation DragTargetDragEnterOrOver(const WebPoint& point_in_viewport, 94 WebDragOperation DragTargetDragEnterOrOver(const WebPoint& point_in_viewport,
91 const WebPoint& screen_point, 95 const WebPoint& screen_point,
92 DragAction, 96 DragAction,
93 int modifiers); 97 int modifiers);
(...skipping 30 matching lines...) Expand all
124 RefPtr<UserGestureToken> pointer_lock_gesture_token_; 128 RefPtr<UserGestureToken> pointer_lock_gesture_token_;
125 129
126 friend class WebViewImpl; 130 friend class WebViewImpl;
127 }; 131 };
128 132
129 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); 133 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true);
130 134
131 } // namespace blink 135 } // namespace blink
132 136
133 #endif 137 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698