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

Side by Side Diff: views/widget/drop_target_win.cc

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
« no previous file with comments | « views/widget/drop_target_win.h ('k') | views/widget/root_view_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 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 #include "views/widget/drop_target_win.h" 5 #include "views/widget/drop_target_win.h"
6 6
7 #include "app/drag_drop_types.h" 7 #include "app/drag_drop_types.h"
8 #include "app/os_exchange_data.h" 8 #include "app/os_exchange_data.h"
9 #include "app/os_exchange_data_provider_win.h" 9 #include "app/os_exchange_data_provider_win.h"
10 #include "gfx/point.h" 10 #include "gfx/point.h"
11 #include "views/widget/root_view.h" 11 #include "views/widget/root_view.h"
12 #include "views/widget/widget.h" 12 #include "views/widget/widget.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 DropTargetWin::DropTargetWin(RootView* root_view) 16 DropTargetWin::DropTargetWin(RootView* root_view)
17 : BaseDropTarget(root_view->GetWidget()->GetNativeView()), 17 : app::win::DropTarget(root_view->GetWidget()->GetNativeView()),
18 helper_(root_view) { 18 helper_(root_view) {
19 } 19 }
20 20
21 DropTargetWin::~DropTargetWin() { 21 DropTargetWin::~DropTargetWin() {
22 } 22 }
23 23
24 void DropTargetWin::ResetTargetViewIfEquals(View* view) { 24 void DropTargetWin::ResetTargetViewIfEquals(View* view) {
25 helper_.ResetTargetViewIfEquals(view); 25 helper_.ResetTargetViewIfEquals(view);
26 } 26 }
27 27
(...skipping 23 matching lines...) Expand all
51 51
52 OSExchangeData data(new OSExchangeDataProviderWin(data_object)); 52 OSExchangeData data(new OSExchangeDataProviderWin(data_object));
53 int drop_operation = DragDropTypes::DropEffectToDragOperation(effect); 53 int drop_operation = DragDropTypes::DropEffectToDragOperation(effect);
54 drop_operation = helper_.OnDragOver(data, root_view_location, 54 drop_operation = helper_.OnDragOver(data, root_view_location,
55 drop_operation); 55 drop_operation);
56 drop_operation = helper_.OnDrop(data, root_view_location, drop_operation); 56 drop_operation = helper_.OnDrop(data, root_view_location, drop_operation);
57 return DragDropTypes::DragOperationToDropEffect(drop_operation); 57 return DragDropTypes::DragOperationToDropEffect(drop_operation);
58 } 58 }
59 59
60 } // namespace views 60 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/drop_target_win.h ('k') | views/widget/root_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698