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

Side by Side Diff: content/browser/web_contents/web_drag_source_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_SOURCE_WIN_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ 6 #define CONTENT_BROWSER_WEB_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/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
11 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
12 #include "ui/base/dragdrop/drag_source.h" 12 #include "ui/base/dragdrop/drag_source.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 #include "ui/gfx/point.h" 14 #include "ui/gfx/point.h"
15 15
16 namespace content { 16 namespace content {
17 class RenderViewHost; 17 class RenderViewHost;
18 class WebContents; 18 class WebContents;
19 } 19 }
20 20
21 // An IDropSource implementation for a TabContents. Handles notifications sent 21 // An IDropSource implementation for a WebContentsImpl. Handles notifications
22 // by an active drag-drop operation as the user mouses over other drop targets 22 // sent by an active drag-drop operation as the user mouses over other drop
23 // on their system. This object tells Windows whether or not the drag should 23 // targets on their system. This object tells Windows whether or not the drag
24 // continue, and supplies the appropriate cursors. 24 // should continue, and supplies the appropriate cursors.
25 class WebDragSource : public ui::DragSource, 25 class WebDragSource : public ui::DragSource,
26 public content::NotificationObserver { 26 public content::NotificationObserver {
27 public: 27 public:
28 // Create a new DragSource for a given HWND and WebContents. 28 // Create a new DragSource for a given HWND and WebContents.
29 WebDragSource(gfx::NativeWindow source_wnd, 29 WebDragSource(gfx::NativeWindow source_wnd,
30 content::WebContents* web_contents); 30 content::WebContents* web_contents);
31 virtual ~WebDragSource(); 31 virtual ~WebDragSource();
32 32
33 // content::NotificationObserver implementation. 33 // content::NotificationObserver implementation.
34 virtual void Observe(int type, 34 virtual void Observe(int type,
(...skipping 25 matching lines...) Expand all
60 content::RenderViewHost* render_view_host_; 60 content::RenderViewHost* render_view_host_;
61 61
62 content::NotificationRegistrar registrar_; 62 content::NotificationRegistrar registrar_;
63 63
64 DWORD effect_; 64 DWORD effect_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(WebDragSource); 66 DISALLOW_COPY_AND_ASSIGN(WebDragSource);
67 }; 67 };
68 68
69 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ 69 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac.mm ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698