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

Issue 523723002: mac, fullscreen: Several bug fixes after major refactor. (Closed)

Created:
6 years, 3 months ago by erikchen
Modified:
6 years, 3 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, rohitrao (ping after 24h)
Base URL:
https://chromium.googlesource.com/chromium/src.git@new_fullscreen2
Project:
chromium
Visibility:
Public.

Description

mac, fullscreen: Several bug fixes after major refactor. Bugs: - Artifacts while entering AppKit Fullscreen in Yosemite. - Presentation Mode and Canonical Fullscreen tab strip layout is incorrect when menubar is hidden. (bug was already present before refactor) - Canonical Fullscreen should ignore the mouse tracking area. Non-trivial refactor: - Previously, the layout of the tabstrip/omnibox in presentation mode was queued off of a single property, a fraction that ranged from 0 to 1. It was used both to reflect layout changes from the menu bar, and to reflect layout changes from showing the tabstrip/omnibox. This caused problems for Canonical Fullscreen, and also caused layout bugs when the menu bar is hidden. I created 2 properties: 1 to track offset of the tabstrip/omnibox, and another to track offset of the menu bar. - I reintroduced the logic from fullscreen_mode_controller that uses Carbon APIs to track menu bar animations. - The jankiness during menu bar animations is because the web contents is being resized every step of the animation, which is slow. Trivial refactor: - Moved the "sliding style" enum and property from browser_window_controller into presentation_mode_controller. - Moved the "floatingBarShownFraction" property from browser_window_controller into presentation_mode_controller, and renamed to "toolbarPercentage". BUG=NONE

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : Comments from rsesek. (Includes a rebase against the latest fullscreen refactor) #

Total comments: 6

Patch Set 4 : More comments from rsesek. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -97 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 4 chunks +5 lines, -16 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 5 chunks +50 lines, -43 lines 0 comments Download
M chrome/browser/ui/cocoa/presentation_mode_controller.h View 1 2 3 4 chunks +31 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/presentation_mode_controller.mm View 1 2 3 16 chunks +101 lines, -20 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
erikchen
rsesek: Please review. This CL depends on "mac: Major fullscreen refactor." https://codereview.chromium.org/493143004/
6 years, 3 months ago (2014-08-29 19:03:29 UTC) #2
Robert Sesek
Before we do this, can you rip out simplified fullscreen?
6 years, 3 months ago (2014-08-29 20:14:35 UTC) #3
erikchen
I see this CL as being logically connected to the fullscreen refactor. I was considering ...
6 years, 3 months ago (2014-08-29 20:34:17 UTC) #4
erikchen
rsesek: For reference, the CL to remove simplified fullscreen is here: https://codereview.chromium.org/523233002/
6 years, 3 months ago (2014-08-29 23:20:36 UTC) #5
erikchen
rsesek: Once you review this CL, I'd like to merge this CL with the fullscreen ...
6 years, 3 months ago (2014-09-02 16:49:16 UTC) #6
Robert Sesek
On 2014/09/02 16:49:16, erikchen wrote: > rsesek: Once you review this CL, I'd like to ...
6 years, 3 months ago (2014-09-02 19:59:49 UTC) #7
erikchen
rsesek: PTAL Re: merging to M38. This CL, as well as the fullscreen refactor, and ...
6 years, 3 months ago (2014-09-02 20:43:21 UTC) #8
Robert Sesek
https://codereview.chromium.org/523723002/diff/40001/chrome/browser/ui/cocoa/presentation_mode_controller.h File chrome/browser/ui/cocoa/presentation_mode_controller.h (right): https://codereview.chromium.org/523723002/diff/40001/chrome/browser/ui/cocoa/presentation_mode_controller.h#newcode103 chrome/browser/ui/cocoa/presentation_mode_controller.h:103: nit: no blank line https://codereview.chromium.org/523723002/diff/40001/chrome/browser/ui/cocoa/presentation_mode_controller.h#newcode146 chrome/browser/ui/cocoa/presentation_mode_controller.h:146: - (void)setMenuBarRevealProgress:(CGFloat)progress; Does ...
6 years, 3 months ago (2014-09-03 20:22:09 UTC) #9
Robert Sesek
On 2014/09/02 20:43:21, erikchen wrote: > rsesek: PTAL > > Re: merging to M38. This ...
6 years, 3 months ago (2014-09-03 20:29:04 UTC) #10
erikchen
rsesek: PTAL https://codereview.chromium.org/523723002/diff/40001/chrome/browser/ui/cocoa/presentation_mode_controller.h File chrome/browser/ui/cocoa/presentation_mode_controller.h (right): https://codereview.chromium.org/523723002/diff/40001/chrome/browser/ui/cocoa/presentation_mode_controller.h#newcode103 chrome/browser/ui/cocoa/presentation_mode_controller.h:103: On 2014/09/03 20:22:09, rsesek wrote: > nit: ...
6 years, 3 months ago (2014-09-03 20:29:52 UTC) #11
Robert Sesek
lgtm
6 years, 3 months ago (2014-09-03 20:34:45 UTC) #12
erikchen
On 2014/09/03 20:29:04, rsesek wrote: > On 2014/09/02 20:43:21, erikchen wrote: > > rsesek: PTAL ...
6 years, 3 months ago (2014-09-03 20:34:52 UTC) #13
Robert Sesek
On 2014/09/03 20:34:52, erikchen wrote: > On 2014/09/03 20:29:04, rsesek wrote: > > On 2014/09/02 ...
6 years, 3 months ago (2014-09-03 20:36:03 UTC) #14
erikchen
6 years, 3 months ago (2014-09-04 17:12:18 UTC) #15
Message was sent while issue was closed.
This CL was merged into
https://codereview.chromium.org/533383002/

Powered by Google App Engine
This is Rietveld 408576698