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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights Created 8 years, 6 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/extensions/extension_popup_controller.h" 5 #import "chrome/browser/ui/cocoa/extensions/extension_popup_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "chrome/browser/debugger/devtools_window.h" 9 #include "chrome/browser/debugger/devtools_window.h"
10 #include "chrome/browser/extensions/extension_host.h" 10 #include "chrome/browser/extensions/extension_host.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 [gPopup autorelease]; 247 [gPopup autorelease];
248 gPopup = nil; 248 gPopup = nil;
249 } 249 }
250 DCHECK(!gPopup); 250 DCHECK(!gPopup);
251 251
252 // Takes ownership of |host|. Also will autorelease itself when the popup is 252 // Takes ownership of |host|. Also will autorelease itself when the popup is
253 // closed, so no need to do that here. 253 // closed, so no need to do that here.
254 gPopup = [[ExtensionPopupController alloc] 254 gPopup = [[ExtensionPopupController alloc]
255 initWithHost:host 255 initWithHost:host
256 parentWindow:browser->window()->GetNativeHandle() 256 parentWindow:browser->window()->GetNativeWindow()
257 anchoredAt:anchoredAt 257 anchoredAt:anchoredAt
258 arrowLocation:arrowLocation 258 arrowLocation:arrowLocation
259 devMode:devMode]; 259 devMode:devMode];
260 return gPopup; 260 return gPopup;
261 } 261 }
262 262
263 + (ExtensionPopupController*)popup { 263 + (ExtensionPopupController*)popup {
264 return gPopup; 264 return gPopup;
265 } 265 }
266 266
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 return minSize; 369 return minSize;
370 } 370 }
371 371
372 // Private (TestingAPI) 372 // Private (TestingAPI)
373 + (NSSize)maxPopupSize { 373 + (NSSize)maxPopupSize {
374 NSSize maxSize = {ExtensionViewMac::kMaxWidth, ExtensionViewMac::kMaxHeight}; 374 NSSize maxSize = {ExtensionViewMac::kMaxWidth, ExtensionViewMac::kMaxHeight};
375 return maxSize; 375 return maxSize;
376 } 376 }
377 377
378 @end 378 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698