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

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

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.cc
diff --git a/chrome/browser/ui/ash/ash_util.cc b/chrome/browser/ui/ash/ash_util.cc
index 77ef383bddac3a5919dfdb2baddb44ac1b455d19..451ad3ceda4e820d0e9123c4ab433038bcdf4184 100644
--- a/chrome/browser/ui/ash/ash_util.cc
+++ b/chrome/browser/ui/ash/ash_util.cc
@@ -6,6 +6,7 @@
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/mojo_interface_factory.h"
+#include "ash/public/interfaces/event_properties.mojom.h"
#include "ash/shell.h"
#include "base/macros.h"
#include "build/build_config.h"
@@ -70,4 +71,10 @@ bool IsAcceleratorDeprecated(const ui::Accelerator& accelerator) {
return ash::Shell::Get()->accelerator_controller()->IsDeprecated(accelerator);
}
+bool WillAshProcessAcceleratorForEvent(const ui::KeyEvent& key_event) {
+ return key_event.properties() &&
+ key_event.properties()->count(
+ ash::mojom::kWillProcessAccelerator_KeyEventProperty);
+}
+
} // namespace ash_util

Powered by Google App Engine
This is Rietveld 408576698