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/view_resizer.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/view_resizer.h')
-rw-r--r-- | chrome/browser/cocoa/view_resizer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/view_resizer.h b/chrome/browser/cocoa/view_resizer.h index 091222d..209f2e4 100644 --- a/chrome/browser/cocoa/view_resizer.h +++ b/chrome/browser/cocoa/view_resizer.h @@ -16,6 +16,12 @@ // become necessary due to the resize. @protocol ViewResizer <NSObject> - (void)resizeView:(NSView*)view newHeight:(float)height; + +@optional +// Optional method called when an animation is beginning or ending. Resize +// delegates can implement this method if they need to modify their behavior +// while an animation is running. +- (void)setAnimationInProgress:(BOOL)inProgress; @end #endif // CHROME_BROWSER_COCOA_VIEW_RESIZER_H_ |