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

Issue 846443004: mac: Implement custom AppKit Enter Fullscreen transition. (Closed)

Created:
5 years, 11 months ago by erikchen
Modified:
5 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/a48cbbba0075b7a7c135605ab576bad2cfa5a1b3 Cr-Commit-Position: refs/heads/master@{#311717}

Patch Set 1 : #

Total comments: 18

Patch Set 2 : Comments from andresantoso. #

Patch Set 3 : Comments from andresantoso, round 2. #

Total comments: 24

Patch Set 4 : Comments from rsesek. #

Patch Set 5 : Fix several secondary screen bugs. #

Patch Set 6 : Comments from rsesek, round 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -6 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.h View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 4 chunks +56 lines, -4 lines 0 comments Download
A chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h View 1 2 3 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm View 1 2 3 4 5 1 chunk +302 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
erikchen
andresantoso: Please review.
5 years, 11 months ago (2015-01-10 02:34:17 UTC) #9
Andre
https://codereview.chromium.org/846443004/diff/140001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h File chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h (right): https://codereview.chromium.org/846443004/diff/140001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h#newcode1 chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-12 06:10:04 UTC) #10
erikchen
andresantoso: PTAL https://codereview.chromium.org/846443004/diff/140001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h File chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h (right): https://codereview.chromium.org/846443004/diff/140001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h#newcode1 chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h:1: // Copyright 2014 The Chromium Authors. All ...
5 years, 11 months ago (2015-01-12 19:18:59 UTC) #11
Andre
LGTM https://codereview.chromium.org/846443004/diff/140001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm File chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm (right): https://codereview.chromium.org/846443004/diff/140001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm#newcode234 chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm:234: CGFloat yScale = initialFrame.size.height / endFrame.size.height; On 2015/01/12 ...
5 years, 11 months ago (2015-01-12 19:27:20 UTC) #12
erikchen
https://codereview.chromium.org/846443004/diff/140001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm File chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm (right): https://codereview.chromium.org/846443004/diff/140001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm#newcode234 chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm:234: CGFloat yScale = initialFrame.size.height / endFrame.size.height; On 2015/01/12 19:27:20, ...
5 years, 11 months ago (2015-01-12 19:31:57 UTC) #13
erikchen
rsesek: Please review.
5 years, 11 months ago (2015-01-12 19:32:19 UTC) #15
erikchen
https://codereview.chromium.org/846443004/diff/180001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm File chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm (right): https://codereview.chromium.org/846443004/diff/180001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm#newcode166 chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm:166: CALayer* rootLayer = [self rootLayerOfWindow:_primaryWindow]; As andre pointed out, ...
5 years, 11 months ago (2015-01-12 19:50:45 UTC) #16
Robert Sesek
Does this not change the exit fullscreen animation? https://codereview.chromium.org/846443004/diff/180001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h File chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h (right): https://codereview.chromium.org/846443004/diff/180001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h#newcode8 chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h:8: #import ...
5 years, 11 months ago (2015-01-12 22:05:27 UTC) #17
erikchen
rsesek: PTAL This CL does not change the exit fullscreen animation. That will come in ...
5 years, 11 months ago (2015-01-13 02:51:28 UTC) #18
Robert Sesek
LGTM Sorry for the delay; was at an offsite this week. https://codereview.chromium.org/846443004/diff/180001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm File chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm (right): ...
5 years, 11 months ago (2015-01-15 01:36:54 UTC) #19
erikchen
https://codereview.chromium.org/846443004/diff/180001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm File chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm (right): https://codereview.chromium.org/846443004/diff/180001/chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm#newcode157 chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm:157: [[_primaryWindow backgroundColor] retain]); On 2015/01/15 01:36:54, Robert Sesek wrote: ...
5 years, 11 months ago (2015-01-15 18:50:16 UTC) #20
erikchen
mark: Looking for an OWNER review of base/mac/sdk_forward_declarations.h.
5 years, 11 months ago (2015-01-15 18:50:55 UTC) #22
Mark Mentovai
LGTM on that file.
5 years, 11 months ago (2015-01-15 18:51:42 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/846443004/240001
5 years, 11 months ago (2015-01-15 18:53:40 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:240001)
5 years, 11 months ago (2015-01-15 19:55:20 UTC) #26
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/a48cbbba0075b7a7c135605ab576bad2cfa5a1b3 Cr-Commit-Position: refs/heads/master@{#311717}
5 years, 11 months ago (2015-01-15 19:56:23 UTC) #27
maniscalco
A revert of this CL (patchset #6 id:240001) has been created in https://codereview.chromium.org/848153005/ by maniscalco@chromium.org. ...
5 years, 11 months ago (2015-01-15 23:32:46 UTC) #28
maniscalco
5 years, 11 months ago (2015-01-15 23:37:24 UTC) #29
Message was sent while issue was closed.
On 2015/01/15 23:32:46, maniscalco wrote:
> A revert of this CL (patchset #6 id:240001) has been created in
> https://codereview.chromium.org/848153005/ by mailto:maniscalco@chromium.org.
> 
> The reason for reverting is: Trying to track down a sizes failure. 
> Speculatively reverting.  Will re-apply if not the cause..

Bug for sizes failure:
https://code.google.com/p/chromium/issues/detail?id=449333

Powered by Google App Engine
This is Rietveld 408576698