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

Issue 2859333003: cros: Fix bubble dialog shows on desktop when parent window is invisible (Closed)

Created:
3 years, 7 months ago by Qiang(Joe) Xu
Modified:
3 years, 7 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Fix bubble dialog shows on desktop when parent window is invisible changes: CreateBubbleWidget in bubble_dialog_delegate.cc does not set params.child, so it is added as transient child on chrome os: https://cs.chromium.org/chromium/src/ui/views/widget/native_widget_aura.cc?q=native_widget_aura&dr=C&l=180. We should set_parent_controls_visibility(true) for it, which makes the window's visibility following the transient parent's visibility. BUG=704350 TEST=added test coverage After this change, the reporter's bug will become: when browser is minimized, the dialog will activate/unminimize the browser. Review-Url: https://codereview.chromium.org/2859333003 Cr-Commit-Position: refs/heads/master@{#470231} Committed: https://chromium.googlesource.com/chromium/src/+/ca0239ad985f47fde15a73d64e3cdac1d8d3660f

Patch Set 1 #

Patch Set 2 : fix test failures #

Patch Set 3 : BubbleDialogDelegate #

Patch Set 4 : tests failure #

Patch Set 5 : fix bubble showing on desktop when minimized only #

Total comments: 2

Patch Set 6 : add comment #

Total comments: 2

Patch Set 7 : comment and added test coverage #

Total comments: 4

Patch Set 8 : feedback #

Total comments: 4

Patch Set 9 : just create widget on stack #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -0 lines) Patch
M chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (41 generated)
Qiang(Joe) Xu
Hi all, PTAL, thanks! About bubble dialog stealing focus (activating browser window), let us make ...
3 years, 7 months ago (2017-05-05 20:23:48 UTC) #27
sky
LGTM https://codereview.chromium.org/2859333003/diff/80001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/2859333003/diff/80001/ui/views/widget/native_widget_aura.cc#newcode186 ui/views/widget/native_widget_aura.cc:186: if (params.type == Widget::InitParams::TYPE_BUBBLE) { This is very ...
3 years, 7 months ago (2017-05-05 23:23:19 UTC) #30
Qiang(Joe) Xu
A comment is added. PTAL, thanks https://codereview.chromium.org/2859333003/diff/80001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/2859333003/diff/80001/ui/views/widget/native_widget_aura.cc#newcode186 ui/views/widget/native_widget_aura.cc:186: if (params.type == ...
3 years, 7 months ago (2017-05-06 00:12:22 UTC) #31
oshima
can you add a unit test?
3 years, 7 months ago (2017-05-06 20:32:47 UTC) #32
sky
SLGTM - as Oshima says though, a test would be good here. https://codereview.chromium.org/2859333003/diff/100001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc ...
3 years, 7 months ago (2017-05-07 22:29:38 UTC) #33
Qiang(Joe) Xu
Hi all, comment updated & test coverage added, PTAL https://codereview.chromium.org/2859333003/diff/100001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/2859333003/diff/100001/ui/views/widget/native_widget_aura.cc#newcode186 ui/views/widget/native_widget_aura.cc:186: ...
3 years, 7 months ago (2017-05-08 16:53:29 UTC) #39
sky
https://codereview.chromium.org/2859333003/diff/120001/ui/views/widget/native_widget_aura_unittest.cc File ui/views/widget/native_widget_aura_unittest.cc (right): https://codereview.chromium.org/2859333003/diff/120001/ui/views/widget/native_widget_aura_unittest.cc#newcode659 ui/views/widget/native_widget_aura_unittest.cc:659: Widget* parent = new Widget; Is this leaked? Was ...
3 years, 7 months ago (2017-05-08 21:24:30 UTC) #44
Qiang(Joe) Xu
Updated PTAL thanks https://codereview.chromium.org/2859333003/diff/120001/ui/views/widget/native_widget_aura_unittest.cc File ui/views/widget/native_widget_aura_unittest.cc (right): https://codereview.chromium.org/2859333003/diff/120001/ui/views/widget/native_widget_aura_unittest.cc#newcode659 ui/views/widget/native_widget_aura_unittest.cc:659: Widget* parent = new Widget; On ...
3 years, 7 months ago (2017-05-08 22:00:40 UTC) #45
sky
LGTM https://codereview.chromium.org/2859333003/diff/140001/ui/views/widget/native_widget_aura_unittest.cc File ui/views/widget/native_widget_aura_unittest.cc (right): https://codereview.chromium.org/2859333003/diff/140001/ui/views/widget/native_widget_aura_unittest.cc#newcode659 ui/views/widget/native_widget_aura_unittest.cc:659: std::unique_ptr<Widget> parent(new Widget); No need for the unique_ptr ...
3 years, 7 months ago (2017-05-08 22:42:11 UTC) #46
Qiang(Joe) Xu
Thanks, updated https://codereview.chromium.org/2859333003/diff/140001/ui/views/widget/native_widget_aura_unittest.cc File ui/views/widget/native_widget_aura_unittest.cc (right): https://codereview.chromium.org/2859333003/diff/140001/ui/views/widget/native_widget_aura_unittest.cc#newcode659 ui/views/widget/native_widget_aura_unittest.cc:659: std::unique_ptr<Widget> parent(new Widget); On 2017/05/08 22:42:11, sky ...
3 years, 7 months ago (2017-05-08 22:55:57 UTC) #47
oshima
lgtm thanks!
3 years, 7 months ago (2017-05-09 02:18:19 UTC) #48
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/2859333003/160001
3 years, 7 months ago (2017-05-09 03:06:15 UTC) #51
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 05:10:59 UTC) #54
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/ca0239ad985f47fde15a73d64e3c...

Powered by Google App Engine
This is Rietveld 408576698