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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_window_controller.mm

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) 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 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h" 5 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" 8 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h"
9 #import "chrome/browser/ui/cocoa/themed_window.h" 9 #import "chrome/browser/ui/cocoa/themed_window.h"
10 #import "ui/base/cocoa/focus_tracker.h" 10 #import "ui/base/cocoa/focus_tracker.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 // Return the appropriate tab strip based on whether or not side tabs are 82 // Return the appropriate tab strip based on whether or not side tabs are
83 // enabled. 83 // enabled.
84 - (TabStripView*)tabStripView { 84 - (TabStripView*)tabStripView {
85 return tabStripView_; 85 return tabStripView_;
86 } 86 }
87 87
88 - (void)removeOverlay { 88 - (void)removeOverlay {
89 [self setUseOverlay:NO]; 89 [self setUseOverlay:NO];
90 if (closeDeferred_) 90 if (closeDeferred_) {
91 // See comment in BrowserWindowCocoa::Close() about orderOut:.
92 [[self window] orderOut:self];
91 [[self window] performClose:self]; // Autoreleases the controller. 93 [[self window] performClose:self]; // Autoreleases the controller.
94 }
92 } 95 }
93 96
94 - (void)showOverlay { 97 - (void)showOverlay {
95 [self setUseOverlay:YES]; 98 [self setUseOverlay:YES];
96 } 99 }
97 100
98 // if |useOverlay| is true, we're moving views into the overlay's content 101 // if |useOverlay| is true, we're moving views into the overlay's content
99 // area. If false, we're moving out of the overlay back into the window's 102 // area. If false, we're moving out of the overlay back into the window's
100 // content. 103 // content.
101 - (void)moveViewsBetweenWindowAndOverlay:(BOOL)useOverlay { 104 - (void)moveViewsBetweenWindowAndOverlay:(BOOL)useOverlay {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 closeDeferred_ = YES; 287 closeDeferred_ = YES;
285 } 288 }
286 289
287 // Called when the size of the window content area has changed. Override to 290 // Called when the size of the window content area has changed. Override to
288 // position specific views. Base class implementation does nothing. 291 // position specific views. Base class implementation does nothing.
289 - (void)layoutSubviews { 292 - (void)layoutSubviews {
290 NOTIMPLEMENTED(); 293 NOTIMPLEMENTED();
291 } 294 }
292 295
293 @end 296 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_utils.mm ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698