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

Side by Side Diff: chrome/browser/ui/cocoa/framed_browser_window.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FRAMED_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "chrome/browser/ui/cocoa/chrome_browser_window.h" 10 #include "chrome/browser/ui/cocoa/chrome_browser_window.h"
(...skipping 19 matching lines...) Expand all
30 @interface FramedBrowserWindow : ChromeBrowserWindow { 30 @interface FramedBrowserWindow : ChromeBrowserWindow {
31 @private 31 @private
32 BOOL shouldHideTitle_; 32 BOOL shouldHideTitle_;
33 BOOL hasTabStrip_; 33 BOOL hasTabStrip_;
34 NSButton* closeButton_; 34 NSButton* closeButton_;
35 NSButton* miniaturizeButton_; 35 NSButton* miniaturizeButton_;
36 NSButton* zoomButton_; 36 NSButton* zoomButton_;
37 37
38 // Locks the window's frame and style mask. If it's set to YES, then the 38 // Locks the window's frame and style mask. If it's set to YES, then the
39 // frame and the style mask cannot be changed. 39 // frame and the style mask cannot be changed.
40 BOOL frameAndStyleMaskLock_; 40 BOOL styleMaskLock_;
41 41
42 CGFloat windowButtonsInterButtonSpacing_; 42 CGFloat windowButtonsInterButtonSpacing_;
43 } 43 }
44 44
45 // Designated initializer. 45 // Designated initializer.
46 - (id)initWithContentRect:(NSRect)contentRect 46 - (id)initWithContentRect:(NSRect)contentRect
47 hasTabStrip:(BOOL)hasTabStrip; 47 hasTabStrip:(BOOL)hasTabStrip;
48 48
49 // Tells the window to suppress title drawing. 49 // Tells the window to suppress title drawing.
50 - (void)setShouldHideTitle:(BOOL)flag; 50 - (void)setShouldHideTitle:(BOOL)flag;
51 51
52 // When the lock is set to YES, the frame and style mask of the Window cannot be 52 // When the lock is set to YES, the frame and style mask of the Window cannot be
53 // changed. This is used to prevent AppKit from making these unwanted changes 53 // changed. This is used to prevent AppKit from making these unwanted changes
54 // to the window during exit fullscreen transition. It is very important to 54 // to the window during exit fullscreen transition. It is very important to
55 // release this lock after the transition is completed. 55 // release this lock after the transition is completed.
56 - (void)setFrameAndStyleMaskLock:(BOOL)lock; 56 - (void)setStyleMaskLock:(BOOL)lock;
57 57
58 // This method is overridden to prevent AppKit from setting the style mask 58 // This method is overridden to prevent AppKit from setting the style mask
59 // when frameAndStyleMaskLock_ is set to true. 59 // when frameAndStyleMaskLock_ is set to true.
60 - (void)setStyleMask:(NSUInteger)styleMask; 60 - (void)setStyleMask:(NSUInteger)styleMask;
61 61
62 // This method is overridden to prevent the AppKit from setting the frame when
63 // frameAndStyleMaskLock_ is set to true.
64 - (void)setFrame:(NSRect)windowFrame
65 display:(BOOL)displayViews
66 animate:(BOOL)performAnimation;
67
68 // Returns the desired spacing between window control views. 62 // Returns the desired spacing between window control views.
69 - (CGFloat)windowButtonsInterButtonSpacing; 63 - (CGFloat)windowButtonsInterButtonSpacing;
70 64
71 // Calls the superclass's implementation of |-toggleFullScreen:|. 65 // Calls the superclass's implementation of |-toggleFullScreen:|.
72 - (void)toggleSystemFullScreen; 66 - (void)toggleSystemFullScreen;
73 67
74 // Called by CustomFrameView to determine a custom location for the Lion 68 // Called by CustomFrameView to determine a custom location for the Lion
75 // fullscreen button. Returns NSZeroPoint to use the Lion default. 69 // fullscreen button. Returns NSZeroPoint to use the Lion default.
76 - (NSPoint)fullScreenButtonOriginAdjustment; 70 - (NSPoint)fullScreenButtonOriginAdjustment;
77 71
(...skipping 14 matching lines...) Expand all
92 86
93 // Undocumented Cocoa API to suppress drawing of the window's title. 87 // Undocumented Cocoa API to suppress drawing of the window's title.
94 // -setTitle: still works, but the title set only applies to the 88 // -setTitle: still works, but the title set only applies to the
95 // miniwindow and menus (and, importantly, Expose). Overridden to 89 // miniwindow and menus (and, importantly, Expose). Overridden to
96 // return |shouldHideTitle_|. 90 // return |shouldHideTitle_|.
97 -(BOOL)_isTitleHidden; 91 -(BOOL)_isTitleHidden;
98 92
99 @end 93 @end
100 94
101 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ 95 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_fullscreen_transition.mm ('k') | chrome/browser/ui/cocoa/framed_browser_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698