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

Side by Side Diff: content/browser/web_contents/web_contents_view_child_frame.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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/renderer_host/render_view_host_delegate_view.h" 9 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
10 #include "content/browser/web_contents/web_contents_view.h" 10 #include "content/browser/web_contents/web_contents_view.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void CloseTabAfterEventTracking() override; 54 void CloseTabAfterEventTracking() override;
55 #endif 55 #endif
56 56
57 // Backend implementation of RenderViewHostDelegateView. 57 // Backend implementation of RenderViewHostDelegateView.
58 void ShowContextMenu(RenderFrameHost* render_frame_host, 58 void ShowContextMenu(RenderFrameHost* render_frame_host,
59 const ContextMenuParams& params) override; 59 const ContextMenuParams& params) override;
60 void StartDragging(const DropData& drop_data, 60 void StartDragging(const DropData& drop_data,
61 blink::WebDragOperationsMask allowed_ops, 61 blink::WebDragOperationsMask allowed_ops,
62 const gfx::ImageSkia& image, 62 const gfx::ImageSkia& image,
63 const gfx::Vector2d& image_offset, 63 const gfx::Vector2d& image_offset,
64 const DragEventSourceInfo& event_info) override; 64 const DragEventSourceInfo& event_info,
65 RenderWidgetHostImpl* source_rwh) override;
65 void UpdateDragCursor(blink::WebDragOperation operation) override; 66 void UpdateDragCursor(blink::WebDragOperation operation) override;
66 void GotFocus() override; 67 void GotFocus() override;
67 void TakeFocus(bool reverse) override; 68 void TakeFocus(bool reverse) override;
68 69
69 private: 70 private:
70 WebContentsView* GetOuterView(); 71 WebContentsView* GetOuterView();
71 const WebContentsView* GetOuterView() const; 72 const WebContentsView* GetOuterView() const;
72 73
73 // The WebContentsImpl whose contents we display. 74 // The WebContentsImpl whose contents we display.
74 WebContentsImpl* web_contents_; 75 WebContentsImpl* web_contents_;
75 76
76 // The delegate ownership is passed to WebContentsView. 77 // The delegate ownership is passed to WebContentsView.
77 std::unique_ptr<WebContentsViewDelegate> delegate_; 78 std::unique_ptr<WebContentsViewDelegate> delegate_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(WebContentsViewChildFrame); 80 DISALLOW_COPY_AND_ASSIGN(WebContentsViewChildFrame);
80 }; 81 };
81 82
82 } // namespace content 83 } // namespace content
83 84
84 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_ 85 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698