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

Issue 23536057: linux_aura: Implement most of DesktopScreenX11. (Closed)

Created:
7 years, 3 months ago by Elliot Glaysher
Modified:
7 years, 3 months ago
Reviewers:
brettw, Daniel Erat, sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org, tfarina, oshima+watch_chromium.org, stevenjb+watch_chromium.org
Visibility:
Public.

Description

linux_aura: Implement most of DesktopScreenX11. The linux_aura port didn't deal with multiple monitors very well because it was treating the X root window as one big display. When xrandr is present, get the screen areas from it, and exposes this data back to chrome. This patch also factors out the EDID parser than chromeos was using into a common directory. Like chromeos, we use it to assign stable display IDs. BUG=287972 R=brettw@chromium.org, derat@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225054

Patch Set 1 #

Patch Set 2 : Attempt at fixing chromeos compile. #

Patch Set 3 : Attempt at fixing chromeos compile. #

Patch Set 4 : Attempt at fixing chromeos compile. #

Patch Set 5 : Add xrandr to gyp link settings. #

Patch Set 6 : Separate out unit tests. #

Patch Set 7 : Add missing file. #

Patch Set 8 : More implementation + unit test. #

Patch Set 9 : Rebase #

Patch Set 10 : Move code to base/ because chromeos/ can't access ui/ #

Patch Set 11 : Attempt to fix chromeos compile. #

Patch Set 12 : Attempt to fix chromeos compile. #

Total comments: 1

Patch Set 13 : Remove probably unneeded Xrandr flags. #

Total comments: 9

Patch Set 14 : Fixes for derat + more tests. #

Total comments: 2

Patch Set 15 : Move files to base/x11/ #

Total comments: 1

Patch Set 16 : Move code back to ui/base/x/. Try one final thing to get chromeos to compile. #

Patch Set 17 : Rebase and merge with Ben's x11_types patch. #

Patch Set 18 : Try to fix circular dependency in chromeos #

Patch Set 19 : Revert to when the edid parser was in base/x11/. Adds descriptive comment. #

Patch Set 20 : Attempt at fixing chromeos compile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+650 lines, -637 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 2 chunks +13 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 1 chunk +6 lines, -0 lines 0 comments Download
A base/x11/edid_parser_x11.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +54 lines, -0 lines 0 comments Download
A + base/x11/edid_parser_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 4 chunks +7 lines, -168 lines 0 comments Download
A + base/x11/edid_parser_x11_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 6 chunks +10 lines, -92 lines 0 comments Download
M build/linux/system.gyp View 1 2 3 4 5 6 7 8 9 16 17 18 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -5 lines 0 comments Download
M chromeos/display/output_util.h View 2 chunks +0 lines, -22 lines 0 comments Download
M chromeos/display/output_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 4 chunks +5 lines, -186 lines 0 comments Download
M chromeos/display/output_util_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -107 lines 0 comments Download
M chromeos/display/real_output_configurator_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
A ui/views/widget/desktop_aura/desktop_screen_x11.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +95 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +235 lines, -56 lines 0 comments Download
A ui/views/widget/desktop_aura/desktop_screen_x11_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +186 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Elliot Glaysher
I'd like to get your opinion on my xrandr code. I couldn't find any documentation, ...
7 years, 3 months ago (2013-09-19 20:53:11 UTC) #1
Daniel Erat
I didn't look at the tests yet. https://codereview.chromium.org/23536057/diff/47001/chromeos/display/real_output_configurator_delegate.cc File chromeos/display/real_output_configurator_delegate.cc (right): https://codereview.chromium.org/23536057/diff/47001/chromeos/display/real_output_configurator_delegate.cc#newcode7 chromeos/display/real_output_configurator_delegate.cc:7: #include <X11/Xlib.h> ...
7 years, 3 months ago (2013-09-19 22:13:03 UTC) #2
Elliot Glaysher
Changed to passing in fallback displays in the ctors. This let me add even more ...
7 years, 3 months ago (2013-09-19 23:08:33 UTC) #3
Daniel Erat
pretty much LGTM now https://codereview.chromium.org/23536057/diff/47001/ui/views/widget/desktop_aura/desktop_screen_x11.cc File ui/views/widget/desktop_aura/desktop_screen_x11.cc (right): https://codereview.chromium.org/23536057/diff/47001/ui/views/widget/desktop_aura/desktop_screen_x11.cc#newcode291 ui/views/widget/desktop_aura/desktop_screen_x11.cc:291: if (ui::GetIntArrayProperty(x_root_window_, "_NET_WORKAREA", &value) && ...
7 years, 3 months ago (2013-09-19 23:32:36 UTC) #4
Elliot Glaysher
sky: views code brettw: base changes. We can't put this code in ui/ because chromeos/ ...
7 years, 3 months ago (2013-09-20 17:23:02 UTC) #5
sky
Elliot, you're an owner of these files (except views.gyp) so as long as derat reviewed ...
7 years, 3 months ago (2013-09-20 17:45:43 UTC) #6
brettw
base addition lgtm, didn't look at the details. https://codereview.chromium.org/23536057/diff/127001/base/x11/edid_parser_x11.h File base/x11/edid_parser_x11.h (right): https://codereview.chromium.org/23536057/diff/127001/base/x11/edid_parser_x11.h#newcode13 base/x11/edid_parser_x11.h:13: typedef ...
7 years, 3 months ago (2013-09-21 05:19:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/23536057/192001
7 years, 3 months ago (2013-09-24 17:40:14 UTC) #8
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=15489
7 years, 3 months ago (2013-09-24 18:10:14 UTC) #9
Elliot Glaysher
7 years, 3 months ago (2013-09-24 19:53:18 UTC) #10
Message was sent while issue was closed.
Committed patchset #20 manually as r225054 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698