blob: d5845aa0fa492e44e69d01e6db2fc013a77043fb [file] [log] [blame]
// Copyright (c) 2012 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/wm/public/window_move_client.h"
#include "ui/aura/window.h"
#include "ui/base/class_property.h"
namespace wm {
// A property key to store a client that handles window moves.
WindowMoveClient*, kWindowMoveClientKey, NULL);
void SetWindowMoveClient(aura::Window* window, WindowMoveClient* client) {
window->SetProperty(kWindowMoveClientKey, client);
WindowMoveClient* GetWindowMoveClient(aura::Window* window) {
return window->GetProperty(kWindowMoveClientKey);
} // namespace wm