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/cursor_client.h" 6 7 #include "ui/aura/window.h" 8 #include "ui/base/class_property.h" 9 10 DEFINE_UI_CLASS_PROPERTY_TYPE(aura::client::CursorClient*) 11 12 namespace aura { 13 namespace client { 14 15 // A property key to store a client that handles window moves. DEFINE_UI_CLASS_PROPERTY_KEY(CursorClient *,kCursorClientKey,nullptr)16DEFINE_UI_CLASS_PROPERTY_KEY(CursorClient*, kCursorClientKey, nullptr) 17 18 void SetCursorClient(Window* window, CursorClient* client) { 19 window->SetProperty(kCursorClientKey, client); 20 } 21 GetCursorClient(Window * window)22CursorClient* GetCursorClient(Window* window) { 23 return window->GetProperty(kCursorClientKey); 24 } 25 26 } // namespace client 27 } // namespace aura 28