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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 8949010: Rename WindowDragDropDelegate->DragDropDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « ui/views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
===================================================================
--- ui/views/widget/native_widget_aura.cc (revision 114593)
+++ ui/views/widget/native_widget_aura.cc (working copy)
@@ -184,8 +184,7 @@
drop_helper_.reset(new DropHelper(GetWidget()->GetRootView()));
if (params.type != Widget::InitParams::TYPE_TOOLTIP &&
params.type != Widget::InitParams::TYPE_POPUP) {
- window_->SetProperty(aura::kDragDropDelegateKey,
- static_cast<aura::WindowDragDropDelegate*>(this));
+ aura::client::SetDragDropDelegate(window_, this);
}
aura::ActivationDelegate::SetActivationDelegate(window_, this);
@@ -510,11 +509,8 @@
void NativeWidgetAura::RunShellDrag(View* view,
const ui::OSExchangeData& data,
int operation) {
- aura::DragDropClient* client = static_cast<aura::DragDropClient*>(
- aura::RootWindow::GetInstance()->GetProperty(
- aura::kRootWindowDragDropClientKey));
- if (client)
- client->StartDragAndDrop(data, operation);
+ if (aura::client::GetDragDropClient())
+ aura::client::GetDragDropClient()->StartDragAndDrop(data, operation);
}
void NativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) {
@@ -681,7 +677,6 @@
}
void NativeWidgetAura::OnWindowDestroying() {
- window_->SetProperty(aura::kDragDropDelegateKey, NULL);
delegate_->OnNativeWidgetDestroying();
// If the aura::Window is destroyed, we can no longer show tooltips.
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698