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

Issue 2009853002: Finish eliminating PlatformWindowMus (Closed)

Created:
4 years, 7 months ago by Mark Dittmer
Modified:
4 years, 6 months ago
Reviewers:
nyquist, sadrul, sky, msw
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, sadrul, sriramsr+watch-blimp_chromium.org, tfarina, maniscalco+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, kalyank, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Finish eliminating PlatformWindowMus R=sadrul@chromium.org BUG=609555 Committed: https://crrev.com/bb0c85e1aaa882aa7c4c40b0e3da609573f07d8f Cr-Commit-Position: refs/heads/master@{#396745}

Patch Set 1 : Identical to CL #1999083002 #

Patch Set 2 : From wth->SetBounds to observer on OnWindowBoundsChanging #

Total comments: 4

Patch Set 3 : Resurrect unittests #

Patch Set 4 : Add set bounds bypassing widget unittest #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Total comments: 4

Patch Set 7 : Clean-up and add TODO to WTHM #

Total comments: 4

Patch Set 8 : rebase #

Patch Set 9 : Add DCHECK for bounds change; git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -225 lines) Patch
M ui/platform_window/stub/stub_window.cc View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M ui/views/mus/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 2 3 4 5 6 7 8 8 chunks +23 lines, -21 lines 0 comments Download
M ui/views/mus/native_widget_mus_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +31 lines, -1 line 0 comments Download
D ui/views/mus/platform_window_mus.h View 5 1 chunk +0 lines, -80 lines 0 comments Download
D ui/views/mus/platform_window_mus.cc View 1 2 3 4 5 1 chunk +0 lines, -108 lines 0 comments Download
M ui/views/mus/window_tree_host_mus.h View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -2 lines 0 comments Download
M ui/views/mus/window_tree_host_mus.cc View 1 2 3 4 5 6 7 8 3 chunks +35 lines, -8 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 43 (9 generated)
Mark Dittmer
4 years, 7 months ago (2016-05-25 14:55:45 UTC) #1
Mark Dittmer
From wth->SetBounds to observer on OnWindowBoundsChanging
4 years, 7 months ago (2016-05-25 20:44:07 UTC) #2
sadrul
https://codereview.chromium.org/2009853002/diff/20001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (left): https://codereview.chromium.org/2009853002/diff/20001/ui/views/mus/native_widget_mus.cc#oldcode893 ui/views/mus/native_widget_mus.cc:893: window_tree_host_->SetBounds(gfx::Rect(bounds.origin(), size)); Would it make sense to keep this ...
4 years, 7 months ago (2016-05-26 01:31:01 UTC) #3
Mark Dittmer
https://codereview.chromium.org/2009853002/diff/20001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (left): https://codereview.chromium.org/2009853002/diff/20001/ui/views/mus/native_widget_mus.cc#oldcode893 ui/views/mus/native_widget_mus.cc:893: window_tree_host_->SetBounds(gfx::Rect(bounds.origin(), size)); On 2016/05/26 01:31:01, sadrul wrote: > Would ...
4 years, 7 months ago (2016-05-26 13:37:33 UTC) #4
Mark Dittmer
Resurrect unittests
4 years, 7 months ago (2016-05-26 13:37:41 UTC) #5
Mark Dittmer
Add set bounds bypassing widget unittest
4 years, 7 months ago (2016-05-26 14:09:52 UTC) #6
Mark Dittmer
Latest patch includes wireframe fix via observer, and a unittest that catches the regression in ...
4 years, 6 months ago (2016-05-27 13:48:20 UTC) #7
Mark Dittmer
nyquist@chromium.org: Please review changes in blimp (same as approved in https://codereview.chromium.org/1999083002). sky@chromium.org: Please review changes ...
4 years, 6 months ago (2016-05-27 13:51:56 UTC) #9
Mark Dittmer
nyquist@chromium.org: Please review changes in blimp (same as approved in https://codereview.chromium.org/1999083002). sky@chromium.org: Please review changes ...
4 years, 6 months ago (2016-05-27 13:51:58 UTC) #10
Mark Dittmer
rebase
4 years, 6 months ago (2016-05-27 15:00:13 UTC) #11
sky
On Fri, May 27, 2016 at 6:51 AM, <markdittmer@chromium.org> wrote: > nyquist@chromium.org: Please review changes ...
4 years, 6 months ago (2016-05-27 15:45:02 UTC) #12
nyquist
Did something happen with your rebase? Seems to be no changes to //blimp either.
4 years, 6 months ago (2016-05-27 17:23:40 UTC) #13
Mark Dittmer
rebase
4 years, 6 months ago (2016-05-27 18:57:15 UTC) #14
Mark Dittmer
Sorry, branch management issue. nyquist@chromium.org, sky@chromium.org: PTAL.
4 years, 6 months ago (2016-05-27 18:58:53 UTC) #15
sky
LGTM
4 years, 6 months ago (2016-05-27 21:44:07 UTC) #16
sadrul
https://codereview.chromium.org/2009853002/diff/100001/ui/views/mus/window_tree_host_mus.cc File ui/views/mus/window_tree_host_mus.cc (right): https://codereview.chromium.org/2009853002/diff/100001/ui/views/mus/window_tree_host_mus.cc#newcode41 ui/views/mus/window_tree_host_mus.cc:41: OnAcceleratedWidgetAvailable(accelerated_widget, 1.f); Since we are doing OnAcceleratedWidgetAvailable() explicitly here, ...
4 years, 6 months ago (2016-05-30 14:42:11 UTC) #17
Mark Dittmer
Clean-up and add TODO to WTHM
4 years, 6 months ago (2016-05-30 15:18:45 UTC) #18
Mark Dittmer
https://codereview.chromium.org/2009853002/diff/100001/ui/views/mus/window_tree_host_mus.cc File ui/views/mus/window_tree_host_mus.cc (right): https://codereview.chromium.org/2009853002/diff/100001/ui/views/mus/window_tree_host_mus.cc#newcode41 ui/views/mus/window_tree_host_mus.cc:41: OnAcceleratedWidgetAvailable(accelerated_widget, 1.f); On 2016/05/30 14:42:11, sadrul wrote: > Add ...
4 years, 6 months ago (2016-05-30 15:24:28 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009853002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009853002/120001
4 years, 6 months ago (2016-05-30 15:36:12 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/13225) ios-device-gn on ...
4 years, 6 months ago (2016-05-30 15:38:02 UTC) #23
sadrul
A couple of comments. lgtm with those addressed https://codereview.chromium.org/2009853002/diff/120001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (left): https://codereview.chromium.org/2009853002/diff/120001/ui/views/mus/native_widget_mus.cc#oldcode893 ui/views/mus/native_widget_mus.cc:893: window_tree_host_->SetBounds(gfx::Rect(bounds.origin(), ...
4 years, 6 months ago (2016-05-30 15:44:45 UTC) #24
Mark Dittmer
rebase
4 years, 6 months ago (2016-05-30 16:01:03 UTC) #25
Mark Dittmer
Add DCHECK for bounds change; git cl format
4 years, 6 months ago (2016-05-30 16:14:52 UTC) #26
Mark Dittmer
https://codereview.chromium.org/2009853002/diff/120001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (left): https://codereview.chromium.org/2009853002/diff/120001/ui/views/mus/native_widget_mus.cc#oldcode893 ui/views/mus/native_widget_mus.cc:893: window_tree_host_->SetBounds(gfx::Rect(bounds.origin(), size)); On 2016/05/30 15:44:45, sadrul wrote: > This ...
4 years, 6 months ago (2016-05-30 16:14:55 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009853002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009853002/160001
4 years, 6 months ago (2016-05-30 16:15:20 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-30 17:24:44 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2009853002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2009853002/160001
4 years, 6 months ago (2016-05-30 17:42:13 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-05-30 17:45:54 UTC) #35
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/bb0c85e1aaa882aa7c4c40b0e3da609573f07d8f Cr-Commit-Position: refs/heads/master@{#396745}
4 years, 6 months ago (2016-05-30 17:47:15 UTC) #37
msw
Hey Mark, this broke the visibility of the wallpaper picker/manager window in mash with my ...
4 years, 6 months ago (2016-06-02 20:18:46 UTC) #39
Mark Dittmer
On 2016/06/02 20:18:46, msw wrote: > Hey Mark, this broke the visibility of the wallpaper ...
4 years, 6 months ago (2016-06-03 12:53:20 UTC) #40
sky
I also noticed that I no longer see a chrome window when starting chrome --mash. ...
4 years, 6 months ago (2016-06-03 16:13:46 UTC) #41
msw
On 2016/06/03 16:13:46, sky wrote: > I also noticed that I no longer see a ...
4 years, 6 months ago (2016-06-03 19:11:46 UTC) #42
sky
4 years, 6 months ago (2016-06-03 21:22:12 UTC) #43
Message was sent while issue was closed.
I figured out my problem. The chrome manifest wasn't getting built so
that chrome was never launching.

On Fri, Jun 3, 2016 at 9:13 AM, Scott Violet <sky@chromium.org> wrote:
> I also noticed that I no longer see a chrome window when starting
> chrome --mash. It may be related to the same issue.
>
>   -Scott
>
> On Fri, Jun 3, 2016 at 5:53 AM,  <markdittmer@chromium.org> wrote:
>> On 2016/06/02 20:18:46, msw wrote:
>>> Hey Mark, this broke the visibility of the wallpaper picker/manager window
>>> in
>>> mash with my WIP CL applied:
>>> https://codereview.chromium.org/1984433002
>>> (the window simply doesn't appear, but its shelf icon does)
>>> I'll take a closer look, but lmk if you have any tips.
>>
>> I'm not sure what would be causing this. My best guess is that something is
>> setting the aura window bounds without going through NativeWidgetMus. I
>> notice
>> that this CL introduces a mus::WindowObserver to update aura when the mus
>> window
>> changes, but no observer on the aura window to update the mus window. I'm
>> not
>> certain that this is the source of the issue, but since get/set bounds is
>> the
>> only behaviour that was left in PlatformWindowMus (deleted in this CL),
>> that's
>> my best guess.
>>
>> https://codereview.chromium.org/2009853002/

-- 
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