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

Issue 8775022: Add Panel::SetPanelBoundsInstantly for all platforms. (Closed)

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

Description

Add Panel::SetPanelBoundsInstantly for all platforms. This is needed for panel overflow handling. PanelOverflowStrip (to be added in another patch) will control the hover animation for all overflow panels so that they can be synchronized well. SetPanelBoundsInstantly tells the panel to change bounds instantly without animation. BUG=none TEST=new test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112576

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix per feedback #

Total comments: 4

Patch Set 3 : Fix per feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -7 lines) Patch
M chrome/browser/ui/panels/native_panel.h View 1 2 1 chunk +1 line, -0 lines 1 comment Download
M chrome/browser/ui/panels/panel.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 1 2 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.mm View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.cc View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.mm View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jianli
9 years ago (2011-12-01 19:51:41 UTC) #1
Dmitry Titov
http://codereview.chromium.org/8775022/diff/1/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): http://codereview.chromium.org/8775022/diff/1/chrome/browser/ui/panels/panel.cc#newcode139 chrome/browser/ui/panels/panel.cc:139: SetPanelBounds(bounds, true); // use animation. We tend to do ...
9 years ago (2011-12-01 19:59:51 UTC) #2
jianli
http://codereview.chromium.org/8775022/diff/1/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): http://codereview.chromium.org/8775022/diff/1/chrome/browser/ui/panels/panel.cc#newcode139 chrome/browser/ui/panels/panel.cc:139: SetPanelBounds(bounds, true); // use animation. On 2011/12/01 19:59:51, Dmitry ...
9 years ago (2011-12-01 20:24:07 UTC) #3
jennb
http://codereview.chromium.org/8775022/diff/5001/chrome/browser/ui/panels/panel_browser_window_cocoa.mm File chrome/browser/ui/panels/panel_browser_window_cocoa.mm (right): http://codereview.chromium.org/8775022/diff/5001/chrome/browser/ui/panels/panel_browser_window_cocoa.mm#newcode115 chrome/browser/ui/panels/panel_browser_window_cocoa.mm:115: void PanelBrowserWindowCocoa::SetPanelBoundsInstantly(const gfx::Rect& bounds) { Could you use the ...
9 years ago (2011-12-01 20:52:37 UTC) #4
Dmitry Titov
lgtm I'd be glad to see no explicit passing of 'true' or 'false' in internal ...
9 years ago (2011-12-01 20:52:50 UTC) #5
prasadt
lgtm One suggestion to consider. http://codereview.chromium.org/8775022/diff/3002/chrome/browser/ui/panels/native_panel.h File chrome/browser/ui/panels/native_panel.h (right): http://codereview.chromium.org/8775022/diff/3002/chrome/browser/ui/panels/native_panel.h#newcode41 chrome/browser/ui/panels/native_panel.h:41: virtual void SetPanelBoundsInstantly(const gfx::Rect& ...
9 years ago (2011-12-01 22:21:44 UTC) #6
Dmitry Titov
9 years ago (2011-12-01 22:28:26 UTC) #7
On 2011/12/01 22:21:44, prasadt wrote:
> lgtm
> 
> One suggestion to consider.
> 
>
http://codereview.chromium.org/8775022/diff/3002/chrome/browser/ui/panels/nat...
> File chrome/browser/ui/panels/native_panel.h (right):
> 
>
http://codereview.chromium.org/8775022/diff/3002/chrome/browser/ui/panels/nat...
> chrome/browser/ui/panels/native_panel.h:41: virtual void
> SetPanelBoundsInstantly(const gfx::Rect& bounds) = 0;
> Why a separate method? Why not a single method that takes as second parameter?

To avoid having a method with a bool param that has to be passed a literal at
callsites. Or creating an enum.

Powered by Google App Engine
This is Rietveld 408576698