| Index: chrome/browser/ui/panels/panel_browser_window_cocoa.mm
|
| diff --git a/chrome/browser/ui/panels/panel_browser_window_cocoa.mm b/chrome/browser/ui/panels/panel_browser_window_cocoa.mm
|
| index dd8bff2ab72f123216e155f5c481fe30ec1556cb..ba84b09dfb6e3578cac2983ef0177054de45f4cd 100644
|
| --- a/chrome/browser/ui/panels/panel_browser_window_cocoa.mm
|
| +++ b/chrome/browser/ui/panels/panel_browser_window_cocoa.mm
|
| @@ -103,13 +103,22 @@ gfx::Rect PanelBrowserWindowCocoa::GetPanelBounds() const {
|
| // |bounds| is the platform-independent screen coordinates, with (0,0) at
|
| // top-left of the primary screen.
|
| void PanelBrowserWindowCocoa::SetPanelBounds(const gfx::Rect& bounds) {
|
| + setBoundsInternal(bounds, true);
|
| +}
|
| +
|
| +void PanelBrowserWindowCocoa::SetPanelBoundsInstantly(const gfx::Rect& bounds) {
|
| + setBoundsInternal(bounds, false);
|
| +}
|
| +
|
| +void PanelBrowserWindowCocoa::setBoundsInternal(const gfx::Rect& bounds,
|
| + bool animate) {
|
| if (bounds_ == bounds)
|
| return;
|
|
|
| bounds_ = bounds;
|
|
|
| NSRect frame = ConvertCoordinatesToCocoa(bounds);
|
| - [controller_ setPanelFrame:frame];
|
| + [controller_ setPanelFrame:frame animate:animate];
|
| }
|
|
|
| void PanelBrowserWindowCocoa::ClosePanel() {
|
|
|