summaryrefslogtreecommitdiffstats
path: root/views/focus/accelerator_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/focus/accelerator_handler.h')
-rw-r--r--views/focus/accelerator_handler.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/views/focus/accelerator_handler.h b/views/focus/accelerator_handler.h
index 618f541..c440c6b 100644
--- a/views/focus/accelerator_handler.h
+++ b/views/focus/accelerator_handler.h
@@ -5,10 +5,16 @@
#ifndef VIEWS_FOCUS_ACCELERATOR_HANDLER_H_
#define VIEWS_FOCUS_ACCELERATOR_HANDLER_H_
+#include "build/build_config.h"
+
#if defined(OS_LINUX)
#include <gdk/gdk.h>
#endif
+#if defined(OS_WIN)
+#include <set>
+#endif
+
#include "base/message_loop.h"
namespace views {
@@ -27,8 +33,10 @@ class AcceleratorHandler : public MessageLoopForUI::Dispatcher {
#endif
private:
-#if defined(OS_LINUX)
- // Last key pressed and consumed as an accelerator.
+#if defined(OS_WIN)
+ // The keys currently pressed and consumed by the FocusManager.
+ std::set<WPARAM> pressed_keys_;
+#else // OS_LINUX
guint last_key_pressed_;
#endif