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

Unified Diff: ash/touch/touch_transformer_controller.cc

Issue 1638413007: Use list instead of pair to represent the set of displays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build error Created 4 years, 11 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: ash/touch/touch_transformer_controller.cc
diff --git a/ash/touch/touch_transformer_controller.cc b/ash/touch/touch_transformer_controller.cc
index 0af8c8d86e4f6aa5a307ca04f170f9bb45d64f24..8bea2bf5ea794911bfb26b7d28cab15716c56429 100644
--- a/ash/touch/touch_transformer_controller.cc
+++ b/ash/touch/touch_transformer_controller.cc
@@ -174,9 +174,9 @@ void TouchTransformerController::UpdateTouchTransformer() const {
single_display = display_manager->GetDisplayInfo(single_display_id);
UpdateTouchRadius(single_display);
} else {
- DisplayIdPair id_pair = display_manager->GetCurrentDisplayIdPair();
- display1_id = id_pair.first;
- display2_id = id_pair.second;
+ DisplayIdList list = display_manager->GetCurrentDisplayIdList();
+ display1_id = list[0];
+ display2_id = list[1];
DCHECK(display1_id != gfx::Display::kInvalidDisplayID &&
display2_id != gfx::Display::kInvalidDisplayID);
display1 = display_manager->GetDisplayInfo(display1_id);

Powered by Google App Engine
This is Rietveld 408576698