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

Issue 10106008: Change Panel titlebars to activate the panel on click (rather than minimize). (Closed)

Created:
8 years, 8 months ago by jennb
Modified:
8 years, 8 months ago
Reviewers:
Dmitry Titov, jianli
CC:
chromium-reviews, jennb, jianli, dcheng, Andrei
Visibility:
Public.

Description

Change Panel titlebars to activate the panel on click (rather than minimize). Ctrl/Shift+titlebar-click on a minimized panel continues to restore-all, but does not minimize-all on an expanded panel anymore. An explicit minimize/restore button will be used for minimize/restore (separate patches), thus clicking on the titlebar is being changed to focus/restore the panel instead. BUG=101217, 118431, 121020, 123176 TEST=Existing tests updated, also verified manually on all platforms. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134021

Patch Set 1 #

Patch Set 2 : Synced #

Patch Set 3 : Win changes #

Patch Set 4 : GTK changes #

Total comments: 9

Patch Set 5 : Synced #

Patch Set 6 : Reset. Minimal platform-indep changes to stop titlebar click from minimizing panels on GTK. #

Patch Set 7 : Synced #

Patch Set 8 : WChanges to get worrking on Win. Consolidated logic in new OnActiveStatusChanged. #

Patch Set 9 : Mac changes. New test. Ready for review. #

Total comments: 19

Patch Set 10 : Synced #

Patch Set 11 : feedback changes #

Patch Set 12 : fix win compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -267 lines) Patch
M chrome/browser/ui/panels/docked_panel_strip.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +26 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +25 lines, -81 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -45 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +96 lines, -41 lines 0 comments Download
M chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 8 chunks +15 lines, -56 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
jennb
I won't commit this until we have an alternate way to minimize a panel, but ...
8 years, 8 months ago (2012-04-17 23:51:54 UTC) #1
Dmitry Titov
Ouch! I've added comments but the patch set got deleted, with them! Re-adding...
8 years, 8 months ago (2012-04-18 01:24:37 UTC) #2
Dmitry Titov
http://codereview.chromium.org/10106008/diff/2003/chrome/browser/ui/panels/detached_panel_strip.cc File chrome/browser/ui/panels/detached_panel_strip.cc (right): http://codereview.chromium.org/10106008/diff/2003/chrome/browser/ui/panels/detached_panel_strip.cc#newcode68 chrome/browser/ui/panels/detached_panel_strip.cc:68: panel->Activate(); See the comment in the same method of ...
8 years, 8 months ago (2012-04-18 01:49:45 UTC) #3
jianli
http://codereview.chromium.org/10106008/diff/2003/chrome/browser/ui/panels/docked_panel_strip.cc File chrome/browser/ui/panels/docked_panel_strip.cc (right): http://codereview.chromium.org/10106008/diff/2003/chrome/browser/ui/panels/docked_panel_strip.cc#newcode512 chrome/browser/ui/panels/docked_panel_strip.cc:512: panel->Activate(); // Will expand a minimized panel. Just as ...
8 years, 8 months ago (2012-04-18 22:18:47 UTC) #4
jennb
On Wed, Apr 18, 2012 at 3:18 PM, <jianli@chromium.org> wrote: > > http://codereview.chromium.**org/10106008/diff/2003/chrome/** > browser/ui/panels/panel_**browser_view.cc#newcode506<http://codereview.chromium.org/10106008/diff/2003/chrome/browser/ui/panels/panel_browser_view.cc#newcode506> ...
8 years, 8 months ago (2012-04-19 16:30:59 UTC) #5
jennb
Finally ready for another round of review. http://codereview.chromium.org/10106008/diff/2003/chrome/browser/ui/panels/detached_panel_strip.cc File chrome/browser/ui/panels/detached_panel_strip.cc (right): http://codereview.chromium.org/10106008/diff/2003/chrome/browser/ui/panels/detached_panel_strip.cc#newcode68 chrome/browser/ui/panels/detached_panel_strip.cc:68: panel->Activate(); On ...
8 years, 8 months ago (2012-04-24 18:47:14 UTC) #6
jianli
http://codereview.chromium.org/10106008/diff/42001/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): http://codereview.chromium.org/10106008/diff/42001/chrome/browser/ui/panels/panel.cc#newcode690 chrome/browser/ui/panels/panel.cc:690: // Clear draw attention state when an expanded panel ...
8 years, 8 months ago (2012-04-25 18:19:31 UTC) #7
jennb
http://codereview.chromium.org/10106008/diff/42001/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): http://codereview.chromium.org/10106008/diff/42001/chrome/browser/ui/panels/panel.cc#newcode690 chrome/browser/ui/panels/panel.cc:690: // Clear draw attention state when an expanded panel ...
8 years, 8 months ago (2012-04-25 20:34:05 UTC) #8
Dmitry Titov
lgtm.
8 years, 8 months ago (2012-04-25 21:37:35 UTC) #9
jianli
8 years, 8 months ago (2012-04-25 22:30:46 UTC) #10
lgtm

Powered by Google App Engine
This is Rietveld 408576698