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

Unified Diff: ui/base/accelerators/accelerator_history.h

Issue 1117173003: Converting (Alt+LeftClick -> RightClick) to (Search+LeftClick -> RightClick) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a test, and addressed comments Created 5 years, 8 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: ui/base/accelerators/accelerator_history.h
diff --git a/ui/base/accelerators/accelerator_history.h b/ui/base/accelerators/accelerator_history.h
index 435e75274f22571084f9103bf4b30b76370a44ee..4b0f51acc5a3333caf56692843ce780a298bd706 100644
--- a/ui/base/accelerators/accelerator_history.h
+++ b/ui/base/accelerators/accelerator_history.h
@@ -25,8 +25,9 @@ class UI_BASE_EXPORT AcceleratorHistory {
return current_accelerator_;
}
- // Returns the most recent previously recorded accelerator that is different
- // than the current.
+ // Returns the most recent previously recorded key accelerator that is
+ // different than the current. Non-synthesized mouse events will be stored
+ // in the histroy as an empty accelerator.
const Accelerator& previous_accelerator() const {
return previous_accelerator_;
}

Powered by Google App Engine
This is Rietveld 408576698