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

Issue 138003007: [Cleanup] Screen cleanup (Closed)

Created:
6 years, 11 months ago by oshima
Modified:
6 years, 11 months ago
Reviewers:
Hongbo Min, Jun Mukai, sky
CC:
chromium-reviews, sadrul, dcheng, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, ben+ash_chromium.org
Visibility:
Public.

Description

Screen cleanup: * Split ScreenAsh to ScreenUtil (set of utility functions) and the screen implementation. * moved screen_ash from Shell to DisplayManager. Ash specific imp is now hidden in DisplayManager. * Shell now creates a separate screen object which simply keeps the list of displays for shutdown. This allow all screen operation valid during shutdown. BUG=None TBR=hongbo.min@intel.com,sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245562

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : fix conflict #

Total comments: 11

Patch Set 4 : #

Patch Set 5 : rebase #

Patch Set 6 : make sure screen_for_shutdown is reset everytime #

Unified diffs Side-by-side diffs Delta from patch set Stats (+854 lines, -920 lines) Patch
M ash/accelerators/accelerator_controller_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M ash/ash.gyp View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M ash/display/display_controller.h View 2 chunks +3 lines, -20 lines 0 comments Download
M ash/display/display_controller.cc View 1 2 3 4 16 chunks +20 lines, -107 lines 0 comments Download
M ash/display/display_controller_unittest.cc View 23 chunks +25 lines, -25 lines 0 comments Download
M ash/display/display_manager.h View 1 2 3 4 chunks +13 lines, -0 lines 0 comments Download
M ash/display/display_manager.cc View 1 2 3 4 5 11 chunks +37 lines, -10 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 1 2 3 6 chunks +37 lines, -6 lines 0 comments Download
M ash/display/event_transformation_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/display/mouse_cursor_event_filter.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ash/display/resolution_notification_controller_unittest.cc View 10 chunks +12 lines, -12 lines 0 comments Download
M ash/display/root_window_transformers_unittest.cc View 9 chunks +9 lines, -9 lines 0 comments Download
A + ash/display/screen_ash.h View 1 2 3 5 chunks +17 lines, -9 lines 0 comments Download
A ash/display/screen_ash.cc View 1 1 chunk +284 lines, -0 lines 0 comments Download
M ash/display/screen_position_controller_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ash/extended_desktop_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
D ash/screen_ash.h View 1 chunk +0 lines, -91 lines 0 comments Download
D ash/screen_ash.cc View 1 2 3 4 1 chunk +0 lines, -168 lines 0 comments Download
D ash/screen_ash_unittest.cc View 1 chunk +0 lines, -116 lines 0 comments Download
A + ash/screen_util.h View 3 chunks +17 lines, -40 lines 0 comments Download
A ash/screen_util.cc View 1 1 chunk +87 lines, -0 lines 0 comments Download
A + ash/screen_util_unittest.cc View 5 chunks +15 lines, -15 lines 0 comments Download
M ash/shelf/shelf.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell.h View 1 2 3 4 2 chunks +0 lines, -4 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 6 chunks +3 lines, -10 lines 0 comments Download
M ash/shell/panel_window.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shell/toplevel_window.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/system/chromeos/tray_display_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/touch/touch_observer_hud_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/app_list_controller.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M ash/wm/base_layout_manager.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M ash/wm/base_layout_manager_unittest.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M ash/wm/caption_buttons/alternate_frame_size_button.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/caption_buttons/frame_maximize_button.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.cc View 1 2 3 4 5 chunks +6 lines, -6 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/dock/docked_window_resizer.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/wm/dock/docked_window_resizer_unittest.cc View 1 2 3 4 16 chunks +28 lines, -28 lines 0 comments Download
M ash/wm/drag_window_resizer.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/gestures/system_pinch_handler.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/immersive_fullscreen_controller_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/overview/scoped_transform_overview_window.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/wm/overview/scoped_window_copy.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/overview/window_overview.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/overview/window_selector_panels.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/panels/panel_layout_manager.cc View 6 chunks +9 lines, -8 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/panels/panel_window_resizer.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/solo_window_tracker_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/wm/window_animations.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/window_positioner.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/window_resizer.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/wm/window_state.cc View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download
M ash/wm/window_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/window_util_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/workspace/multi_window_resize_controller.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/workspace/snap_sizer.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M ash/wm/workspace/snap_sizer_unittest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M ash/wm/workspace/workspace_event_handler.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace_event_handler_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 10 chunks +13 lines, -13 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 11 chunks +14 lines, -13 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 13 chunks +13 lines, -13 lines 0 comments Download
M ash/wm/workspace_controller_unittest.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences_unittest.cc View 8 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/system_display/display_info_provider_chromeos_unittest.cc View 26 chunks +29 lines, -29 lines 0 comments Download
M chrome/browser/extensions/api/system_display/system_display_api.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/system_display/system_display_apitest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/system_info/system_info_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/native_app_window_views.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_options_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_overscan_handler.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
oshima
It looks big, but most of changes are simple renaming.
6 years, 11 months ago (2014-01-15 03:00:32 UTC) #1
Jun Mukai
mostly nitpicks https://codereview.chromium.org/138003007/diff/130001/ash/display/display_manager.h File ash/display/display_manager.h (right): https://codereview.chromium.org/138003007/diff/130001/ash/display/display_manager.h#newcode327 ash/display/display_manager.h:327: gfx::Screen* screen_; Can we just put #include ...
6 years, 11 months ago (2014-01-15 19:20:14 UTC) #2
oshima
https://codereview.chromium.org/138003007/diff/130001/ash/display/display_manager.h File ash/display/display_manager.h (right): https://codereview.chromium.org/138003007/diff/130001/ash/display/display_manager.h#newcode327 ash/display/display_manager.h:327: gfx::Screen* screen_; On 2014/01/15 19:20:15, Jun Mukai wrote: > ...
6 years, 11 months ago (2014-01-15 19:42:51 UTC) #3
Jun Mukai
lgtm https://codereview.chromium.org/138003007/diff/130001/ash/display/display_manager.h File ash/display/display_manager.h (right): https://codereview.chromium.org/138003007/diff/130001/ash/display/display_manager.h#newcode327 ash/display/display_manager.h:327: gfx::Screen* screen_; On 2014/01/15 19:42:51, oshima wrote: > ...
6 years, 11 months ago (2014-01-15 19:46:00 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/138003007/350001
6 years, 11 months ago (2014-01-16 21:10:57 UTC) #5
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=45170
6 years, 11 months ago (2014-01-16 21:41:46 UTC) #6
oshima
tbr'ing trivial rename change hongbo.min -> c/b/extensions/api/system/ sky -> c/b/ui/
6 years, 11 months ago (2014-01-16 22:05:43 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/138003007/350001
6 years, 11 months ago (2014-01-16 22:06:29 UTC) #8
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=45193
6 years, 11 months ago (2014-01-16 22:25:28 UTC) #9
oshima
(really, this time) tbr'ing trivial rename change hongbo.min -> c/b/extensions/api/system/ sky -> c/b/ui/
6 years, 11 months ago (2014-01-16 22:37:58 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/138003007/350001
6 years, 11 months ago (2014-01-16 22:38:39 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) ash_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=247673
6 years, 11 months ago (2014-01-17 00:06:38 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/138003007/550002
6 years, 11 months ago (2014-01-17 00:57:29 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=247784
6 years, 11 months ago (2014-01-17 06:05:54 UTC) #14
Hongbo Min
lgtm for chrome/browser/extension/system part
6 years, 11 months ago (2014-01-17 06:18:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/138003007/550002
6 years, 11 months ago (2014-01-17 17:21:03 UTC) #16
commit-bot: I haz the power
6 years, 11 months ago (2014-01-17 18:24:41 UTC) #17
Message was sent while issue was closed.
Change committed as 245562

Powered by Google App Engine
This is Rietveld 408576698