OLD | NEW |
(Empty) | |
| 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/dispatcher_client.h" |
| 6 |
| 7 #include "ui/aura/root_window.h" |
| 8 |
| 9 namespace aura { |
| 10 |
| 11 namespace client { |
| 12 |
| 13 namespace { |
| 14 |
| 15 // A property key to store the nested dispatcher controller. The type of the |
| 16 // value is |aura::client::DispatcherClient*|. |
| 17 const char kDispatcherClient[] = "AuraDispatcherClient"; |
| 18 |
| 19 } // namespace |
| 20 |
| 21 void SetDispatcherClient(DispatcherClient* client) { |
| 22 RootWindow::GetInstance()->SetProperty(kDispatcherClient, client); |
| 23 } |
| 24 |
| 25 DispatcherClient* GetDispatcherClient() { |
| 26 return reinterpret_cast<DispatcherClient*>( |
| 27 RootWindow::GetInstance()->GetProperty(kDispatcherClient)); |
| 28 } |
| 29 |
| 30 } // namespace client |
| 31 } // namespace aura |
OLD | NEW |