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

Issue 2573673003: Detect and fix overlapping displays (Closed)

Created:
4 years ago by afakhry
Modified:
3 years, 10 months ago
Reviewers:
stevenjb, oshima, Devlin
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Detect and fix overlapping displays Overlapping displays prevent us from correctly creating the mouse warp regions. This CL adds code to detect and fix any overlap when the display layout is applied. This was initially a bug in the options UI that was recently fixed. The backend still needs to prevent this buggy condition. BUG=614660 TEST=ash_unittests --gtest_filter=DisplayManagerTest.NoOverlappedDisplays* Review-Url: https://codereview.chromium.org/2573673003 Cr-Commit-Position: refs/heads/master@{#447402} Committed: https://chromium.googlesource.com/chromium/src/+/6c80a875d8534f5f9d965a9808446655b5f4e0a2

Patch Set 1 : [WIP] Pending unit_tests #

Patch Set 2 : [WIP] Don't shift primary display #

Patch Set 3 : [WIP] Added Test #

Patch Set 4 : [WIP] Fix tests and store resolved layout #

Patch Set 5 : [WIP] Fixed a couple of bugs and added two more tests #

Patch Set 6 : Fix compile on Windows #

Total comments: 14

Patch Set 7 : Rebase #

Patch Set 8 : Oshima's comments #

Patch Set 9 : No layout in unified mode #

Patch Set 10 : Better algorithm, still need to update test comments #

Patch Set 11 : Update tests, ignore invalid layouts. #

Patch Set 12 : More accurate test numbers #

Total comments: 4

Patch Set 13 : Reparent once #

Total comments: 6

Patch Set 14 : Extract Reparent #

Total comments: 4

Patch Set 15 : 2 more tests. #

Patch Set 16 : Nit #

Total comments: 15

Patch Set 17 : stevenjb's comments #

Total comments: 4

Patch Set 18 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+753 lines, -19 lines) Patch
M ash/display/display_configuration_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M ash/display/display_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +437 lines, -1 line 0 comments Download
M chrome/browser/extensions/display_info_provider_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_options_handler.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M ui/display/display_layout.h View 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M ui/display/display_layout.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +284 lines, -6 lines 0 comments Download
M ui/display/manager/display_manager.h View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M ui/display/manager/display_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +18 lines, -5 lines 0 comments Download

Messages

Total messages: 98 (75 generated)
afakhry
Oshima-san, please review. Thank you.
4 years ago (2016-12-15 17:01:15 UTC) #25
afakhry
On 2016/12/15 17:51:05, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
3 years, 11 months ago (2017-01-05 22:31:25 UTC) #28
oshima
On 2017/01/05 22:31:25, afakhry wrote: > On 2016/12/15 17:51:05, commit-bot: I haz the power wrote: ...
3 years, 11 months ago (2017-01-09 19:16:20 UTC) #29
oshima
https://codereview.chromium.org/2573673003/diff/100001/ui/display/display_layout.cc File ui/display/display_layout.cc (right): https://codereview.chromium.org/2573673003/diff/100001/ui/display/display_layout.cc#newcode52 ui/display/display_layout.cc:52: }; can you document how logic works? https://codereview.chromium.org/2573673003/diff/100001/ui/display/display_layout.cc#newcode59 ui/display/display_layout.cc:59: ...
3 years, 11 months ago (2017-01-09 21:46:46 UTC) #30
afakhry
https://codereview.chromium.org/2573673003/diff/100001/ui/display/display_layout.cc File ui/display/display_layout.cc (right): https://codereview.chromium.org/2573673003/diff/100001/ui/display/display_layout.cc#newcode52 ui/display/display_layout.cc:52: }; On 2017/01/09 21:46:46, oshima wrote: > can you ...
3 years, 11 months ago (2017-01-12 21:00:56 UTC) #39
afakhry
friendly ping.
3 years, 11 months ago (2017-01-18 16:59:50 UTC) #40
afakhry
Oshima-san, I implemented the new algorithm. PTAL.
3 years, 11 months ago (2017-01-26 19:22:02 UTC) #53
afakhry
Oshima-san, friendly ping.
3 years, 10 months ago (2017-01-28 01:15:35 UTC) #56
oshima
https://codereview.chromium.org/2573673003/diff/240001/ui/display/display_layout.cc File ui/display/display_layout.cc (right): https://codereview.chromium.org/2573673003/diff/240001/ui/display/display_layout.cc#newcode160 ui/display/display_layout.cc:160: for (int i = 1; i < static_cast<int>(sorted_displays.size()); ++i) ...
3 years, 10 months ago (2017-01-30 18:06:14 UTC) #57
afakhry
https://codereview.chromium.org/2573673003/diff/240001/ui/display/display_layout.cc File ui/display/display_layout.cc (right): https://codereview.chromium.org/2573673003/diff/240001/ui/display/display_layout.cc#newcode160 ui/display/display_layout.cc:160: for (int i = 1; i < static_cast<int>(sorted_displays.size()); ++i) ...
3 years, 10 months ago (2017-01-30 19:52:00 UTC) #59
oshima
https://codereview.chromium.org/2573673003/diff/260001/ui/display/display_layout.cc File ui/display/display_layout.cc (right): https://codereview.chromium.org/2573673003/diff/260001/ui/display/display_layout.cc#newcode217 ui/display/display_layout.cc:217: updated_displays->insert(target_display->id()); this can add the target display more than ...
3 years, 10 months ago (2017-01-30 20:30:43 UTC) #63
afakhry
https://codereview.chromium.org/2573673003/diff/260001/ui/display/display_layout.cc File ui/display/display_layout.cc (right): https://codereview.chromium.org/2573673003/diff/260001/ui/display/display_layout.cc#newcode160 ui/display/display_layout.cc:160: for (size_t i = 1; i < sorted_displays.size(); ++i) ...
3 years, 10 months ago (2017-01-30 22:25:57 UTC) #66
oshima
https://codereview.chromium.org/2573673003/diff/260001/ui/display/display_layout.cc File ui/display/display_layout.cc (right): https://codereview.chromium.org/2573673003/diff/260001/ui/display/display_layout.cc#newcode160 ui/display/display_layout.cc:160: for (size_t i = 1; i < sorted_displays.size(); ++i) ...
3 years, 10 months ago (2017-01-31 16:55:43 UTC) #69
afakhry
+stevenjb@ for display_options_handler.cc. Thanks! https://codereview.chromium.org/2573673003/diff/280001/ash/display/display_manager_unittest.cc File ash/display/display_manager_unittest.cc (right): https://codereview.chromium.org/2573673003/diff/280001/ash/display/display_manager_unittest.cc#newcode744 ash/display/display_manager_unittest.cc:744: } On 2017/01/31 16:55:43, oshima ...
3 years, 10 months ago (2017-01-31 19:19:32 UTC) #73
oshima
On 2017/01/31 19:19:32, afakhry wrote: > +stevenjb@ for display_options_handler.cc. Thanks! > > https://codereview.chromium.org/2573673003/diff/280001/ash/display/display_manager_unittest.cc > File ...
3 years, 10 months ago (2017-01-31 19:26:05 UTC) #74
afakhry
On 2017/01/31 19:26:05, oshima wrote: > On 2017/01/31 19:19:32, afakhry wrote: > > +stevenjb@ for ...
3 years, 10 months ago (2017-01-31 19:30:13 UTC) #77
stevenjb
https://codereview.chromium.org/2573673003/diff/310001/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc File chrome/browser/ui/webui/options/chromeos/display_options_handler.cc (right): https://codereview.chromium.org/2573673003/diff/310001/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc#newcode364 chrome/browser/ui/webui/options/chromeos/display_options_handler.cc:364: display_manager->GetCurrentResolvedDisplayLayout().FindPlacementById( We need to make a similar change to ...
3 years, 10 months ago (2017-01-31 21:58:56 UTC) #80
afakhry
https://codereview.chromium.org/2573673003/diff/310001/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc File chrome/browser/ui/webui/options/chromeos/display_options_handler.cc (right): https://codereview.chromium.org/2573673003/diff/310001/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc#newcode364 chrome/browser/ui/webui/options/chromeos/display_options_handler.cc:364: display_manager->GetCurrentResolvedDisplayLayout().FindPlacementById( On 2017/01/31 21:58:56, stevenjb wrote: > We need ...
3 years, 10 months ago (2017-01-31 23:23:44 UTC) #82
stevenjb
lgtm https://codereview.chromium.org/2573673003/diff/310001/ui/display/display_layout.cc File ui/display/display_layout.cc (right): https://codereview.chromium.org/2573673003/diff/310001/ui/display/display_layout.cc#newcode184 ui/display/display_layout.cc:184: // Fixes any overlapping displays and repared displays ...
3 years, 10 months ago (2017-01-31 23:40:55 UTC) #84
afakhry
+Devlin for display_info_provider_chromeos.cc OWNERS. https://codereview.chromium.org/2573673003/diff/330001/ui/display/display_layout.cc File ui/display/display_layout.cc (right): https://codereview.chromium.org/2573673003/diff/330001/ui/display/display_layout.cc#newcode186 ui/display/display_layout.cc:186: // This function assumes both ...
3 years, 10 months ago (2017-01-31 23:56:17 UTC) #88
Devlin
chrome/browser/ui/webui/options/chromeos/display_options_handler.cc lgtm
3 years, 10 months ago (2017-02-01 00:01:41 UTC) #89
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2573673003/350001
3 years, 10 months ago (2017-02-01 01:31:38 UTC) #94
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 01:42:24 UTC) #98
Message was sent while issue was closed.
Committed patchset #18 (id:350001) as
https://chromium.googlesource.com/chromium/src/+/6c80a875d8534f5f9d965a980844...

Powered by Google App Engine
This is Rietveld 408576698