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

Unified Diff: ash/accelerators/accelerator_handler.h

Issue 9224001: Fixes issue with accelerators when a menu is open (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer diff 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
« no previous file with comments | « no previous file | ash/accelerators/accelerator_handler.cc » ('j') | ash/accelerators/accelerator_handler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_handler.h
diff --git a/ash/accelerators/accelerator_handler.h b/ash/accelerators/accelerator_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..8a140912ec08b8ef1383de207926c337066c143f
--- /dev/null
+++ b/ash/accelerators/accelerator_handler.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
oshima 2012/01/23 18:06:39 2012
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_ACCELERATORS_ACCELERATOR_HANDLER_H_
+#define ASH_ACCELERATORS_ACCELERATOR_HANDLER_H_
+#pragma once
+
+#include "ash/ash_export.h"
+#include "base/message_loop.h"
+
+namespace ash {
+
+#if defined(OS_MACOSX)
+class ASH_EXPORT AcceleratorHandler {
+#else
+class ASH_EXPORT AcceleratorHandler : public MessageLoop::Dispatcher {
oshima 2012/01/23 18:06:39 There is an "AcceleratorHandler" class in views/fo
pkotwicz 2012/01/23 19:33:02 Oshima, do you have any suggestions for names?
oshima 2012/01/23 21:40:52 AcceleratorDispatcher? Hmm, I'm not good at coming
+#endif //defined(OS_MACOSX)
+ public:
+ AcceleratorHandler(MessageLoop::Dispatcher* nested_dispatcher);
oshima 2012/01/23 18:06:39 explicit
+
+#if defined(OS_LINUX)
+ virtual base::MessagePumpDispatcher::DispatchStatus Dispatch(
+ XEvent* xev) OVERRIDE;
+#endif
+ protected:
oshima 2012/01/23 18:06:39 can this be private?
+ MessageLoop::Dispatcher* nested_dispatcher_;
oshima 2012/01/23 18:06:39 DISALLOW_COPY_AND_ASSIGN
+};
+
+} // namespace ash
+
+#endif // ASH_ACCELERATORS_ACCELERATOR_HANDLER_H_
« no previous file with comments | « no previous file | ash/accelerators/accelerator_handler.cc » ('j') | ash/accelerators/accelerator_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698