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

Side by Side Diff: content/browser/tab_contents/web_drag_source_win.h

Issue 9594012: Move TabContentsDragWin to content and rename it to WebContentsDragWin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/content_export.h"
11 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
13 #include "ui/base/dragdrop/drag_source.h" 12 #include "ui/base/dragdrop/drag_source.h"
14 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
15 #include "ui/gfx/point.h" 14 #include "ui/gfx/point.h"
16 15
17 class RenderViewHost; 16 class RenderViewHost;
18 17
19 namespace content { 18 namespace content {
20 class WebContents; 19 class WebContents;
21 } 20 }
22 21
23 // An IDropSource implementation for a TabContents. Handles notifications sent 22 // An IDropSource implementation for a TabContents. Handles notifications sent
24 // by an active drag-drop operation as the user mouses over other drop targets 23 // by an active drag-drop operation as the user mouses over other drop targets
25 // on their system. This object tells Windows whether or not the drag should 24 // on their system. This object tells Windows whether or not the drag should
26 // continue, and supplies the appropriate cursors. 25 // continue, and supplies the appropriate cursors.
27 class CONTENT_EXPORT WebDragSource : public ui::DragSource, 26 class WebDragSource : public ui::DragSource,
28 public content::NotificationObserver { 27 public content::NotificationObserver {
29 public: 28 public:
30 // Create a new DragSource for a given HWND and WebContents. 29 // Create a new DragSource for a given HWND and WebContents.
31 WebDragSource(gfx::NativeWindow source_wnd, 30 WebDragSource(gfx::NativeWindow source_wnd,
32 content::WebContents* web_contents); 31 content::WebContents* web_contents);
33 virtual ~WebDragSource(); 32 virtual ~WebDragSource();
34 33
35 // content::NotificationObserver implementation. 34 // content::NotificationObserver implementation.
36 virtual void Observe(int type, 35 virtual void Observe(int type,
37 const content::NotificationSource& source, 36 const content::NotificationSource& source,
38 const content::NotificationDetails& details); 37 const content::NotificationDetails& details);
(...skipping 23 matching lines...) Expand all
62 RenderViewHost* render_view_host_; 61 RenderViewHost* render_view_host_;
63 62
64 content::NotificationRegistrar registrar_; 63 content::NotificationRegistrar registrar_;
65 64
66 DWORD effect_; 65 DWORD effect_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(WebDragSource); 67 DISALLOW_COPY_AND_ASSIGN(WebDragSource);
69 }; 68 };
70 69
71 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ 70 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/web_contents_drag_win.cc ('k') | content/browser/tab_contents/web_drag_utils_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698