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

Issue 1923983003: Makes WorkspaceLayoutManager use ash/wm/common types (Closed)

Created:
4 years, 7 months ago by sky
Modified:
4 years, 7 months ago
Reviewers:
msw, James Cook, sadrul
CC:
chromium-reviews, rjkroege, kalyank, sadrul, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Makes WorkspaceLayoutManager use ash/wm/common types BUG=603369 TEST=covered by tests R=jamescook@chromium.org Committed: https://crrev.com/4dc7d0496343775c344899a2ad5742865f81a93b Cr-Commit-Position: refs/heads/master@{#390297}

Patch Set 1 #

Total comments: 11

Patch Set 2 : feedback #

Patch Set 3 : merge to trunk #

Patch Set 4 : fix always-on-top and remove mus changes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+476 lines, -414 lines) Patch
M ash/ash.gyp View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 4 chunks +6 lines, -33 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 3 chunks +4 lines, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 5 chunks +39 lines, -5 lines 2 comments Download
M ash/shell_window_ids.h View 4 chunks +15 lines, -3 lines 0 comments Download
D ash/switchable_windows.h View 1 chunk +0 lines, -30 lines 0 comments Download
D ash/switchable_windows.cc View 1 chunk +0 lines, -32 lines 0 comments Download
M ash/wm/always_on_top_controller.h View 2 chunks +15 lines, -17 lines 0 comments Download
M ash/wm/always_on_top_controller.cc View 1 2 3 2 chunks +39 lines, -36 lines 0 comments Download
M ash/wm/always_on_top_controller_unittest.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M ash/wm/aura/wm_globals_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/aura/wm_globals_aura.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/aura/wm_root_window_controller_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/aura/wm_root_window_controller_aura.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/aura/wm_window_aura.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/aura/wm_window_aura.cc View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
A ash/wm/common/fullscreen_window_finder.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
A ash/wm/common/fullscreen_window_finder.cc View 1 chunk +53 lines, -0 lines 0 comments Download
A + ash/wm/common/switchable_windows.h View 2 chunks +8 lines, -8 lines 0 comments Download
A + ash/wm/common/switchable_windows.cc View 1 chunk +10 lines, -9 lines 0 comments Download
M ash/wm/common/wm_globals.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/common/wm_root_window_controller.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ash/wm/common/wm_screen_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/common/wm_screen_util.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/common/wm_shell_window_ids.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ash/wm/common/wm_window.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/common/wm_window_observer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M ash/wm/maximize_mode/workspace_backdrop_delegate.h View 3 chunks +11 lines, -16 lines 0 comments Download
M ash/wm/maximize_mode/workspace_backdrop_delegate.cc View 3 chunks +31 lines, -15 lines 0 comments Download
M ash/wm/mru_window_tracker.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M ash/wm/overview/window_selector.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M ash/wm/stacking_controller.cc View 3 chunks +9 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.h View 1 4 chunks +39 lines, -48 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 1 2 12 chunks +88 lines, -121 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_backdrop_delegate.h View 2 chunks +5 lines, -8 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 2 4 chunks +8 lines, -3 lines 0 comments Download
M ash/wm/workspace_controller.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/workspace_controller.cc View 3 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
sky
https://codereview.chromium.org/1923983003/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/1923983003/diff/1/ash/shelf/shelf_layout_manager.cc#newcode191 ash/shelf/shelf_layout_manager.cc:191: // NOTE: OnShelfAlignmentChanged() is implemented by way of This ...
4 years, 7 months ago (2016-04-27 20:48:05 UTC) #1
James Cook
LGTM https://codereview.chromium.org/1923983003/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/1923983003/diff/1/ash/shelf/shelf_layout_manager.cc#newcode194 ash/shelf/shelf_layout_manager.cc:194: // WmRootWindowControllerObservers may be notified after ShellObservers. The ...
4 years, 7 months ago (2016-04-27 23:24:24 UTC) #2
sky
https://codereview.chromium.org/1923983003/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/1923983003/diff/1/ash/shelf/shelf_layout_manager.cc#newcode194 ash/shelf/shelf_layout_manager.cc:194: // WmRootWindowControllerObservers may be notified after ShellObservers. On 2016/04/27 ...
4 years, 7 months ago (2016-04-27 23:33:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1923983003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1923983003/40001
4 years, 7 months ago (2016-04-27 23:37:00 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/204062)
4 years, 7 months ago (2016-04-28 00:17:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1923983003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1923983003/60001
4 years, 7 months ago (2016-04-28 03:43:00 UTC) #11
sky
I removed the mus changes from this patch as they appear to be causing problems. ...
4 years, 7 months ago (2016-04-28 03:43:11 UTC) #12
James Cook
On 2016/04/28 03:43:11, sky wrote: > I removed the mus changes from this patch as ...
4 years, 7 months ago (2016-04-28 04:15:19 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-04-28 04:15:36 UTC) #14
sadrul
https://codereview.chromium.org/1923983003/diff/60001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/1923983003/diff/60001/ash/shelf/shelf_layout_manager.cc#newcode238 ash/shelf/shelf_layout_manager.cc:238: ->AddObserver(root_window_controller_observer_.get()); This causes a crash in chrome --mash, because ...
4 years, 7 months ago (2016-04-28 06:01:31 UTC) #16
sky
https://codereview.chromium.org/1923983003/diff/60001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/1923983003/diff/60001/ash/shelf/shelf_layout_manager.cc#newcode238 ash/shelf/shelf_layout_manager.cc:238: ->AddObserver(root_window_controller_observer_.get()); On 2016/04/28 06:01:31, sadrul wrote: > This causes ...
4 years, 7 months ago (2016-04-28 15:23:40 UTC) #17
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/4dc7d0496343775c344899a2ad5742865f81a93b Cr-Commit-Position: refs/heads/master@{#390297}
4 years, 7 months ago (2016-04-30 17:16:08 UTC) #18
msw
I think this broke left/right shelf layout in mash... It works at the prior ToT ...
4 years, 7 months ago (2016-05-05 22:56:20 UTC) #21
sky
I believe Sadrul fixed that here: https://codereview.chromium.org/1916913007 . I'll try tip of tree shortly and ...
4 years, 7 months ago (2016-05-06 15:40:07 UTC) #22
sky
Indeed, I don't see a crash on tip of tree. Let me know if you ...
4 years, 7 months ago (2016-05-06 15:52:48 UTC) #23
James Cook
On 2016/05/06 15:52:48, sky wrote: > Indeed, I don't see a crash on tip of ...
4 years, 7 months ago (2016-05-06 17:24:01 UTC) #24
sky
Ok, I'll look at that. On Fri, May 6, 2016 at 10:24 AM, <jamescook@chromium.org> wrote: ...
4 years, 7 months ago (2016-05-06 17:26:18 UTC) #25
sky
4 years, 7 months ago (2016-05-09 14:21:50 UTC) #26
Message was sent while issue was closed.
I couldn't readily find how to change the alignment on tip of tree,
and I'm about to head out on vacation. I believe what needs to happen
is ShelfLayoutManager should continue to override
OnShelfAlignmentChanged, but only call LayoutShelf() if in mus. If not
urgent wait until Thursday and I'll fix it first thing then.

Sorry for the hassle.

  -Scott

On Fri, May 6, 2016 at 10:26 AM, Scott Violet <sky@chromium.org> wrote:
> Ok, I'll look at that.
>
> On Fri, May 6, 2016 at 10:24 AM,  <jamescook@chromium.org> wrote:
>> On 2016/05/06 15:52:48, sky wrote:
>>> Indeed, I don't see a crash on tip of tree. Let me know if you are
>>> seeing otherwise and I'll investigate.
>>>
>>> -Scott
>>>
>>> On Fri, May 6, 2016 at 8:40 AM, Scott Violet <mailto:sky@chromium.org>
>>> wrote:
>>> > I believe Sadrul fixed that here:
>>> > https://codereview.chromium.org/1916913007
>>> .
>>> >
>>> > I'll try tip of tree shortly and see what's what.
>>> >
>>> > -Scott
>>> >
>>> > On Thu, May 5, 2016 at 3:56 PM, <mailto:msw@chromium.org> wrote:
>>> >> I think this broke left/right shelf layout in mash...
>>> >>
>>> >> It works at the prior ToT position #390296 (452ce11)
>>> >> Mash crashes at this ToT position...
>>> >> It's broken at ToT position #390541 (fa1ae58)
>>> >>
>>> >> Scott/Sadrul, would you mind taking a quick look?
>>> >> I can help if needed, but didn't look closely here.
>>> >>
>>> >> https://codereview.chromium.org/1923983003/
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Chromium-reviews" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>> email
>>> to mailto:chromium-reviews+unsubscribe@chromium.org.
>>>
>>
>> I think this issue is that setting the shelf alignment to left or right
>> breaks
>> its layout. The shelf icons disappear. There's no crash at ToT, but I see
>> the
>> layout issue.
>>
>>
>> https://codereview.chromium.org/1923983003/

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698