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

Side by Side Diff: content/browser/web_contents/web_drag_dest_win.h

Issue 10038026: TabContents -> WebContentsImpl, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: *web*contents Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DRAG_DEST_WIN_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_WIN_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_WIN_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
12 #include "ui/base/dragdrop/drop_target.h" 12 #include "ui/base/dragdrop/drop_target.h"
13 13
14 class InterstitialDropTarget; 14 class InterstitialDropTarget;
15 15
16 namespace content { 16 namespace content {
17 class RenderViewHost; 17 class RenderViewHost;
18 class WebContents; 18 class WebContents;
19 class WebDragDestDelegate; 19 class WebDragDestDelegate;
20 } 20 }
21 21
22 // A helper object that provides drop capabilities to a TabContents. The 22 // A helper object that provides drop capabilities to a WebContentsImpl. The
23 // DropTarget handles drags that enter the region of the WebContents by 23 // DropTarget handles drags that enter the region of the WebContents by
24 // passing on the events to the renderer. 24 // passing on the events to the renderer.
25 class CONTENT_EXPORT WebDragDest : public ui::DropTarget { 25 class CONTENT_EXPORT WebDragDest : public ui::DropTarget {
26 public: 26 public:
27 // Create a new WebDragDest associating it with the given HWND and 27 // Create a new WebDragDest associating it with the given HWND and
28 // WebContents. 28 // WebContents.
29 WebDragDest(HWND source_hwnd, content::WebContents* contents); 29 WebDragDest(HWND source_hwnd, content::WebContents* contents);
30 virtual ~WebDragDest(); 30 virtual ~WebDragDest();
31 31
32 void set_drag_cursor(WebKit::WebDragOperation op) { 32 void set_drag_cursor(WebKit::WebDragOperation op) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // page is showing. 72 // page is showing.
73 scoped_ptr<InterstitialDropTarget> interstitial_drop_target_; 73 scoped_ptr<InterstitialDropTarget> interstitial_drop_target_;
74 74
75 // A delegate that can receive drag information about drag events. 75 // A delegate that can receive drag information about drag events.
76 content::WebDragDestDelegate* delegate_; 76 content::WebDragDestDelegate* delegate_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(WebDragDest); 78 DISALLOW_COPY_AND_ASSIGN(WebDragDest);
79 }; 79 };
80 80
81 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_WIN_H_ 81 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_WIN_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_win.cc ('k') | content/browser/web_contents/web_drag_source_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698