| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |