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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_fullscreen_transition.h

Issue 1408033010: Fix for Exit Fullscreen Animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_FULLSCREEN_TRANSITION_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_FULLSCREEN_TRANSITION_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_FULLSCREEN_TRANSITION_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_FULLSCREEN_TRANSITION_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 @class FramedBrowserWindow; 10 @class FramedBrowserWindow;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 @interface BrowserWindowFullscreenTransition : NSObject 95 @interface BrowserWindowFullscreenTransition : NSObject
96 96
97 // Designated initializers. |window| is the NSWindow that is going to be moved 97 // Designated initializers. |window| is the NSWindow that is going to be moved
98 // into a fullscreen Space (virtual desktop), and resized to have the same size 98 // into a fullscreen Space (virtual desktop), and resized to have the same size
99 // as the screen. |window|'s root view must be layer backed. 99 // as the screen. |window|'s root view must be layer backed.
100 // initEnterWithWindow will create a BrowserWindowFullscreenTransition that 100 // initEnterWithWindow will create a BrowserWindowFullscreenTransition that
101 // enters fullscreen. initExitWithWindow will create one that exits fullscreen, 101 // enters fullscreen. initExitWithWindow will create one that exits fullscreen,
102 // using |frame| as the frame that |window| is going to transition into. 102 // using |frame| as the frame that |window| is going to transition into.
103 - (instancetype)initEnterWithWindow:(FramedBrowserWindow*)window; 103 - (instancetype)initEnterWithWindow:(FramedBrowserWindow*)window;
104 - (instancetype)initExitWithWindow:(FramedBrowserWindow*)window 104 - (instancetype)initExitWithWindow:(FramedBrowserWindow*)window
105 frame:(NSRect)frame; 105 frame:(NSRect)frame
106 tabStripBackgroundView:(NSView*)view;
106 107
107 // Returns the windows to be used in the custom fullscreen transition. 108 // Returns the windows to be used in the custom fullscreen transition.
108 - (NSArray*)customWindowsForFullScreenTransition; 109 - (NSArray*)customWindowsForFullScreenTransition;
109 110
110 // This method begins animation for exit or enter fullscreen transition. 111 // This method begins animation for exit or enter fullscreen transition.
111 // In this method, the following happens: 112 // In this method, the following happens:
112 // - Animates the snapshot to the expected final size of the window while 113 // - Animates the snapshot to the expected final size of the window while
113 // fading it out. 114 // fading it out.
114 // - Animates the current window from its original to final location and size 115 // - Animates the current window from its original to final location and size
115 // while fading it in. 116 // while fading it in.
(...skipping 15 matching lines...) Expand all
131 // Returns the size of the window we expect the BrowserWindowLayout to have. 132 // Returns the size of the window we expect the BrowserWindowLayout to have.
132 // During the exit fullscreen transition, the content size shrinks while the 133 // During the exit fullscreen transition, the content size shrinks while the
133 // window frame stays the same. When that happens, we want to set the 134 // window frame stays the same. When that happens, we want to set the
134 // BrowserWindowLayout's window parameter to the content size instead of the 135 // BrowserWindowLayout's window parameter to the content size instead of the
135 // actual window's size. 136 // actual window's size.
136 - (NSSize)desiredWindowLayoutSize; 137 - (NSSize)desiredWindowLayoutSize;
137 138
138 @end 139 @end
139 140
140 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_FULLSCREEN_TRANSITION_H_ 141 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_FULLSCREEN_TRANSITION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698