1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "ui/aura/client/drag_drop_delegate.h" 6 7 #include "ui/base/class_property.h" 8 9 DEFINE_EXPORTED_UI_CLASS_PROPERTY_TYPE(AURA_EXPORT, 10 aura::client::DragDropDelegate*) 11 12 namespace aura { 13 namespace client { 14 DEFINE_UI_CLASS_PROPERTY_KEY(DragDropDelegate *,kDragDropDelegateKey,nullptr)15DEFINE_UI_CLASS_PROPERTY_KEY(DragDropDelegate*, kDragDropDelegateKey, nullptr) 16 17 void SetDragDropDelegate(Window* window, DragDropDelegate* delegate) { 18 window->SetProperty(kDragDropDelegateKey, delegate); 19 } 20 GetDragDropDelegate(Window * window)21DragDropDelegate* GetDragDropDelegate(Window* window) { 22 return window->GetProperty(kDragDropDelegateKey); 23 } 24 25 } // namespace client 26 } // namespace aura 27