| 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/accelerator_client.h" |
| 6 |
| 7 #include "ui/aura/root_window.h" |
| 8 |
| 9 namespace aura { |
| 10 |
| 11 namespace client { |
| 12 |
| 13 const char kMenuAcceleratorClient[] = "AuraMenuAcceleratorClient"; |
| 14 |
| 15 void SetAcceleratorClient(AcceleratorClient* client) { |
| 16 RootWindow::GetInstance()->SetProperty(kMenuAcceleratorClient, client); |
| 17 } |
| 18 |
| 19 AcceleratorClient* GetAcceleratorClient() { |
| 20 return reinterpret_cast<AcceleratorClient*>( |
| 21 RootWindow::GetInstance()->GetProperty(kMenuAcceleratorClient)); |
| 22 } |
| 23 |
| 24 } // namespace client |
| 25 } // namespace aura |
| OLD | NEW |