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

Side by Side Diff: content/browser/web_contents/web_contents_view_guest.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_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void CloseTabAfterEventTracking() override; 72 void CloseTabAfterEventTracking() override;
73 #endif 73 #endif
74 74
75 // Backend implementation of RenderViewHostDelegateView. 75 // Backend implementation of RenderViewHostDelegateView.
76 void ShowContextMenu(RenderFrameHost* render_frame_host, 76 void ShowContextMenu(RenderFrameHost* render_frame_host,
77 const ContextMenuParams& params) override; 77 const ContextMenuParams& params) override;
78 void StartDragging(const DropData& drop_data, 78 void StartDragging(const DropData& drop_data,
79 blink::WebDragOperationsMask allowed_ops, 79 blink::WebDragOperationsMask allowed_ops,
80 const gfx::ImageSkia& image, 80 const gfx::ImageSkia& image,
81 const gfx::Vector2d& image_offset, 81 const gfx::Vector2d& image_offset,
82 const DragEventSourceInfo& event_info) override; 82 const DragEventSourceInfo& event_info,
83 RenderWidgetHostImpl* source_rwh) override;
83 void UpdateDragCursor(blink::WebDragOperation operation) override; 84 void UpdateDragCursor(blink::WebDragOperation operation) override;
84 void GotFocus() override; 85 void GotFocus() override;
85 void TakeFocus(bool reverse) override; 86 void TakeFocus(bool reverse) override;
86 87
87 private: 88 private:
88 // The WebContentsImpl whose contents we display. 89 // The WebContentsImpl whose contents we display.
89 WebContentsImpl* web_contents_; 90 WebContentsImpl* web_contents_;
90 BrowserPluginGuest* guest_; 91 BrowserPluginGuest* guest_;
91 // The platform dependent view backing this WebContentsView. 92 // The platform dependent view backing this WebContentsView.
92 // Calls to this WebContentsViewGuest are forwarded to |platform_view_|. 93 // Calls to this WebContentsViewGuest are forwarded to |platform_view_|.
93 std::unique_ptr<WebContentsView> platform_view_; 94 std::unique_ptr<WebContentsView> platform_view_;
94 gfx::Size size_; 95 gfx::Size size_;
95 96
96 // Delegate view for guest's platform view. 97 // Delegate view for guest's platform view.
97 RenderViewHostDelegateView* platform_view_delegate_view_; 98 RenderViewHostDelegateView* platform_view_delegate_view_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); 100 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest);
100 }; 101 };
101 102
102 } // namespace content 103 } // namespace content
103 104
104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ 105 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698