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

Unified Diff: ui/aura/client/dispatcher_client.h

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, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/client/dispatcher_client.h
diff --git a/ui/aura/client/dispatcher_client.h b/ui/aura/client/dispatcher_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..099e370a0b0ca77eeb98d2481583d9591fa4602f
--- /dev/null
+++ b/ui/aura/client/dispatcher_client.h
@@ -0,0 +1,29 @@
+// 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.
+
+#ifndef UI_AURA_CLIENT_DISPATCHER_CLIENT_H_
+#define UI_AURA_CLIENT_DISPATCHER_CLIENT_H_
+#pragma once
+
+#include "ui/aura/aura_export.h"
+#include "base/message_loop.h"
+
+namespace aura {
+
+namespace client {
+
+// An interface implemented by an object which handles nested dispatchers.
+class AURA_EXPORT DispatcherClient {
+ public:
+ virtual void RunWithDispatcher(MessageLoop::Dispatcher* dispatcher,
+ bool nestable_tasks_allowed) = 0;
+};
+
+AURA_EXPORT void SetDispatcherClient(DispatcherClient* client);
+AURA_EXPORT DispatcherClient* GetDispatcherClient();
+
+} // namespace client
+} // namespace aura
+
+#endif // UI_AURA_CLIENT_DISPATCHER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698