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

Issue 1276383004: Implemented fullscreen exit animation with AppKit (Closed)

Created:
5 years, 4 months ago by spqchan1
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement a smoother animation for exiting full screen on OSX 10.10 with AppKit. Modified BrowserWindowEnterFullscreenTransition class so that it contains the animations for entering and exiting fullscreen. Added a lock and overrode some methods in FramedBrowserWindow to prevent AppKit from changing the style mask and the size of the window before the end of the exit animation A method is added to FullSizeWindow to allow us to force the contentView to resize BUG=519735 Committed: https://crrev.com/6adb1bc1f87fbbbba19b2950d48a48f67eb87d23 Cr-Commit-Position: refs/heads/master@{#343426}

Patch Set 1 #

Patch Set 2 : Fixed some whitespace issues #

Total comments: 1

Patch Set 3 : Removed unnecessary changes int browser_window_controller_private #

Patch Set 4 : Fixed format issues #

Total comments: 73

Patch Set 5 : Added UMA metrics for overrides and fixed some issues according to review #

Patch Set 6 : Move some layout logic into FullScreen Transition #

Patch Set 7 : Removed unwanted change in a browser_window_layout #

Patch Set 8 : Refactored the code to log UMA metrics #

Total comments: 34

Patch Set 9 : Remove histogram changes #

Patch Set 10 : Fixing some comments and etc #

Patch Set 11 : Fixed comments in browser_window_fullscreen_transition.h #

Patch Set 12 : Fix more comments #

Patch Set 13 : Fix comments #

Patch Set 14 : Fixed some issue #

Patch Set 15 : Add missing period #

Patch Set 16 : Made some changes according to missed comments on Patch #

Total comments: 23

Patch Set 17 : More edits #

Patch Set 18 : Made some changes to FullSizeWindow #

Patch Set 19 : Improved some comments #

Patch Set 20 : Fix some unwrapped comments #

Patch Set 21 : Fixed comment wrappings and periods #

Patch Set 22 : Fix for comment wrappings and periods. #

Patch Set 23 : #

Patch Set 24 : Fix with comment format #

Total comments: 18

Patch Set 25 : Fixed some issues #

Patch Set 26 : Fix method signature #

Total comments: 6

Patch Set 27 : Fixed FrameAndStyleLock according to C++ style guide #

Patch Set 28 : Removed extra include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -503 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 chunks +51 lines, -11 lines 0 comments Download
D chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.h View 1 chunk +0 lines, -110 lines 0 comments Download
D chrome/browser/ui/cocoa/browser_window_enter_fullscreen_transition.mm View 1 chunk +0 lines, -290 lines 0 comments Download
A + chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 7 chunks +56 lines, -26 lines 0 comments Download
A + chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 13 chunks +157 lines, -58 lines 0 comments Download
M chrome/browser/ui/cocoa/framed_browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/framed_browser_window.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/full_size_content_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/full_size_content_window.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (11 generated)
spqchan1
5 years, 4 months ago (2015-08-08 00:40:52 UTC) #2
erikchen
https://codereview.chromium.org/1276383004/diff/60001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (left): https://codereview.chromium.org/1276383004/diff/60001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#oldcode709 chrome/browser/ui/cocoa/browser_window_controller_private.mm:709: enterFullscreenTransition_.reset(); did you mean to replace with fullscreenTransition_? https://codereview.chromium.org/1276383004/diff/60001/chrome/browser/ui/cocoa/browser_window_controller_private.mm ...
5 years, 4 months ago (2015-08-10 18:06:26 UTC) #3
spqchan1
https://codereview.chromium.org/1276383004/diff/60001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (left): https://codereview.chromium.org/1276383004/diff/60001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#oldcode709 chrome/browser/ui/cocoa/browser_window_controller_private.mm:709: enterFullscreenTransition_.reset(); On 2015/08/10 18:06:24, erikchen wrote: > did you ...
5 years, 4 months ago (2015-08-11 21:43:49 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276383004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276383004/140001
5 years, 4 months ago (2015-08-11 21:47:49 UTC) #6
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 4 months ago (2015-08-11 21:47:52 UTC) #8
spqchan1
PTAL
5 years, 4 months ago (2015-08-11 21:52:05 UTC) #9
erikchen
On 2015/08/11 21:52:05, spqchan1 wrote: > PTAL (more comments to follow) Please update your CL ...
5 years, 4 months ago (2015-08-11 21:53:35 UTC) #10
erikchen
spqchan: I started a review pass, but it appears that you have not yet responded ...
5 years, 4 months ago (2015-08-11 22:42:55 UTC) #11
spqchan1
PTAL https://codereview.chromium.org/1276383004/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/1276383004/diff/20001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode787 chrome/browser/ui/cocoa/browser_window_controller_private.mm:787: [framedWindow setFrameAndStyleLock:NO]; Removed the lock here because reset() ...
5 years, 4 months ago (2015-08-12 19:34:42 UTC) #12
spqchan1
PTAL Sorry for the missing the comments in Patch 4, I added changes according to ...
5 years, 4 months ago (2015-08-12 21:07:37 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276383004/290001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276383004/290001
5 years, 4 months ago (2015-08-12 21:32:45 UTC) #15
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 4 months ago (2015-08-12 21:32:47 UTC) #17
erikchen
overall looks good, just another pass for nits. https://codereview.chromium.org/1276383004/diff/290001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/1276383004/diff/290001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode776 chrome/browser/ui/cocoa/browser_window_controller_private.mm:776: [self ...
5 years, 4 months ago (2015-08-12 22:08:53 UTC) #18
spqchan1
PTAL https://codereview.chromium.org/1276383004/diff/290001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/1276383004/diff/290001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode776 chrome/browser/ui/cocoa/browser_window_controller_private.mm:776: [self layoutSubviews]; On 2015/08/12 22:08:52, erikchen wrote: > ...
5 years, 4 months ago (2015-08-13 20:38:48 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276383004/450001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276383004/450001
5 years, 4 months ago (2015-08-13 20:39:48 UTC) #21
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 4 months ago (2015-08-13 20:39:50 UTC) #23
erikchen
Your CL description is inaccurate (it talks about UMA), and it isn't column wrapped to ...
5 years, 4 months ago (2015-08-13 20:47:26 UTC) #24
spqchan1
Added andresantoso as a reviewer
5 years, 4 months ago (2015-08-13 20:52:31 UTC) #26
erikchen
On 2015/08/13 20:52:31, spqchan1 wrote: > Added andresantoso as a reviewer Your CL description is ...
5 years, 4 months ago (2015-08-13 20:55:52 UTC) #27
Andre
https://codereview.chromium.org/1276383004/diff/450001/chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h File chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h (right): https://codereview.chromium.org/1276383004/diff/450001/chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h#newcode69 chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h:69: // startCustomFullScreenAnimationWithDuration:duration]; nit: I think this will fit in ...
5 years, 4 months ago (2015-08-13 23:03:19 UTC) #28
spqchan1
PTAL https://codereview.chromium.org/1276383004/diff/450001/chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h File chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h (right): https://codereview.chromium.org/1276383004/diff/450001/chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h#newcode69 chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h:69: // startCustomFullScreenAnimationWithDuration:duration]; On 2015/08/13 23:03:18, Andre wrote: > ...
5 years, 4 months ago (2015-08-14 01:08:27 UTC) #29
Andre
LGTM (You still need an owner to review)
5 years, 4 months ago (2015-08-14 01:15:31 UTC) #30
erikchen
+rsesek for OWNER review.
5 years, 4 months ago (2015-08-14 01:49:39 UTC) #32
Robert Sesek
Just a few style nits. https://codereview.chromium.org/1276383004/diff/490001/chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm File chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm (right): https://codereview.chromium.org/1276383004/diff/490001/chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm#newcode35 chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm:35: window_.reset([window retain]); You can ...
5 years, 4 months ago (2015-08-14 02:27:05 UTC) #33
spqchan1
PTAL https://codereview.chromium.org/1276383004/diff/490001/chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm File chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm (right): https://codereview.chromium.org/1276383004/diff/490001/chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm#newcode35 chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm:35: window_.reset([window retain]); On 2015/08/14 02:27:05, Robert Sesek (slow ...
5 years, 4 months ago (2015-08-14 16:35:54 UTC) #34
Robert Sesek
LGTM
5 years, 4 months ago (2015-08-14 16:38:47 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1276383004/530001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1276383004/530001
5 years, 4 months ago (2015-08-14 16:44:49 UTC) #38
commit-bot: I haz the power
Committed patchset #28 (id:530001)
5 years, 4 months ago (2015-08-14 17:48:51 UTC) #39
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 17:49:26 UTC) #40
Message was sent while issue was closed.
Patchset 28 (id:??) landed as
https://crrev.com/6adb1bc1f87fbbbba19b2950d48a48f67eb87d23
Cr-Commit-Position: refs/heads/master@{#343426}

Powered by Google App Engine
This is Rietveld 408576698