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

Unified Diff: ui/views/focus/focus_manager.h

Issue 1177773002: Deprecating high-conflict accelerators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified the design, modified tests accordingly, made accelerators consumable by webcontents if n… Created 5 years, 6 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
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/focus_manager.h
diff --git a/ui/views/focus/focus_manager.h b/ui/views/focus/focus_manager.h
index aa8f66a1d481cbf45aa29cec83d7396235f86c2c..090cce57ce81bbf085f2cfaf87e6df47c018ad72 100644
--- a/ui/views/focus/focus_manager.h
+++ b/ui/views/focus/focus_manager.h
@@ -259,6 +259,10 @@ class VIEWS_EXPORT FocusManager {
// Returns true if an accelerator was activated.
bool ProcessAccelerator(const ui::Accelerator& accelerator);
+ // Returns true if the given |accelerator| has been deprecated and hence can
+ // be consumed by web contents if needed.
+ bool IsAcceleratorDeprecated(const ui::Accelerator& accelerator) const;
sky 2015/06/18 15:25:18 Feels wrong to put this logic in FocusManager when
afakhry 2015/06/19 17:26:54 Deprecated accelerators are in ash. The FocusManag
+
// Resets menu key state if |event| is not menu key release.
// This is effective only on x11.
void MaybeResetMenuKeyState(const ui::KeyEvent& key);
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/views/focus/focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698