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

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

Issue 2685883003: chromeos: converts observed pointer events to DIPs (Closed)
Patch Set: merge Created 3 years, 10 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/display.cc ('k') | services/ui/ws/test_utils.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 29d65cdaf465a329d6ea42f368b9825c2f43f131..b6fc6d819f087d2250f837a63ea788dcd32816c4 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -207,7 +207,9 @@ class WindowManagerStateTestApi {
return wms_->GetEventTargetClientId(window, in_nonclient_area);
}
- void ProcessEvent(const ui::Event& event) { wms_->ProcessEvent(event); }
+ void ProcessEvent(const ui::Event& event, int64_t display_id = 0) {
+ wms_->ProcessEvent(event, display_id);
+ }
void OnEventAckTimeout(ClientSpecificId client_id) {
wms_->OnEventAckTimeout(client_id);
@@ -219,7 +221,8 @@ class WindowManagerStateTestApi {
}
WindowTree* tree_awaiting_input_ack() {
- return wms_->tree_awaiting_input_ack_;
+ return wms_->in_flight_event_details_ ? wms_->in_flight_event_details_->tree
+ : nullptr;
}
private:
@@ -442,10 +445,12 @@ class TestWindowTreeClient : public ui::mojom::WindowTreeClient {
const base::Optional<std::vector<uint8_t>>& new_data) override;
void OnWindowInputEvent(uint32_t event_id,
uint32_t window,
+ int64_t display_id,
std::unique_ptr<ui::Event> event,
bool matches_pointer_watcher) override;
void OnPointerEventObserved(std::unique_ptr<ui::Event> event,
- uint32_t window_id) override;
+ uint32_t window_id,
+ int64_t display_id) override;
void OnWindowFocused(uint32_t focused_window_id) override;
void OnWindowPredefinedCursorChanged(uint32_t window_id,
mojom::Cursor cursor_id) override;
« no previous file with comments | « services/ui/ws/display.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698