OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
11 class Browser; | 11 class Browser; |
(...skipping 20 matching lines...) Expand all Loading... |
32 // a matching window and title. This function returns a NSString* that can be | 32 // a matching window and title. This function returns a NSString* that can be |
33 // passed in future calls as oldTitle. | 33 // passed in future calls as oldTitle. |
34 + (NSString*)scheduleReplaceOldTitle:(NSString*)oldTitle | 34 + (NSString*)scheduleReplaceOldTitle:(NSString*)oldTitle |
35 withNewTitle:(NSString*)newTitle | 35 withNewTitle:(NSString*)newTitle |
36 forWindow:(NSWindow*)window; | 36 forWindow:(NSWindow*)window; |
37 | 37 |
38 + (NSPoint)themePatternPhaseFor:(NSView*)windowView | 38 + (NSPoint)themePatternPhaseFor:(NSView*)windowView |
39 withTabStrip:(NSView*)tabStripView; | 39 withTabStrip:(NSView*)tabStripView; |
40 | 40 |
41 + (void)activateWindowForController:(NSWindowController*)controller; | 41 + (void)activateWindowForController:(NSWindowController*)controller; |
42 | |
43 // Some browser windows (Panels) use a different NSWindowLevel, causing the | |
44 // system to prefer them over other windows when selecting the next window | |
45 // to give focus to after a browser window is closed. | |
46 // This method selects the previous active browser window instead. | |
47 // |closedBrowser| is the browser that is being closed. Used to ensure it | |
48 // is excluded from the selection process. | |
49 // Does nothing if no previous active window is found. | |
50 + (void)selectPreviousActiveBrowserWindow:(Browser*)closedBrowser; | |
51 @end | 42 @end |
52 | 43 |
53 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ | 44 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ |
OLD | NEW |