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

Issue 11363124: Move DisplayManager and DisplayChangeObserverX11 from aura to ash. (Closed)

Created:
8 years, 1 month ago by oshima
Modified:
8 years, 1 month ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, tfarina, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, gab
Visibility:
Public.

Description

- Move DisplayManager and DisplayChangeObserverX11 from aura to ash.DisplayManager/DisplayChangeObserverX11 are in aura for historical reason, but they no longer have to be in aura. * Remove SingleDisplayManager as it's no longer necessary. * Rename MultipleDisplayManager and consolidate into DisplayManager. * Remove DisplayManager from desktop environment. Screen information is managed by platform in desktop environment, and should be provided via gfx::Screen implementation. - Move DisplayObserver to ui/gfx. This should be consolicated with other similar features such as WorkAreaWatcherObserver/ DisplaySettingsProvider. It's tracked in crbug.com/122863. - Misc cleanups * Test should use test_support_ash instead of including individual files. * Use TestScreen where appropriate. BUG=159710, 122863 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167639

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : ios fix #

Total comments: 6

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 2

Patch Set 10 : rebase #

Patch Set 11 : fix boot #

Patch Set 12 : rebase #

Patch Set 13 : fix rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+586 lines, -2404 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +4 lines, -7 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 3 chunks +2 lines, -4 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +8 lines, -6 lines 0 comments Download
A + ash/display/display_change_observer_x11.h View 3 chunks +5 lines, -5 lines 0 comments Download
A + ash/display/display_change_observer_x11.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -10 lines 0 comments Download
M ash/display/display_controller.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +6 lines, -4 lines 0 comments Download
M ash/display/display_controller.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +15 lines, -12 lines 0 comments Download
M ash/display/display_controller_unittest.cc View 1 6 chunks +7 lines, -7 lines 0 comments Download
A + ash/display/display_manager.h View 1 2 3 4 5 6 7 chunks +43 lines, -31 lines 0 comments Download
A + ash/display/display_manager.cc View 1 2 3 4 5 6 7 8 9 10 21 chunks +51 lines, -55 lines 0 comments Download
A + ash/display/display_manager_unittest.cc View 1 12 chunks +24 lines, -31 lines 0 comments Download
D ash/display/multi_display_manager.h View 1 1 chunk +0 lines, -169 lines 0 comments Download
D ash/display/multi_display_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -577 lines 0 comments Download
D ash/display/multi_display_manager_unittest.cc View 1 1 chunk +0 lines, -510 lines 0 comments Download
M ash/extended_desktop_unittest.cc View 1 3 chunks +3 lines, -5 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M ash/screen_ash.h View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M ash/screen_ash.cc View 1 2 3 4 5 chunks +25 lines, -5 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +11 lines, -1 line 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +12 lines, -8 lines 0 comments Download
M ash/system/chromeos/tray_display.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/system/chromeos/tray_display.cc View 1 4 chunks +6 lines, -8 lines 0 comments Download
M ash/test/ash_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -11 lines 0 comments Download
A + ash/test/display_manager_test_api.h View 1 2 3 4 3 chunks +9 lines, -10 lines 0 comments Download
A + ash/test/display_manager_test_api.cc View 1 3 chunks +8 lines, -8 lines 0 comments Download
D ash/test/multi_display_manager_test_api.h View 1 1 chunk +0 lines, -40 lines 0 comments Download
D ash/test/multi_display_manager_test_api.cc View 1 1 chunk +0 lines, -71 lines 0 comments Download
M ash/wm/shelf_layout_manager_unittest.cc View 1 5 chunks +7 lines, -12 lines 0 comments Download
M ash/wm/system_gesture_event_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -4 lines 0 comments Download
M ash/wm/window_cycle_controller_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/display/display_preferences.cc View 1 2 3 4 6 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc View 1 3 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_options_handler.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_options_handler.cc View 1 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +1 line, -9 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +3 lines, -12 lines 0 comments Download
M content/shell/DEPS View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/shell_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -5 lines 0 comments Download
M ui/aura/aura.gyp View 1 5 chunks +4 lines, -8 lines 0 comments Download
M ui/aura/bench/bench_main.cc View 1 2 chunks +7 lines, -5 lines 0 comments Download
M ui/aura/demo/demo_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -3 lines 0 comments Download
D ui/aura/display_change_observer_x11.h View 1 chunk +0 lines, -46 lines 0 comments Download
D ui/aura/display_change_observer_x11.cc View 1 chunk +0 lines, -193 lines 0 comments Download
D ui/aura/display_manager.h View 1 chunk +0 lines, -110 lines 0 comments Download
D ui/aura/display_manager.cc View 1 chunk +0 lines, -86 lines 0 comments Download
D ui/aura/display_observer.h View 1 chunk +0 lines, -34 lines 0 comments Download
D ui/aura/display_observer.cc View 1 chunk +0 lines, -12 lines 0 comments Download
A ui/aura/display_util.h View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A ui/aura/display_util.cc View 1 1 chunk +52 lines, -0 lines 0 comments Download
M ui/aura/env.h View 3 chunks +0 lines, -12 lines 0 comments Download
M ui/aura/env.cc View 4 chunks +0 lines, -12 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
D ui/aura/single_display_manager.h View 1 chunk +0 lines, -62 lines 0 comments Download
D ui/aura/single_display_manager.cc View 1 chunk +0 lines, -108 lines 0 comments Download
M ui/aura/test/aura_test_helper.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M ui/aura/test/test_screen.h View 1 2 chunks +22 lines, -4 lines 0 comments Download
M ui/aura/test/test_screen.cc View 1 3 chunks +39 lines, -8 lines 0 comments Download
A ui/gfx/display_observer.h View 1 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
A + ui/gfx/display_observer.cc View 1 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gfx/screen.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gfx/screen_android.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M ui/gfx/screen_gtk.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M ui/gfx/screen_ios.mm View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M ui/gfx/screen_mac.mm View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M ui/gfx/screen_win.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/screen_win.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 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 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
oshima
ananta, can you test this on windows?
8 years, 1 month ago (2012-11-07 18:43:57 UTC) #1
oshima
It's ready for review. Please take a look.
8 years, 1 month ago (2012-11-09 18:20:30 UTC) #2
ananta
LGTM % nits http://codereview.chromium.org/11363124/diff/7005/ash/display/display_manager.h File ash/display/display_manager.h (right): http://codereview.chromium.org/11363124/diff/7005/ash/display/display_manager.h#newcode74 ash/display/display_manager.h:74: // Rjegisters the overscan insets for ...
8 years, 1 month ago (2012-11-09 18:39:51 UTC) #3
oshima
http://codereview.chromium.org/11363124/diff/7005/ash/display/display_manager.h File ash/display/display_manager.h (right): http://codereview.chromium.org/11363124/diff/7005/ash/display/display_manager.h#newcode74 ash/display/display_manager.h:74: // Rjegisters the overscan insets for the display of ...
8 years, 1 month ago (2012-11-09 18:53:48 UTC) #4
oshima
ben -> OWNERS
8 years, 1 month ago (2012-11-09 18:56:28 UTC) #5
oshima
ben ->OWNERS
8 years, 1 month ago (2012-11-12 21:35:44 UTC) #6
Ben Goodger (Google)
Very nice! LGTM http://codereview.chromium.org/11363124/diff/14158/ash/shell.h File ash/shell.h (right): http://codereview.chromium.org/11363124/diff/14158/ash/shell.h#newcode532 ash/shell.h:532: // Recieves output change events and ...
8 years, 1 month ago (2012-11-12 21:41:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11363124/14158
8 years, 1 month ago (2012-11-13 17:47:08 UTC) #8
commit-bot: I haz the power
Failed to apply patch for ash/shell.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-13 17:47:37 UTC) #9
oshima
http://codereview.chromium.org/11363124/diff/14158/ash/shell.h File ash/shell.h (right): http://codereview.chromium.org/11363124/diff/14158/ash/shell.h#newcode532 ash/shell.h:532: // Recieves output change events and udpates the display ...
8 years, 1 month ago (2012-11-13 17:49:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11363124/291
8 years, 1 month ago (2012-11-13 21:46:00 UTC) #11
commit-bot: I haz the power
Failed to apply patch for ash/ash.gyp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-13 21:46:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11363124/7021
8 years, 1 month ago (2012-11-14 04:11:29 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-11-14 04:56:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11363124/11237
8 years, 1 month ago (2012-11-14 08:05:25 UTC) #15
commit-bot: I haz the power
8 years, 1 month ago (2012-11-14 10:11:02 UTC) #16
Change committed as 167639

Powered by Google App Engine
This is Rietveld 408576698