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

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

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 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
« no previous file with comments | « ui/views/widget/drop_target_win.h ('k') | ui/views/widget/gtk_views_fixed.h » ('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) 2010 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 #include "views/widget/drop_target_win.h" 5 #include "ui/views/widget/drop_target_win.h"
6 6
7 #include "ui/base/dragdrop/drag_drop_types.h" 7 #include "ui/base/dragdrop/drag_drop_types.h"
8 #include "ui/base/dragdrop/os_exchange_data.h" 8 #include "ui/base/dragdrop/os_exchange_data.h"
9 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" 9 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
11 #include "views/widget/root_view.h" 11 #include "ui/views/widget/root_view.h"
12 #include "views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 13
14 using ui::OSExchangeData; 14 using ui::OSExchangeData;
15 using ui::OSExchangeDataProviderWin; 15 using ui::OSExchangeDataProviderWin;
16 16
17 namespace views { 17 namespace views {
18 18
19 DropTargetWin::DropTargetWin(internal::RootView* root_view) 19 DropTargetWin::DropTargetWin(internal::RootView* root_view)
20 : ui::DropTarget(root_view->GetWidget()->GetNativeView()), 20 : ui::DropTarget(root_view->GetWidget()->GetNativeView()),
21 helper_(root_view) { 21 helper_(root_view) {
22 } 22 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 OSExchangeData data(new OSExchangeDataProviderWin(data_object)); 55 OSExchangeData data(new OSExchangeDataProviderWin(data_object));
56 int drop_operation = ui::DragDropTypes::DropEffectToDragOperation(effect); 56 int drop_operation = ui::DragDropTypes::DropEffectToDragOperation(effect);
57 drop_operation = helper_.OnDragOver(data, root_view_location, 57 drop_operation = helper_.OnDragOver(data, root_view_location,
58 drop_operation); 58 drop_operation);
59 drop_operation = helper_.OnDrop(data, root_view_location, drop_operation); 59 drop_operation = helper_.OnDrop(data, root_view_location, drop_operation);
60 return ui::DragDropTypes::DragOperationToDropEffect(drop_operation); 60 return ui::DragDropTypes::DragOperationToDropEffect(drop_operation);
61 } 61 }
62 62
63 } // namespace views 63 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/drop_target_win.h ('k') | ui/views/widget/gtk_views_fixed.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698