blob: 43680507ce1000efc6bc4ec4d63f50136c00d979 [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/public/window_move_client.h"
#include "ui/aura/window.h"
#include "ui/base/class_property.h"
DEFINE_UI_CLASS_PROPERTY_TYPE(wm::WindowMoveClient*)
namespace wm {
// A property key to store a client that handles window moves.
DEFINE_UI_CLASS_PROPERTY_KEY(WindowMoveClient*, kWindowMoveClientKey, nullptr)
void SetWindowMoveClient(aura::Window* window, WindowMoveClient* client) {
window->SetProperty(kWindowMoveClientKey, client);
}
WindowMoveClient* GetWindowMoveClient(aura::Window* window) {
return window->GetProperty(kWindowMoveClientKey);
}
} // namespace wm