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

Issue 252673002: Fixed screen capture confirmation dialog to be either system or browser window modal. (Closed)

Created:
6 years, 8 months ago by zel
Modified:
6 years, 8 months ago
Reviewers:
Jun Mukai, oshima, sky
CC:
chromium-reviews, fischman+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org, tfarina
Visibility:
Public.

Description

Fixed screen capture confirmation dialog to be either system- or window-modal depending on where it got initiated from. Previous implementation created window-modal with no parent window which allowed it to hide underneath its browser window. Fixed handling of window-modal dialogs. Modal dialogs and their toplevel parent windows weren't properly activated on events (i.e. mouse click) that happen in toplevel parent windows area but outside of the modal dialog. TEST=added WindowModalityControllerTest.EventsForEclipsedWindows, manual: start go/present/<whatever>, try to alt-tab away from the pop up dialog, try to eclipse it with another browser window BUG=366956 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266319

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : android build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -3 lines) Patch
M ash/wm/window_modality_controller_unittest.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 2 3 4 5 5 chunks +34 lines, -1 line 0 comments Download
M chrome/browser/ui/views/simple_message_box_views.cc View 5 chunks +12 lines, -2 lines 0 comments Download
M ui/wm/core/window_modality_controller.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
zel
6 years, 8 months ago (2014-04-25 01:27:19 UTC) #1
Jun Mukai
lgtm
6 years, 8 months ago (2014-04-25 01:42:42 UTC) #2
sky
LGTM
6 years, 8 months ago (2014-04-25 15:41:03 UTC) #3
zel
PTAL I needed also to fix i/wm/core/window_modality_controller.cc since window-modal dialogs and its top-level window weren't ...
6 years, 8 months ago (2014-04-25 17:55:37 UTC) #4
oshima
https://codereview.chromium.org/252673002/diff/60001/ui/wm/core/window_modality_controller.cc File ui/wm/core/window_modality_controller.cc (right): https://codereview.chromium.org/252673002/diff/60001/ui/wm/core/window_modality_controller.cc#newcode189 ui/wm/core/window_modality_controller.cc:189: aura::Window* toplevel = GetToplevelWindow(target); shouldn't this be modal_transient_child?
6 years, 8 months ago (2014-04-25 19:06:06 UTC) #5
zel
i've added a unit test for this too https://codereview.chromium.org/252673002/diff/60001/ui/wm/core/window_modality_controller.cc File ui/wm/core/window_modality_controller.cc (right): https://codereview.chromium.org/252673002/diff/60001/ui/wm/core/window_modality_controller.cc#newcode189 ui/wm/core/window_modality_controller.cc:189: aura::Window* ...
6 years, 8 months ago (2014-04-25 20:44:40 UTC) #6
sky
LGTM
6 years, 8 months ago (2014-04-25 21:05:47 UTC) #7
zel
The CQ bit was checked by zelidrag@chromium.org
6 years, 8 months ago (2014-04-25 21:15:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/252673002/100001
6 years, 8 months ago (2014-04-25 22:01:22 UTC) #9
commit-bot: I haz the power
6 years, 8 months ago (2014-04-26 02:10:39 UTC) #10
Message was sent while issue was closed.
Change committed as 266319

Powered by Google App Engine
This is Rietveld 408576698