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

Unified Diff: chrome/browser/ui/panels/panel_window_controller_cocoa.mm

Issue 8775022: Add Panel::SetPanelBoundsInstantly for all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel_window_controller_cocoa.mm
diff --git a/chrome/browser/ui/panels/panel_window_controller_cocoa.mm b/chrome/browser/ui/panels/panel_window_controller_cocoa.mm
index 06e69df40e587410dc730d05bad69c18ca377ad3..0d5ea65726dada52cea9aaa8602a0de281e13d80 100644
--- a/chrome/browser/ui/panels/panel_window_controller_cocoa.mm
+++ b/chrome/browser/ui/panels/panel_window_controller_cocoa.mm
@@ -405,7 +405,8 @@ enum {
windowShim_->panel()->manager()->Drag(deltaX);
}
-- (void)setPanelFrame:(NSRect)frame {
+- (void)setPanelFrame:(NSRect)frame
+ animate:(BOOL)animate {
// Setup the whole window as the tracking area so that we can get notified
// when the mouse enters or leaves the window. This will make us be able to
// show or hide settings button accordingly.
@@ -421,7 +422,7 @@ enum {
[[[[self window] contentView] superview]
addTrackingArea:windowTrackingArea_.get()];
- if (!animateOnBoundsChange_) {
+ if (!animateOnBoundsChange_ || !animate) {
[[self window] setFrame:frame display:YES animate:NO];
return;
}

Powered by Google App Engine
This is Rietveld 408576698