Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1291)

Side by Side Diff: ui/aura/client/dispatcher_client.cc

Issue 9224001: Fixes issue with accelerators when a menu is open (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as requested Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698