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

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: Updated extension histograms 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..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);
};

Powered by Google App Engine
This is Rietveld 408576698