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

Unified Diff: chrome/browser/ui/ash/ash_util.h

Issue 2769213005: Adds kWillProcessAccelerator_KeyEventProperty (Closed)
Patch Set: cleanup Created 3 years, 9 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/ui/ash/ash_util.h
diff --git a/chrome/browser/ui/ash/ash_util.h b/chrome/browser/ui/ash/ash_util.h
index 59d5283f145b0518061a7fc926284712417296bd..6f3748f4bc73e75a2378734280cd664b9ee7055c 100644
--- a/chrome/browser/ui/ash/ash_util.h
+++ b/chrome/browser/ui/ash/ash_util.h
@@ -16,6 +16,7 @@ class Service;
namespace ui {
class Accelerator;
+class KeyEvent;
} // namespace ui
namespace ash_util {
@@ -35,6 +36,9 @@ bool IsRunningInMash();
// be consumed by web contents if needed.
bool IsAcceleratorDeprecated(const ui::Accelerator& accelerator);
+// Returns true if ash has an accelerator for |key_event| that is enabled.
+bool WillAshProcessAcceleratorForEvent(const ui::KeyEvent& key_event);
+
} // namespace ash_util
#endif // CHROME_BROWSER_UI_ASH_ASH_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698