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

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

Issue 11275062: Move content\browser\web_contents to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DRAG_WIN_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/platform_thread.h" 12 #include "base/threading/platform_thread.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
15 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" 15 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 #include "ui/gfx/point.h" 17 #include "ui/gfx/point.h"
18 18
19 class SkBitmap; 19 class SkBitmap;
20 class WebDragDest;
21 class WebDragSource;
22 struct WebDropData; 20 struct WebDropData;
23 21
24 namespace gfx { 22 namespace gfx {
25 class ImageSkia; 23 class ImageSkia;
26 } 24 }
27 25
28 namespace content { 26 namespace content {
29 class DragDropThread; 27 class DragDropThread;
30 class WebContents; 28 class WebContents;
29 class WebDragDest;
30 class WebDragSource;
31 31
32 // Windows-specific drag-and-drop handling in WebContentsView. 32 // Windows-specific drag-and-drop handling in WebContentsView.
33 // If we are dragging a virtual file out of the browser, we use a background 33 // If we are dragging a virtual file out of the browser, we use a background
34 // thread to do the drag-and-drop because we do not want to run nested 34 // thread to do the drag-and-drop because we do not want to run nested
35 // message loop in the UI thread. For all other cases, the drag-and-drop happens 35 // message loop in the UI thread. For all other cases, the drag-and-drop happens
36 // in the UI thread. 36 // in the UI thread.
37 class CONTENT_EXPORT WebContentsDragWin 37 class CONTENT_EXPORT WebContentsDragWin
38 : NON_EXPORTED_BASE(public ui::DataObjectImpl::Observer), 38 : NON_EXPORTED_BASE(public ui::DataObjectImpl::Observer),
39 public base::RefCountedThreadSafe<WebContentsDragWin> { 39 public base::RefCountedThreadSafe<WebContentsDragWin> {
40 public: 40 public:
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool drag_ended_; 110 bool drag_ended_;
111 111
112 base::Callback<void()> drag_end_callback_; 112 base::Callback<void()> drag_end_callback_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(WebContentsDragWin); 114 DISALLOW_COPY_AND_ASSIGN(WebContentsDragWin);
115 }; 115 };
116 116
117 } // namespace content 117 } // namespace content
118 118
119 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_ 119 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_DRAG_WIN_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/test_web_contents.cc ('k') | content/browser/web_contents/web_contents_drag_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698