OLD | NEW |
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // release this lock after the transition is completed. | 55 // release this lock after the transition is completed. |
56 - (void)setStyleMaskLock:(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 // Returns the desired spacing between window control views. | 62 // Returns the desired spacing between window control views. |
63 - (CGFloat)windowButtonsInterButtonSpacing; | 63 - (CGFloat)windowButtonsInterButtonSpacing; |
64 | 64 |
65 // Calls the superclass's implementation of |-toggleFullScreen:|. | |
66 - (void)toggleSystemFullScreen; | |
67 | |
68 // Called by CustomFrameView to determine a custom location for the Lion | 65 // Called by CustomFrameView to determine a custom location for the Lion |
69 // fullscreen button. Returns NSZeroPoint to use the Lion default. | 66 // fullscreen button. Returns NSZeroPoint to use the Lion default. |
70 - (NSPoint)fullScreenButtonOriginAdjustment; | 67 - (NSPoint)fullScreenButtonOriginAdjustment; |
71 | 68 |
72 // Draws the window theme into the specified rect. Returns whether a theme was | 69 // Draws the window theme into the specified rect. Returns whether a theme was |
73 // drawn (whether incognito or full pattern theme; an overlay image doesn't | 70 // drawn (whether incognito or full pattern theme; an overlay image doesn't |
74 // count). | 71 // count). |
75 + (BOOL)drawWindowThemeInDirtyRect:(NSRect)dirtyRect | 72 + (BOOL)drawWindowThemeInDirtyRect:(NSRect)dirtyRect |
76 forView:(NSView*)view | 73 forView:(NSView*)view |
77 bounds:(NSRect)bounds | 74 bounds:(NSRect)bounds |
78 forceBlackBackground:(BOOL)forceBlackBackground; | 75 forceBlackBackground:(BOOL)forceBlackBackground; |
79 | 76 |
80 // Gets the color to draw title text. | 77 // Gets the color to draw title text. |
81 - (NSColor*)titleColor; | 78 - (NSColor*)titleColor; |
82 | 79 |
83 @end | 80 @end |
84 | 81 |
85 @interface NSWindow (UndocumentedAPI) | 82 @interface NSWindow (UndocumentedAPI) |
86 | 83 |
87 // Undocumented Cocoa API to suppress drawing of the window's title. | 84 // Undocumented Cocoa API to suppress drawing of the window's title. |
88 // -setTitle: still works, but the title set only applies to the | 85 // -setTitle: still works, but the title set only applies to the |
89 // miniwindow and menus (and, importantly, Expose). Overridden to | 86 // miniwindow and menus (and, importantly, Expose). Overridden to |
90 // return |shouldHideTitle_|. | 87 // return |shouldHideTitle_|. |
91 -(BOOL)_isTitleHidden; | 88 -(BOOL)_isTitleHidden; |
92 | 89 |
93 @end | 90 @end |
94 | 91 |
95 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ | 92 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ |
OLD | NEW |