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

Unified Diff: views/focus/accelerator_handler.h

Issue 3046041: [Linux Views] Refactor accelerator handler related code. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Prevent ctrl+alt. Created 10 years, 5 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: views/focus/accelerator_handler.h
diff --git a/views/focus/accelerator_handler.h b/views/focus/accelerator_handler.h
index 6140d36442f1fa8de63539d4c1d20c508644497c..3726d967a88fc4d6caf55e34a8071b2b02cc3c65 100644
--- a/views/focus/accelerator_handler.h
+++ b/views/focus/accelerator_handler.h
@@ -35,17 +35,6 @@ class AcceleratorHandler : public MessageLoopForUI::Dispatcher {
#if defined(OS_WIN)
// The keys currently pressed and consumed by the FocusManager.
std::set<WPARAM> pressed_keys_;
-#else // OS_LINUX
- // The set of hardware keycodes that are currently pressed. We use this
- // to keep track of whether or not a key is being pressed in isolation
- // or not. We must use hardware keycodes because higher-level keycodes
- // may change between press and release depending on what modifier keys
- // are pressed in the interim.
- std::set<int> pressed_hardware_keys_;
- // The set of vkey codes that were consumed by the FocusManager.
- std::set<int> consumed_vkeys_;
- // True if only the menu key (Alt key) was pressed, and no other keys.
- bool only_menu_pressed_;
#endif
DISALLOW_COPY_AND_ASSIGN(AcceleratorHandler);

Powered by Google App Engine
This is Rietveld 408576698