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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2501213002: Drag-and-drop: dragSourceEndedAt, dragSourceSystemDragEnded (Closed)
Patch Set: Rebased. Added check for !GetWebWidget(). Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const gfx::Point& screen_pt, 192 const gfx::Point& screen_pt,
193 blink::WebDragOperationsMask operations_allowed, 193 blink::WebDragOperationsMask operations_allowed,
194 int key_modifiers) override; 194 int key_modifiers) override;
195 void DragTargetDragLeave() override; 195 void DragTargetDragLeave() override;
196 // |drop_data| must have been filtered. The embedder should call 196 // |drop_data| must have been filtered. The embedder should call
197 // FilterDropData before passing the drop data to RWHI. 197 // FilterDropData before passing the drop data to RWHI.
198 void DragTargetDrop(const DropData& drop_data, 198 void DragTargetDrop(const DropData& drop_data,
199 const gfx::Point& client_pt, 199 const gfx::Point& client_pt,
200 const gfx::Point& screen_pt, 200 const gfx::Point& screen_pt,
201 int key_modifiers) override; 201 int key_modifiers) override;
202 void DragSourceEndedAt(int client_x,
203 int client_y,
204 int screen_x,
205 int screen_y,
206 blink::WebDragOperation operation) override;
207 void DragSourceSystemDragEnded() override;
202 void FilterDropData(DropData* drop_data) override; 208 void FilterDropData(DropData* drop_data) override;
203 209
204 // Notification that the screen info has changed. 210 // Notification that the screen info has changed.
205 void NotifyScreenInfoChanged(); 211 void NotifyScreenInfoChanged();
206 212
207 // Forces redraw in the renderer and when the update reaches the browser 213 // Forces redraw in the renderer and when the update reaches the browser
208 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. 214 // grabs snapshot from the compositor. Returns PNG-encoded snapshot.
209 using GetSnapshotFromBrowserCallback = 215 using GetSnapshotFromBrowserCallback =
210 base::Callback<void(const unsigned char*, size_t)>; 216 base::Callback<void(const unsigned char*, size_t)>;
211 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback); 217 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback);
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 #endif 899 #endif
894 900
895 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 901 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
896 902
897 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 903 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
898 }; 904 };
899 905
900 } // namespace content 906 } // namespace content
901 907
902 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 908 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698