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

Side by Side Diff: chrome/views/widget/root_view_drop_target.cc

Issue 115012: Move: drag_drop_types, favicon_size, icon_util, insets, path, message_box_fla... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | « chrome/views/widget/root_view_drop_target.h ('k') | chrome/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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/views/widget/root_view_drop_target.h" 5 #include "chrome/views/widget/root_view_drop_target.h"
6 6
7 #include "app/drag_drop_types.h"
7 #include "base/gfx/point.h" 8 #include "base/gfx/point.h"
8 #include "chrome/common/drag_drop_types.h"
9 #include "chrome/views/widget/root_view.h" 9 #include "chrome/views/widget/root_view.h"
10 #include "chrome/views/widget/widget.h" 10 #include "chrome/views/widget/widget.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 RootViewDropTarget::RootViewDropTarget(RootView* root_view) 14 RootViewDropTarget::RootViewDropTarget(RootView* root_view)
15 : BaseDropTarget(root_view->GetWidget()->GetNativeView()), 15 : BaseDropTarget(root_view->GetWidget()->GetNativeView()),
16 root_view_(root_view), 16 root_view_(root_view),
17 target_view_(NULL), 17 target_view_(NULL),
18 deepest_view_(NULL) { 18 deepest_view_(NULL) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // drop. 109 // drop.
110 deepest_view_ = view; 110 deepest_view_ = view;
111 while (view && view != target_view_ && 111 while (view && view != target_view_ &&
112 (!view->IsEnabled() || !view->CanDrop(data))) { 112 (!view->IsEnabled() || !view->CanDrop(data))) {
113 view = view->GetParent(); 113 view = view->GetParent();
114 } 114 }
115 return view; 115 return view;
116 } 116 }
117 117
118 } // namespace views 118 } // namespace views
OLDNEW
« no previous file with comments | « chrome/views/widget/root_view_drop_target.h ('k') | chrome/views/widget/root_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698