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

Issue 8384020: Close new bubbles on deactivate; disable rendering Chrome inactive. (Closed)

Created:
9 years, 1 month ago by msw
Modified:
9 years, 1 month ago
CC:
chromium-reviews, tfarina, Paweł Hajdan Jr., dhollowa, alicet1
Visibility:
Public.

Description

Close new bubbles on deactivate; disable rendering Chrome inactive. Implement WidgetFocusChangeListener, close on deactivate. DisableInactiveRendering on the parent's top level widget. Notify widgets without non-client views of activation changes. To ensure bubble owners get the first click event that closes the bubble: Stop explicitly setting the owner as the foreground window on close. To ensure that removing this code didn't regress crbug.com/75610: Add WS_POPUP for modal dialogs and re-enable owners on close (allowing OS activation). Note: Showing bubbles long after CreateBubble might break DisableInactiveRendering. BUG=97248, 98312 TEST=views_examples bubbles close on deactivate, example window never appears deactivated. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108912

Patch Set 1 : Disable inactive rendering of Chrome with new bubbles. #

Patch Set 2 : Attempt close on loss of focus. #

Patch Set 3 : Implement WidgetFocusChangeListener instead. #

Total comments: 4

Patch Set 4 : Implement Widget::Observer instead. #

Patch Set 5 : Fix Window style, activation notification, and dialog owner enabling on close. #

Patch Set 6 : Tentative test fix. #

Patch Set 7 : Remove the WS_POPUP style for non-modal dialogs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -23 lines) Patch
M views/bubble/bubble_delegate.h View 1 2 3 4 4 chunks +13 lines, -2 lines 0 comments Download
M views/bubble/bubble_delegate.cc View 1 2 3 4 4 chunks +13 lines, -0 lines 0 comments Download
M views/widget/native_widget_win.cc View 1 2 3 4 5 6 6 chunks +12 lines, -19 lines 0 comments Download
M views/widget/root_view.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
msw
PTAL; thanks!
9 years, 1 month ago (2011-11-01 23:49:11 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/8384020/diff/9001/views/bubble/bubble_delegate.cc File views/bubble/bubble_delegate.cc (right): http://codereview.chromium.org/8384020/diff/9001/views/bubble/bubble_delegate.cc#newcode145 views/bubble/bubble_delegate.cc:145: if (focused_before == native_view && focused_now != native_view) { ...
9 years, 1 month ago (2011-11-01 23:54:56 UTC) #2
msw
Please take another look; thanks! http://codereview.chromium.org/8384020/diff/9001/views/bubble/bubble_delegate.cc File views/bubble/bubble_delegate.cc (right): http://codereview.chromium.org/8384020/diff/9001/views/bubble/bubble_delegate.cc#newcode145 views/bubble/bubble_delegate.cc:145: if (focused_before == native_view ...
9 years, 1 month ago (2011-11-05 03:22:24 UTC) #3
Ben Goodger (Google)
Very interesting. If this works, LGTM :-)
9 years, 1 month ago (2011-11-07 17:07:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/8384020/17001
9 years, 1 month ago (2011-11-07 19:07:50 UTC) #5
commit-bot: I haz the power
9 years, 1 month ago (2011-11-07 21:23:38 UTC) #6
Change committed as 108912

Powered by Google App Engine
This is Rietveld 408576698