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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_utils.h

Issue 9692016: Revert 120593 - Ensure the previously active browser window gets the focus after a browser window i… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/cocoa/browser_window_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698