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

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

Issue 2761233003: Adds ability for accelerators to add key/value pairs to KeyEvent (Closed)
Patch Set: feedback and compile 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
« no previous file with comments | « services/ui/ws/test_change_tracker.cc ('k') | services/ui/ws/window_manager_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.h
diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
index f776b3631213dfabb6ab8d49fbd57b3eb8c58909..67ba93fedb8c977d0089339e455975a5ee6512a5 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -117,8 +117,11 @@ class WindowTreeTestApi {
void AckLastEvent(mojom::EventResult result) {
tree_->OnWindowInputEventAck(tree_->event_ack_id_, result);
}
- void AckLastAccelerator(mojom::EventResult result) {
- tree_->OnAcceleratorAck(tree_->event_ack_id_, result);
+ void AckLastAccelerator(
+ mojom::EventResult result,
+ const std::unordered_map<std::string, std::vector<uint8_t>>& properties =
+ std::unordered_map<std::string, std::vector<uint8_t>>()) {
+ tree_->OnAcceleratorAck(tree_->event_ack_id_, result, properties);
}
void StartPointerWatcher(bool want_moves);
« no previous file with comments | « services/ui/ws/test_change_tracker.cc ('k') | services/ui/ws/window_manager_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698