blob: 27e05a5537c0ad769f5e35c0be00289fb054f663 [file] [log] [blame]
// Copyright 2018 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 "ui/platform_window/platform_window_handler/wm_drag_handler.h"
#include "ui/base/class_property.h"
#include "ui/platform_window/platform_window_base.h"
DEFINE_UI_CLASS_PROPERTY_TYPE(ui::WmDragHandler*)
namespace ui {
DEFINE_UI_CLASS_PROPERTY_KEY(WmDragHandler*, kWmDragHandlerKey, nullptr)
void SetWmDragHandler(PlatformWindowBase* platform_window,
WmDragHandler* drag_handler) {
platform_window->SetProperty(kWmDragHandlerKey, drag_handler);
}
WmDragHandler* GetWmDragHandler(const PlatformWindowBase& platform_window) {
return platform_window.GetProperty(kWmDragHandlerKey);
}
} // namespace ui