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

Unified Diff: views/widget/root_view_win.cc

Issue 6507028: Remove usages of RootView from View by moving relevant RootView API methods t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/root_view_gtk.cc ('k') | views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/root_view_win.cc
===================================================================
--- views/widget/root_view_win.cc (revision 75181)
+++ views/widget/root_view_win.cc (working copy)
@@ -1,18 +1,11 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "views/widget/root_view.h"
-#include "ui/base/dragdrop/drag_drop_types.h"
-#include "ui/base/dragdrop/drag_source.h"
-#include "ui/base/dragdrop/os_exchange_data.h"
-#include "ui/base/dragdrop/os_exchange_data_provider_win.h"
#include "ui/gfx/canvas_skia.h"
-using ui::OSExchangeData;
-using ui::OSExchangeDataProviderWin;
-
namespace views {
void RootView::OnPaint(HWND hwnd) {
@@ -35,23 +28,4 @@
}
}
-void RootView::StartDragForViewFromMouseEvent(
- View* view,
- const OSExchangeData& data,
- int operation) {
- // NOTE: view may be null.
- drag_view_ = view;
- scoped_refptr<ui::DragSource> drag_source(new ui::DragSource);
- DWORD effects;
- DoDragDrop(OSExchangeDataProviderWin::GetIDataObject(data), drag_source,
- ui::DragDropTypes::DragOperationToDropEffect(operation), &effects);
- // If the view is removed during the drag operation, drag_view_ is set to
- // NULL.
- if (view && drag_view_ == view) {
- View* drag_view = drag_view_;
- drag_view_ = NULL;
- drag_view->OnDragDone();
- }
}
-
-}
« no previous file with comments | « views/widget/root_view_gtk.cc ('k') | views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698