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

Issue 9463022: Minimized panels should not open on Windows when activated by the OS (Closed)

Created:
8 years, 10 months ago by Andrei
Modified:
8 years, 9 months ago
Reviewers:
jennb, jianli
CC:
chromium-reviews, Dmitry Lomov (no reviews), Dmitry Titov, jianli, dcheng
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Minimized panels should not open on Windows when activated by the OS Minimized panels are not "minimized" from the OS point of view so they may receive focus when other windows are minimized or closed. This patch sets the flags on the minimized panels in such way that they are not activated by the OS but still appear in the Alt-Tab menu and on the taskbar. BUG=102721 TEST=Manually verify that minimized panels do not open spontaneously when other windows are closed, but are accessible through the taskbar and Alt-Tab. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124790 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125752

Patch Set 1 #

Patch Set 2 : Minimized panels should not open when activated by OS #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : merged with the cleanup patch #

Total comments: 3

Patch Set 6 : #

Total comments: 1

Patch Set 7 : removed unnecessary include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -15 lines) Patch
M chrome/browser/ui/panels/detached_panel_strip.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/docked_panel_strip.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/native_panel.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/overflow_panel_strip.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.mm View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.cc View 1 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.mm View 1 2 3 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
jennb
panel.cc is intended for platform-independent logic. The Windows logic should go in panel_browser_view.cc. You could ...
8 years, 9 months ago (2012-02-29 05:16:16 UTC) #1
jennb
Might also have to watch for the LAYOUT_CHANGED notification, too, as panels going into overflow ...
8 years, 9 months ago (2012-02-29 17:46:01 UTC) #2
Andrei
Reworked the patch to move the platform-dependent logic into the corresponding platform-dependent files. Added a ...
8 years, 9 months ago (2012-03-01 22:32:41 UTC) #3
jennb
LGTM - did you want to wait for my cleanup patch first? http://codereview.chromium.org/9463022/diff/7001/chrome/browser/ui/panels/panel_browser_view.cc File chrome/browser/ui/panels/panel_browser_view.cc ...
8 years, 9 months ago (2012-03-01 23:21:28 UTC) #4
aburago_google.com
On Thu, Mar 1, 2012 at 3:21 PM, <jennb@chromium.org> wrote: > LGTM - did you ...
8 years, 9 months ago (2012-03-01 23:36:40 UTC) #5
Andrei
Took care of the nits and made it use IsPanelMinimized() as in the cleanup patch.
8 years, 9 months ago (2012-03-02 21:23:56 UTC) #6
jennb
Still LGTM
8 years, 9 months ago (2012-03-02 21:30:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aburago@chromium.org/9463022/9001
8 years, 9 months ago (2012-03-02 22:00:28 UTC) #8
commit-bot: I haz the power
Change committed as 124790
8 years, 9 months ago (2012-03-03 00:38:45 UTC) #9
Andrei
Added proper #if's for Aura. Merged with the cleanup patch. Added guards for NULL panel ...
8 years, 9 months ago (2012-03-06 17:56:17 UTC) #10
jennb
http://codereview.chromium.org/9463022/diff/18001/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): http://codereview.chromium.org/9463022/diff/18001/chrome/browser/ui/panels/panel.cc#newcode164 chrome/browser/ui/panels/panel.cc:164: native_panel_->PreventActivationByOS(panel_strip_->IsPanelMinimized(this)); This makes more sense in AddPanel where the ...
8 years, 9 months ago (2012-03-06 21:56:44 UTC) #11
Andrei
On Tue, Mar 6, 2012 at 1:56 PM, <jennb@chromium.org> wrote: > > http://codereview.chromium.**org/9463022/diff/18001/chrome/** > browser/ui/panels/panel.cc<http://codereview.chromium.org/9463022/diff/18001/chrome/browser/ui/panels/panel.cc> ...
8 years, 9 months ago (2012-03-06 22:18:40 UTC) #12
Andrei
renamed set_panel_strip() to SetPanelStrip() to comply with the style guide.
8 years, 9 months ago (2012-03-07 01:23:19 UTC) #13
jennb
LGTM http://codereview.chromium.org/9463022/diff/27001/chrome/browser/ui/panels/overflow_panel_strip.cc File chrome/browser/ui/panels/overflow_panel_strip.cc (right): http://codereview.chromium.org/9463022/diff/27001/chrome/browser/ui/panels/overflow_panel_strip.cc#newcode9 chrome/browser/ui/panels/overflow_panel_strip.cc:9: #include "chrome/browser/ui/panels/native_panel.h" delete
8 years, 9 months ago (2012-03-07 18:30:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aburago@chromium.org/9463022/31001
8 years, 9 months ago (2012-03-07 21:22:57 UTC) #15
commit-bot: I haz the power
Try job failure for 9463022-31001 (retry) on win_rel for step "ui_tests". It's a second try, ...
8 years, 9 months ago (2012-03-08 02:57:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aburago@chromium.org/9463022/31001
8 years, 9 months ago (2012-03-08 16:58:50 UTC) #17
commit-bot: I haz the power
Try job failure for 9463022-31001 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-08 21:18:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aburago@chromium.org/9463022/31001
8 years, 9 months ago (2012-03-08 23:36:17 UTC) #19
commit-bot: I haz the power
8 years, 9 months ago (2012-03-09 01:12:02 UTC) #20
Change committed as 125752

Powered by Google App Engine
This is Rietveld 408576698