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

Unified Diff: chrome/browser/chromeos/accessibility/switch_access_event_handler.h

Issue 2905373002: Set keys for SwitchAccessEventHandler to capture using accessibiltyPrivate API (Closed)
Patch Set: Responded to comment Created 3 years, 7 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: 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..e52af0cc20b4b046c273eed13bafd98edc685286 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 <set>
+
#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::set<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::set<int> captured_keys_;
+
DISALLOW_COPY_AND_ASSIGN(SwitchAccessEventHandler);
};

Powered by Google App Engine
This is Rietveld 408576698