diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 21:01:37 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 21:01:37 +0000 |
commit | 8c340d04ee3e18a1e5fb26d0c484adbb3d4e8955 (patch) | |
tree | 2ec1581ddcafb43a45d53bd5998ec57a94dea060 /chrome/browser/cocoa/tab_window_controller.h | |
parent | a4480e975f2d03a43b06166c3d10305d346768da (diff) | |
download | chromium_src-8c340d04ee3e18a1e5fb26d0c484adbb3d4e8955.zip chromium_src-8c340d04ee3e18a1e5fb26d0c484adbb3d4e8955.tar.gz chromium_src-8c340d04ee3e18a1e5fb26d0c484adbb3d4e8955.tar.bz2 |
[Mac] Adds a "fast resize mode" in which the RenderWidgetHostViewCocoa is clipped rather than resized. Useful for when animations are running.
BUG=http://crbug.com/26857
TEST=Animations should still work. Infobar animations should be smoother. The web contents will clip or fill with white at the bottom while the animation is running, but should resize and draw correctly when the animation finishes.
Review URL: http://codereview.chromium.org/372056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31472 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_window_controller.h')
-rw-r--r-- | chrome/browser/cocoa/tab_window_controller.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/tab_window_controller.h b/chrome/browser/cocoa/tab_window_controller.h index ba11bb9..04346e5 100644 --- a/chrome/browser/cocoa/tab_window_controller.h +++ b/chrome/browser/cocoa/tab_window_controller.h @@ -23,12 +23,13 @@ #import "base/cocoa_protocols_mac.h" #include "base/scoped_nsobject.h" +@class FastResizeView; @class TabStripView; @class TabView; @interface TabWindowController : NSWindowController<NSWindowDelegate> { @private - IBOutlet NSView* tabContentArea_; + IBOutlet FastResizeView* tabContentArea_; IBOutlet TabStripView* tabStripView_; NSWindow* overlayWindow_; // Used during dragging for window opacity tricks NSView* cachedContentView_; // Used during dragging for identifying which @@ -38,7 +39,7 @@ BOOL closeDeferred_; // If YES, call performClose: in removeOverlay:. } @property(readonly, nonatomic) TabStripView* tabStripView; -@property(readonly, nonatomic) NSView* tabContentArea; +@property(readonly, nonatomic) FastResizeView* tabContentArea; // Used during tab dragging to turn on/off the overlay window when a tab // is torn off. If -deferPerformClose (below) is used, -removeOverlay will |