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

Side by Side Diff: chrome/browser/ui/cocoa/info_bubble_window.mm

Issue 1401613005: Mac: Remove the workaround to prevent "Share" dialogs disappearing the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/info_bubble_window.h" 5 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
6 6
7 #include <Carbon/Carbon.h> 7 #include <Carbon/Carbon.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // window. 240 // window.
241 - (void)sendEvent:(NSEvent*)theEvent { 241 - (void)sendEvent:(NSEvent*)theEvent {
242 if (!closing_) 242 if (!closing_)
243 [super sendEvent:theEvent]; 243 [super sendEvent:theEvent];
244 } 244 }
245 245
246 - (BOOL)isClosing { 246 - (BOOL)isClosing {
247 return closing_; 247 return closing_;
248 } 248 }
249 249
250 // Override -[NSWindow addChildWindow] to prevent ShareKit bugs propagating
251 // to the browser window. See http://crbug.com/475855.
252 - (void)addChildWindow:(NSWindow*)childWindow
253 ordered:(NSWindowOrderingMode)orderingMode {
254 [[self parentWindow] removeChildWindow:self];
255 [super addChildWindow:childWindow ordered:orderingMode];
256 }
257
258 @end 250 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698