diff options
author | erikchen <erikchen@chromium.org> | 2015-01-15 11:54:40 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-15 19:55:47 +0000 |
commit | a48cbbba0075b7a7c135605ab576bad2cfa5a1b3 (patch) | |
tree | 9626a027791b554a896981aafa8d4a8b05fff7b1 /base/mac | |
parent | 2d1046b2ca5c18fa03cfa2f08708bbd3be98dbdb (diff) | |
download | chromium_src-a48cbbba0075b7a7c135605ab576bad2cfa5a1b3.zip chromium_src-a48cbbba0075b7a7c135605ab576bad2cfa5a1b3.tar.gz chromium_src-a48cbbba0075b7a7c135605ab576bad2cfa5a1b3.tar.bz2 |
mac: Implement custom AppKit Enter Fullscreen transition.
AppKit's default Fullscreen transition cross-fades between two static images: a
snapshot of the window before the transition began, and a snapshot of the
window resized to the full size of the screen. This has the problem that
frequently, when AppKit takes the snapshot of the final state of the window,
the web contents view has not yet drawn any content in the new size. The
animation itself looks weird, and then there's a flash when the animation
finishes where the snapshot of the old web content is replaced by the new web
content.
This custom fullscreen transition is very similar, except instead of taking a
snapshot of the window in its final state, the transition uses a live version
of the window in its final state. See the associated bug for more details about
the implementation.
BUG=414527
Review URL: https://codereview.chromium.org/846443004
Cr-Commit-Position: refs/heads/master@{#311717}
Diffstat (limited to 'base/mac')
-rw-r--r-- | base/mac/sdk_forward_declarations.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/mac/sdk_forward_declarations.h b/base/mac/sdk_forward_declarations.h index f606dab..faa36ea 100644 --- a/base/mac/sdk_forward_declarations.h +++ b/base/mac/sdk_forward_declarations.h @@ -105,6 +105,7 @@ typedef NSUInteger NSWindowButton; - (void)setAnimationBehavior:(NSWindowAnimationBehavior)newAnimationBehavior; - (void)toggleFullScreen:(id)sender; - (void)setRestorable:(BOOL)flag; +- (NSRect)convertRectFromScreen:(NSRect)aRect; @end @interface NSCursor (LionSDKDeclarations) |