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

Unified Diff: services/ui/ws/event_dispatcher_delegate.h

Issue 2125883003: Adds ability for pre-target accelerators to not consume events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 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
« no previous file with comments | « services/ui/ws/event_dispatcher.cc ('k') | services/ui/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/event_dispatcher_delegate.h
diff --git a/services/ui/ws/event_dispatcher_delegate.h b/services/ui/ws/event_dispatcher_delegate.h
index 15648118fb6b2bff9ab130f288f7cb61d54e5954..6bba319ccbecfc185d45857ba3717d7c9995c38b 100644
--- a/services/ui/ws/event_dispatcher_delegate.h
+++ b/services/ui/ws/event_dispatcher_delegate.h
@@ -26,7 +26,14 @@ class ServerWindow;
// Used by EventDispatcher for mocking in tests.
class EventDispatcherDelegate {
public:
- virtual void OnAccelerator(uint32_t accelerator, const ui::Event& event) = 0;
+ enum class AcceleratorPhase {
+ PRE,
+ POST,
+ };
+
+ virtual void OnAccelerator(uint32_t accelerator,
+ const ui::Event& event,
+ AcceleratorPhase phase) = 0;
virtual void SetFocusedWindowFromEventDispatcher(ServerWindow* window) = 0;
virtual ServerWindow* GetFocusedWindowForEventDispatcher() = 0;
« no previous file with comments | « services/ui/ws/event_dispatcher.cc ('k') | services/ui/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698