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

Issue 187073002: Refactoring display configuration state to allow generic state objects (Closed)

Created:
6 years, 9 months ago by dnicoara
Modified:
6 years, 9 months ago
Reviewers:
Daniel Erat, oshima
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org, ben+ash_chromium.org, marcheu
Visibility:
Public.

Description

Refactoring display configuration state to allow generic state objects OutputConfigurator now uses NativeDisplayDelegate impls to create generic DisplaySnapshot and DisplayMode objects. OutputConfigurator interacts with these objects then calls into NativeDisplayDelegate to perform the actual configuration. BUG=333413 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257757

Patch Set 1 #

Total comments: 35

Patch Set 2 : Fix comments #

Patch Set 3 : Fix comment #

Patch Set 4 : Fix ordering #

Total comments: 3

Patch Set 5 : Fix variable name typo & rename for clarity #

Patch Set 6 : Rebased #

Patch Set 7 : Handle NULL mode in Configure #

Patch Set 8 : Run display_unittests part of ui_unittests #

Patch Set 9 : Rebased ontop of CL 192483007 #

Patch Set 10 : Remove unnecessary includes #

Patch Set 11 : . #

Patch Set 12 : Rebased #

Patch Set 13 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1550 lines, -1151 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ash/display/display_change_observer_chromeos.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -5 lines 0 comments Download
M ash/display/display_change_observer_chromeos.cc View 1 2 3 4 5 6 7 8 3 chunks +31 lines, -36 lines 0 comments Download
M ash/display/display_change_observer_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +24 lines, -14 lines 0 comments Download
M ash/display/output_configurator_animation.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ash/display/output_configurator_animation.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ash/display/projecting_observer_chromeos.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ash/display/projecting_observer_chromeos.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M ash/display/projecting_observer_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 12 chunks +52 lines, -28 lines 0 comments Download
M ash/touch/touch_observer_hud.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M ash/touch/touch_observer_hud.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/lock_state_controller_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +22 lines, -8 lines 0 comments Download
M ash/wm/power_button_controller.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/power_button_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -5 lines 0 comments Download
A ui/display/chromeos/display_mode.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
A ui/display/chromeos/display_mode.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
A ui/display/chromeos/display_snapshot.h View 1 1 chunk +90 lines, -0 lines 0 comments Download
A ui/display/chromeos/display_snapshot.cc View 1 chunk +30 lines, -0 lines 0 comments Download
M ui/display/chromeos/native_display_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +34 lines, -35 lines 0 comments Download
M ui/display/chromeos/output_configurator.h View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +37 lines, -95 lines 0 comments Download
M ui/display/chromeos/output_configurator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 22 chunks +214 lines, -261 lines 0 comments Download
M ui/display/chromeos/output_configurator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 53 chunks +369 lines, -444 lines 0 comments Download
A ui/display/chromeos/test/test_display_snapshot.h View 1 chunk +51 lines, -0 lines 0 comments Download
A ui/display/chromeos/test/test_display_snapshot.cc View 1 1 chunk +47 lines, -0 lines 0 comments Download
A ui/display/chromeos/x11/display_mode_x11.h View 1 chunk +34 lines, -0 lines 0 comments Download
A ui/display/chromeos/x11/display_mode_x11.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
A ui/display/chromeos/x11/display_snapshot_x11.h View 1 chunk +58 lines, -0 lines 0 comments Download
A ui/display/chromeos/x11/display_snapshot_x11.cc View 1 2 3 4 5 6 7 8 1 chunk +65 lines, -0 lines 0 comments Download
M ui/display/chromeos/x11/display_util.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -6 lines 0 comments Download
M ui/display/chromeos/x11/display_util.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -5 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.h View 1 2 3 4 5 6 7 8 6 chunks +40 lines, -31 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.cc View 1 2 3 4 5 6 7 8 10 chunks +149 lines, -110 lines 0 comments Download
M ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -5 lines 0 comments Download
M ui/display/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +51 lines, -41 lines 0 comments Download
M ui/display/chromeos/x11/touchscreen_delegate_x11.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ui/display/chromeos/x11/touchscreen_delegate_x11.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -9 lines 0 comments Download
M ui/display/display.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +24 lines, -0 lines 0 comments Download
M ui/display/display_unittests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
dnicoara
I was trying to keep this patch small, unfortunately there are a lot of unit ...
6 years, 9 months ago (2014-03-05 00:06:34 UTC) #1
Daniel Erat
nice! this approach seems fine to me. https://codereview.chromium.org/187073002/diff/1/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/187073002/diff/1/ash/ash.gyp#newcode826 ash/ash.gyp:826: '../ui/display/display.gyp:display', nit: ...
6 years, 9 months ago (2014-03-05 01:56:11 UTC) #2
dnicoara
+ oshima@ for opinion on inclusion of ui/gfx/geometry in chromeos/. https://codereview.chromium.org/187073002/diff/1/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/187073002/diff/1/ash/ash.gyp#newcode826 ...
6 years, 9 months ago (2014-03-05 17:29:24 UTC) #3
dnicoara
https://codereview.chromium.org/187073002/diff/50001/ui/display/display.gyp File ui/display/display.gyp (right): https://codereview.chromium.org/187073002/diff/50001/ui/display/display.gyp#newcode66 ui/display/display.gyp:66: 'target_name': 'display_unittests', I'm wondering if this needs to be ...
6 years, 9 months ago (2014-03-05 19:52:45 UTC) #4
oshima
I haven't looked into code yet (pretty busy memory sheriff rotation + 34/P1 bugs) but ...
6 years, 9 months ago (2014-03-05 20:00:40 UTC) #5
dnicoara
On 2014/03/05 20:00:40, oshima wrote: > I haven't looked into code yet (pretty busy memory ...
6 years, 9 months ago (2014-03-05 20:13:33 UTC) #6
Daniel Erat
lgtm https://codereview.chromium.org/187073002/diff/50001/ui/display/display.gyp File ui/display/display.gyp (right): https://codereview.chromium.org/187073002/diff/50001/ui/display/display.gyp#newcode66 ui/display/display.gyp:66: 'target_name': 'display_unittests', On 2014/03/05 19:52:46, dnicoara wrote: > ...
6 years, 9 months ago (2014-03-06 00:55:03 UTC) #7
sadrul
https://codereview.chromium.org/187073002/diff/50001/ui/display/display.gyp File ui/display/display.gyp (right): https://codereview.chromium.org/187073002/diff/50001/ui/display/display.gyp#newcode66 ui/display/display.gyp:66: 'target_name': 'display_unittests', On 2014/03/06 00:55:04, Daniel Erat wrote: > ...
6 years, 9 months ago (2014-03-06 01:00:30 UTC) #8
oshima
On 2014/03/06 01:00:30, sadrul wrote: > https://codereview.chromium.org/187073002/diff/50001/ui/display/display.gyp > File ui/display/display.gyp (right): > > https://codereview.chromium.org/187073002/diff/50001/ui/display/display.gyp#newcode66 > ...
6 years, 9 months ago (2014-03-06 01:17:22 UTC) #9
oshima
On 2014/03/05 20:13:33, dnicoara wrote: > On 2014/03/05 20:00:40, oshima wrote: > > I haven't ...
6 years, 9 months ago (2014-03-06 01:19:06 UTC) #10
Daniel Erat
On 2014/03/06 01:17:22, oshima wrote: > On 2014/03/06 01:00:30, sadrul wrote: > > https://codereview.chromium.org/187073002/diff/50001/ui/display/display.gyp > ...
6 years, 9 months ago (2014-03-06 01:20:38 UTC) #11
Daniel Erat
On 2014/03/06 01:20:38, Daniel Erat wrote: > On 2014/03/06 01:17:22, oshima wrote: > > On ...
6 years, 9 months ago (2014-03-06 01:23:53 UTC) #12
oshima
On 2014/03/06 01:20:38, Daniel Erat wrote: > On 2014/03/06 01:17:22, oshima wrote: > > On ...
6 years, 9 months ago (2014-03-06 01:26:11 UTC) #13
dnicoara
I'll try to answer all the pending questions. Hopefully I don't miss any. 1) Where ...
6 years, 9 months ago (2014-03-07 16:38:50 UTC) #14
dnicoara
Actually, before making any changes, does it make sense to keep the touchscreen delegate under ...
6 years, 9 months ago (2014-03-07 16:46:06 UTC) #15
Daniel Erat
On 2014/03/07 16:46:06, dnicoara wrote: > Actually, before making any changes, does it make sense ...
6 years, 9 months ago (2014-03-07 22:02:07 UTC) #16
dnicoara
On 2014/03/07 22:02:07, Daniel Erat wrote: > On 2014/03/07 16:46:06, dnicoara wrote: > > Actually, ...
6 years, 9 months ago (2014-03-07 22:08:40 UTC) #17
oshima
yes, I meant moving things in chromeos/display to ui/display/chromeos On Fri, Mar 7, 2014 at ...
6 years, 9 months ago (2014-03-07 23:34:15 UTC) #18
dnicoara
I've rebased this CL on top of the renaming CL (https://codereview.chromium.org/192483007/).
6 years, 9 months ago (2014-03-12 18:16:47 UTC) #19
dnicoara
+CC marcheu@chromium.org
6 years, 9 months ago (2014-03-13 18:30:31 UTC) #20
dnicoara
The CQ bit was checked by dnicoara@chromium.org
6 years, 9 months ago (2014-03-18 13:42:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dnicoara@chromium.org/187073002/220001
6 years, 9 months ago (2014-03-18 13:42:25 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 18:45:32 UTC) #23
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-18 18:45:33 UTC) #24
dnicoara
The CQ bit was checked by dnicoara@chromium.org
6 years, 9 months ago (2014-03-18 18:46:30 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dnicoara@chromium.org/187073002/220001
6 years, 9 months ago (2014-03-18 18:52:12 UTC) #26
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 21:16:07 UTC) #27
Message was sent while issue was closed.
Change committed as 257757

Powered by Google App Engine
This is Rietveld 408576698