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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // Called by CustomFrameView to determine a custom location for the Lion | 50 // Called by CustomFrameView to determine a custom location for the Lion |
51 // fullscreen button. Returns NSZeroPoint to use the Lion default. | 51 // fullscreen button. Returns NSZeroPoint to use the Lion default. |
52 - (NSPoint)fullScreenButtonOriginAdjustment; | 52 - (NSPoint)fullScreenButtonOriginAdjustment; |
53 | 53 |
54 // Draws the window theme into the specified rect. Returns whether a theme was | 54 // Draws the window theme into the specified rect. Returns whether a theme was |
55 // drawn (whether incognito or full pattern theme; an overlay image doesn't | 55 // drawn (whether incognito or full pattern theme; an overlay image doesn't |
56 // count). | 56 // count). |
57 + (BOOL)drawWindowThemeInDirtyRect:(NSRect)dirtyRect | 57 + (BOOL)drawWindowThemeInDirtyRect:(NSRect)dirtyRect |
58 forView:(NSView*)view | 58 forView:(NSView*)view |
59 bounds:(NSRect)bounds | 59 bounds:(NSRect)bounds |
60 offset:(NSPoint)offset | |
61 forceBlackBackground:(BOOL)forceBlackBackground; | 60 forceBlackBackground:(BOOL)forceBlackBackground; |
62 | 61 |
63 // Gets the color to draw title text. | 62 // Gets the color to draw title text. |
64 - (NSColor*)titleColor; | 63 - (NSColor*)titleColor; |
65 | 64 |
66 @end | 65 @end |
67 | 66 |
68 @interface NSWindow (UndocumentedAPI) | 67 @interface NSWindow (UndocumentedAPI) |
69 | 68 |
70 // Undocumented Cocoa API to suppress drawing of the window's title. | 69 // Undocumented Cocoa API to suppress drawing of the window's title. |
71 // -setTitle: still works, but the title set only applies to the | 70 // -setTitle: still works, but the title set only applies to the |
72 // miniwindow and menus (and, importantly, Expose). Overridden to | 71 // miniwindow and menus (and, importantly, Expose). Overridden to |
73 // return |shouldHideTitle_|. | 72 // return |shouldHideTitle_|. |
74 -(BOOL)_isTitleHidden; | 73 -(BOOL)_isTitleHidden; |
75 | 74 |
76 @end | 75 @end |
77 | 76 |
78 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ | 77 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ |
OLD | NEW |