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

Side by Side Diff: ui/views/widget/drop_helper.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_helper.h ('k') | ui/views/widget/drop_target_gtk.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) 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 #include "views/widget/drop_helper.h" 5 #include "ui/views/widget/drop_helper.h"
6 6
7 #include "ui/base/dragdrop/drag_drop_types.h" 7 #include "ui/base/dragdrop/drag_drop_types.h"
8 #include "ui/views/widget/widget.h"
8 #include "views/view.h" 9 #include "views/view.h"
9 #include "views/widget/widget.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 DropHelper::DropHelper(View* root_view) 13 DropHelper::DropHelper(View* root_view)
14 : root_view_(root_view), 14 : root_view_(root_view),
15 target_view_(NULL), 15 target_view_(NULL),
16 deepest_view_(NULL) { 16 deepest_view_(NULL) {
17 } 17 }
18 18
19 DropHelper::~DropHelper() { 19 DropHelper::~DropHelper() {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 drag_operation); 147 drag_operation);
148 return target_view_->OnDragUpdated(enter_event); 148 return target_view_->OnDragUpdated(enter_event);
149 } 149 }
150 150
151 void DropHelper::NotifyDragExit() { 151 void DropHelper::NotifyDragExit() {
152 if (target_view_) 152 if (target_view_)
153 target_view_->OnDragExited(); 153 target_view_->OnDragExited();
154 } 154 }
155 155
156 } // namespace views 156 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/drop_helper.h ('k') | ui/views/widget/drop_target_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698