Index: chrome/browser/chromeos/accessibility/switch_access_event_handler.h |
diff --git a/chrome/browser/chromeos/accessibility/switch_access_event_handler.h b/chrome/browser/chromeos/accessibility/switch_access_event_handler.h |
index 331f8363bbe4ae99c1e9284979c711a4db0cae68..98361a8f8c6a77e8806dd01a8643d5af05b64df5 100644 |
--- a/chrome/browser/chromeos/accessibility/switch_access_event_handler.h |
+++ b/chrome/browser/chromeos/accessibility/switch_access_event_handler.h |
@@ -5,6 +5,8 @@ |
#ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SWITCH_ACCESS_EVENT_HANDLER_H_ |
#define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SWITCH_ACCESS_EVENT_HANDLER_H_ |
+#include <string> |
+ |
#include "base/macros.h" |
#include "ui/events/event_handler.h" |
@@ -22,6 +24,8 @@ class SwitchAccessEventHandler : public ui::EventHandler { |
SwitchAccessEventHandler(); |
~SwitchAccessEventHandler() override; |
+ void SetKeysToCapture(const std::vector<int>& key_codes); |
+ |
private: |
// EventHandler: |
void OnKeyEvent(ui::KeyEvent* event) override; |
@@ -29,6 +33,8 @@ class SwitchAccessEventHandler : public ui::EventHandler { |
void CancelEvent(ui::Event* event); |
void DispatchKeyEventToSwitchAccess(const ui::KeyEvent& event); |
+ std::vector<int> captured_keys_; |
+ |
DISALLOW_COPY_AND_ASSIGN(SwitchAccessEventHandler); |
}; |