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

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

Issue 2505113002: Drag-and-drop: Target drag messages to specific RenderWidgets. (Closed)
Patch Set: Small fix. 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, 202 void DragSourceEndedAt(const gfx::Point& client_pt,
203 int client_y, 203 const gfx::Point& screen_pt,
204 int screen_x,
205 int screen_y,
206 blink::WebDragOperation operation) override; 204 blink::WebDragOperation operation) override;
207 void DragSourceSystemDragEnded() override; 205 void DragSourceSystemDragEnded() override;
208 void FilterDropData(DropData* drop_data) override; 206 void FilterDropData(DropData* drop_data) override;
209 207
210 // Notification that the screen info has changed. 208 // Notification that the screen info has changed.
211 void NotifyScreenInfoChanged(); 209 void NotifyScreenInfoChanged();
212 210
213 // Forces redraw in the renderer and when the update reaches the browser 211 // Forces redraw in the renderer and when the update reaches the browser
214 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. 212 // grabs snapshot from the compositor. Returns PNG-encoded snapshot.
215 using GetSnapshotFromBrowserCallback = 213 using GetSnapshotFromBrowserCallback =
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 return hang_monitor_event_type_; 560 return hang_monitor_event_type_;
563 } 561 }
564 blink::WebInputEvent::Type last_event_type() const { 562 blink::WebInputEvent::Type last_event_type() const {
565 return last_event_type_; 563 return last_event_type_;
566 } 564 }
567 565
568 bool renderer_initialized() const { return renderer_initialized_; } 566 bool renderer_initialized() const { return renderer_initialized_; }
569 567
570 bool needs_begin_frames() const { return needs_begin_frames_; } 568 bool needs_begin_frames() const { return needs_begin_frames_; }
571 569
570 base::WeakPtr<RenderWidgetHostImpl> GetWeakPtr() {
571 return weak_factory_.GetWeakPtr();
572 }
573
572 protected: 574 protected:
573 // --------------------------------------------------------------------------- 575 // ---------------------------------------------------------------------------
574 // The following method is overridden by RenderViewHost to send upwards to 576 // The following method is overridden by RenderViewHost to send upwards to
575 // its delegate. 577 // its delegate.
576 578
577 // Callback for notification that we failed to receive any rendered graphics 579 // Callback for notification that we failed to receive any rendered graphics
578 // from a newly loaded page. Used for testing. 580 // from a newly loaded page. Used for testing.
579 virtual void NotifyNewContentRenderingTimeoutForTesting() {} 581 virtual void NotifyNewContentRenderingTimeoutForTesting() {}
580 582
581 // --------------------------------------------------------------------------- 583 // ---------------------------------------------------------------------------
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 #endif 901 #endif
900 902
901 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 903 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
902 904
903 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 905 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
904 }; 906 };
905 907
906 } // namespace content 908 } // namespace content
907 909
908 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 910 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698