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

Issue 7242017: Support minimizing the panel into 3-pixel line on Windows. Also support bringing up/down the titl... (Closed)

Created:
9 years, 6 months ago by jianli
Modified:
9 years, 5 months ago
Reviewers:
jennb, Dmitry Titov, dcheng
CC:
chromium-reviews, jennb, jianli, prasadt, Paweł Hajdan Jr.
Visibility:
Public.

Description

Support minimizing the panel into 3-pixel line on Windows. Also support bringing up/down the titlebar when we move the mouse over the bottom area. BUG=none TEST=new browser test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91222

Patch Set 1 #

Total comments: 31

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 26

Patch Set 5 : '' #

Total comments: 18

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -74 lines) Patch
M chrome/browser/ui/panels/native_panel.h View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 2 3 4 5 3 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 2 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_frame_view.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_frame_view.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.h View 1 2 3 4 5 5 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 1 2 3 4 5 7 chunks +39 lines, -27 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view_browsertest.cc View 1 2 3 4 5 3 chunks +89 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.mm View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.h View 1 2 3 3 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 1 2 3 3 chunks +23 lines, -15 lines 0 comments Download
A chrome/browser/ui/panels/panel_mouse_watcher_win.h View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/panel_mouse_watcher_win.cc View 1 2 3 4 5 1 chunk +95 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
jianli
9 years, 6 months ago (2011-06-24 01:25:15 UTC) #1
Dmitry Titov
One comment for start, I still need to review it. http://codereview.chromium.org/7242017/diff/1/chrome/browser/ui/panels/native_panel.h File chrome/browser/ui/panels/native_panel.h (right): http://codereview.chromium.org/7242017/diff/1/chrome/browser/ui/panels/native_panel.h#newcode37 ...
9 years, 6 months ago (2011-06-24 02:05:45 UTC) #2
jianli
I prefer having one method, perhaps calling it SetPanelState(PanelState)? On Thu, Jun 23, 2011 at ...
9 years, 6 months ago (2011-06-24 04:03:41 UTC) #3
Dmitry Titov
On 2011/06/24 04:03:41, jianli wrote: > I prefer having one method, perhaps calling it SetPanelState(PanelState)? ...
9 years, 6 months ago (2011-06-24 06:17:23 UTC) #4
dcheng
On 2011/06/24 06:17:23, Dmitry Titov wrote: > On 2011/06/24 04:03:41, jianli wrote: > > I ...
9 years, 6 months ago (2011-06-24 08:13:17 UTC) #5
jennb
http://codereview.chromium.org/7242017/diff/1/chrome/browser/ui/panels/panel_browser_view.cc File chrome/browser/ui/panels/panel_browser_view.cc (right): http://codereview.chromium.org/7242017/diff/1/chrome/browser/ui/panels/panel_browser_view.cc#newcode29 chrome/browser/ui/panels/panel_browser_view.cc:29: frame->set_frame_type(views::Widget::FRAME_TYPE_FORCE_CUSTOM); Curious - why did set_frame_type have to be ...
9 years, 6 months ago (2011-06-27 23:18:02 UTC) #6
jianli
http://codereview.chromium.org/7242017/diff/1/chrome/browser/ui/panels/native_panel.h File chrome/browser/ui/panels/native_panel.h (right): http://codereview.chromium.org/7242017/diff/1/chrome/browser/ui/panels/native_panel.h#newcode37 chrome/browser/ui/panels/native_panel.h:37: virtual void RestorePanel(bool titlebar_only) = 0; On 2011/06/24 02:05:45, ...
9 years, 5 months ago (2011-06-29 01:28:12 UTC) #7
jianli
I uploaded a new patch to implement the logic to bring up/down the titlebar as ...
9 years, 5 months ago (2011-06-29 18:25:13 UTC) #8
jennb
http://codereview.chromium.org/7242017/diff/1/chrome/browser/ui/panels/panel_manager.h File chrome/browser/ui/panels/panel_manager.h (right): http://codereview.chromium.org/7242017/diff/1/chrome/browser/ui/panels/panel_manager.h#newcode27 chrome/browser/ui/panels/panel_manager.h:27: // If an active panel is removed, pending panels ...
9 years, 5 months ago (2011-06-29 21:10:09 UTC) #9
jianli
Fixed. New patch uploaded. On Wed, Jun 29, 2011 at 2:10 PM, <jennb@chromium.org> wrote: > ...
9 years, 5 months ago (2011-06-29 21:13:08 UTC) #10
jennb
I don't see any test coverage for "bring up all titlebar" logic. http://codereview.chromium.org/7242017/diff/15025/chrome/browser/ui/panels/native_panel.h File chrome/browser/ui/panels/native_panel.h ...
9 years, 5 months ago (2011-06-29 23:17:54 UTC) #11
jianli
More tests added. http://codereview.chromium.org/7242017/diff/15025/chrome/browser/ui/panels/native_panel.h File chrome/browser/ui/panels/native_panel.h (right): http://codereview.chromium.org/7242017/diff/15025/chrome/browser/ui/panels/native_panel.h#newcode9 chrome/browser/ui/panels/native_panel.h:9: #include "chrome/browser/ui/panels/panel.h" On 2011/06/29 23:17:54, jennb ...
9 years, 5 months ago (2011-06-30 01:28:33 UTC) #12
jennb
http://codereview.chromium.org/7242017/diff/15025/chrome/browser/ui/panels/panel_browser_view.cc File chrome/browser/ui/panels/panel_browser_view.cc (right): http://codereview.chromium.org/7242017/diff/15025/chrome/browser/ui/panels/panel_browser_view.cc#newcode194 chrome/browser/ui/panels/panel_browser_view.cc:194: mouse_y >= bounds_.y(); On 2011/06/30 01:28:33, jianli wrote: > ...
9 years, 5 months ago (2011-06-30 17:33:31 UTC) #13
jianli
http://codereview.chromium.org/7242017/diff/14010/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): http://codereview.chromium.org/7242017/diff/14010/chrome/browser/ui/panels/panel.cc#newcode46 chrome/browser/ui/panels/panel.cc:46: void Panel::SetExpansionState(ExpansionState expansion_state) { On 2011/06/30 17:33:31, jennb wrote: ...
9 years, 5 months ago (2011-06-30 18:22:36 UTC) #14
jennb
LGTM
9 years, 5 months ago (2011-06-30 18:26:14 UTC) #15
Dmitry Titov
9 years, 5 months ago (2011-06-30 18:43:30 UTC) #16
LGTM from me too, need to update comment on
NativePanel::ShouldBringUpPanelTitleBar - discussed offline.

Powered by Google App Engine
This is Rietveld 408576698