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

Issue 2225833003: Fixes a couple of bugs in NativeWidgetMus (Closed)

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

Description

Fixes a couple of bugs in NativeWidgetMus 1. Show state was not getting configured correctly. 2. If a ui::WindowObserver was added before NativeWidgetMus, and that ui::WindowObserver queried show state from the widget it could get the wrong results. I'm hoping the change is enough, I may need to introduce a pre-change that NativeWidgetMus uses. We'll see. 3. Changed looking at surface_type to an explicit function is_parallel_widget_in_window_manager(). I added a test for 2, which is the more subtle of the fixes. BUG=634972 TEST=mostly covered by tests R=sadrul@chromium.org Committed: https://crrev.com/039443070732a60fbdac74929cfbefc627c565d9 Cr-Commit-Position: refs/heads/master@{#410460}

Patch Set 1 #

Patch Set 2 : moar #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -20 lines) Patch
M ui/views/mus/native_widget_mus.h View 2 chunks +7 lines, -1 line 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 16 chunks +32 lines, -19 lines 2 comments Download
M ui/views/mus/native_widget_mus_unittest.cc View 3 chunks +62 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (6 generated)
sky
4 years, 4 months ago (2016-08-08 18:29:20 UTC) #2
sadrul
lgtm https://codereview.chromium.org/2225833003/diff/20001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/2225833003/diff/20001/ui/views/mus/native_widget_mus.cc#newcode1427 ui/views/mus/native_widget_mus.cc:1427: if (is_parallel_widget_in_window_manager()) SWould it make sense to override ...
4 years, 4 months ago (2016-08-08 20:31:22 UTC) #6
sky
https://codereview.chromium.org/2225833003/diff/20001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/2225833003/diff/20001/ui/views/mus/native_widget_mus.cc#newcode1427 ui/views/mus/native_widget_mus.cc:1427: if (is_parallel_widget_in_window_manager()) On 2016/08/08 20:31:21, sadrul wrote: > SWould ...
4 years, 4 months ago (2016-08-08 21:10:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2225833003/20001
4 years, 4 months ago (2016-08-08 21:11:07 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-08 21:15:30 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 21:18:32 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/039443070732a60fbdac74929cfbefc627c565d9
Cr-Commit-Position: refs/heads/master@{#410460}

Powered by Google App Engine
This is Rietveld 408576698