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

Side by Side Diff: chrome/browser/tab_contents/web_drop_target_win.h

Issue 3822007: Move BaseDropTarget and BaseDragSource from base to app/win. Remove the "Base... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_WEB_DROP_TARGET_WIN_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_DROP_TARGET_WIN_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DROP_TARGET_WIN_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DROP_TARGET_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/base_drop_target.h" 9 #include "app/win/drop_target.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h"
12 12
13 class InterstitialDropTarget; 13 class InterstitialDropTarget;
14 class RenderViewHost; 14 class RenderViewHost;
15 class TabContents; 15 class TabContents;
16 16
17 /////////////////////////////////////////////////////////////////////////////// 17 // A helper object that provides drop capabilities to a TabContents. The
18 // 18 // DropTarget handles drags that enter the region of the TabContents by
19 // WebDropTarget 19 // passing on the events to the renderer.
20 // 20 class WebDropTarget : public app::win::DropTarget {
21 // A helper object that provides drop capabilities to a TabContents. The
22 // DropTarget handles drags that enter the region of the TabContents by
23 // passing on the events to the renderer.
24 //
25 class WebDropTarget : public BaseDropTarget {
26 public: 21 public:
27 // Create a new WebDropTarget associating it with the given HWND and 22 // Create a new WebDropTarget associating it with the given HWND and
28 // TabContents. 23 // TabContents.
29 WebDropTarget(HWND source_hwnd, TabContents* contents); 24 WebDropTarget(HWND source_hwnd, TabContents* contents);
30 virtual ~WebDropTarget(); 25 virtual ~WebDropTarget();
31 26
32 void set_drag_cursor(WebKit::WebDragOperation op) { 27 void set_drag_cursor(WebKit::WebDragOperation op) {
33 drag_cursor_ = op; 28 drag_cursor_ = op;
34 } 29 }
35 30
(...skipping 30 matching lines...) Expand all
66 WebKit::WebDragOperation drag_cursor_; 61 WebKit::WebDragOperation drag_cursor_;
67 62
68 // A special drop target handler for when we try to d&d while an interstitial 63 // A special drop target handler for when we try to d&d while an interstitial
69 // page is showing. 64 // page is showing.
70 scoped_ptr<InterstitialDropTarget> interstitial_drop_target_; 65 scoped_ptr<InterstitialDropTarget> interstitial_drop_target_;
71 66
72 DISALLOW_COPY_AND_ASSIGN(WebDropTarget); 67 DISALLOW_COPY_AND_ASSIGN(WebDropTarget);
73 }; 68 };
74 69
75 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DROP_TARGET_WIN_H_ 70 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DROP_TARGET_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_drag_source_win.cc ('k') | chrome/browser/tab_contents/web_drop_target_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698