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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. 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/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 class RenderViewHost; 17 class RenderViewHost;
17
18 namespace content {
19 class WebContents; 18 class WebContents;
20 } 19 }
21 20
22 // An IDropSource implementation for a TabContents. Handles notifications sent 21 // An IDropSource implementation for a TabContents. Handles notifications sent
23 // by an active drag-drop operation as the user mouses over other drop targets 22 // by an active drag-drop operation as the user mouses over other drop targets
24 // on their system. This object tells Windows whether or not the drag should 23 // on their system. This object tells Windows whether or not the drag should
25 // continue, and supplies the appropriate cursors. 24 // continue, and supplies the appropriate cursors.
26 class WebDragSource : public ui::DragSource, 25 class WebDragSource : public ui::DragSource,
27 public content::NotificationObserver { 26 public content::NotificationObserver {
28 public: 27 public:
(...skipping 22 matching lines...) Expand all
51 // OnDragSourceDrop schedules its main work to be done after IDropTarget::Drop 50 // OnDragSourceDrop schedules its main work to be done after IDropTarget::Drop
52 // by posting a task to this function. 51 // by posting a task to this function.
53 void DelayedOnDragSourceDrop(); 52 void DelayedOnDragSourceDrop();
54 53
55 // Keep a reference to the window so we can translate the cursor position. 54 // Keep a reference to the window so we can translate the cursor position.
56 gfx::NativeWindow source_wnd_; 55 gfx::NativeWindow source_wnd_;
57 56
58 // We use this as a channel to the renderer to tell it about various drag 57 // We use this as a channel to the renderer to tell it about various drag
59 // drop events that it needs to know about (such as when a drag operation it 58 // drop events that it needs to know about (such as when a drag operation it
60 // initiated terminates). 59 // initiated terminates).
61 RenderViewHost* render_view_host_; 60 content::RenderViewHost* render_view_host_;
62 61
63 content::NotificationRegistrar registrar_; 62 content::NotificationRegistrar registrar_;
64 63
65 DWORD effect_; 64 DWORD effect_;
66 65
67 DISALLOW_COPY_AND_ASSIGN(WebDragSource); 66 DISALLOW_COPY_AND_ASSIGN(WebDragSource);
68 }; 67 };
69 68
70 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ 69 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/web_drag_source_mac.mm ('k') | content/browser/webui/web_ui_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698