| Index: ui/aura/client/dispatcher_client.cc
|
| diff --git a/ui/aura/client/dispatcher_client.cc b/ui/aura/client/dispatcher_client.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ba992a0aac6ccd37402c3334a7f27e9ace386862
|
| --- /dev/null
|
| +++ b/ui/aura/client/dispatcher_client.cc
|
| @@ -0,0 +1,25 @@
|
| +// 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/aura/client/dispatcher_client.h"
|
| +
|
| +#include "ui/aura/root_window.h"
|
| +
|
| +namespace aura {
|
| +
|
| +namespace client {
|
| +
|
| +const char kDispatcherClient[] = "AuraDispatcherClient";
|
| +
|
| +void SetDispatcherClient(DispatcherClient* client) {
|
| + RootWindow::GetInstance()->SetProperty(kDispatcherClient, client);
|
| +}
|
| +
|
| +DispatcherClient* GetDispatcherClient() {
|
| + return reinterpret_cast<DispatcherClient*>(
|
| + RootWindow::GetInstance()->GetProperty(kDispatcherClient));
|
| +}
|
| +
|
| +} // namespace client
|
| +} // namespace aura
|
|
|