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

Side by Side Diff: chrome/browser/cocoa/browser_window_cocoa.mm

Issue 969003: Make repost form warning tab-modal on Mac. (Closed)
Patch Set: Remove an unnecessary line. Created 10 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/cocoa/repost_form_warning_mac.h » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/cocoa/browser_window_cocoa.h" 5 #include "chrome/browser/cocoa/browser_window_cocoa.h"
6 6
7 #include "app/l10n_util_mac.h" 7 #include "app/l10n_util_mac.h"
8 #include "base/gfx/rect.h" 8 #include "base/gfx/rect.h"
9 #include "base/keyboard_codes.h" 9 #include "base/keyboard_codes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 void BrowserWindowCocoa::ShowSelectProfileDialog() { 326 void BrowserWindowCocoa::ShowSelectProfileDialog() {
327 NOTIMPLEMENTED(); 327 NOTIMPLEMENTED();
328 } 328 }
329 329
330 void BrowserWindowCocoa::ShowNewProfileDialog() { 330 void BrowserWindowCocoa::ShowNewProfileDialog() {
331 NOTIMPLEMENTED(); 331 NOTIMPLEMENTED();
332 } 332 }
333 333
334 void BrowserWindowCocoa::ShowRepostFormWarningDialog( 334 void BrowserWindowCocoa::ShowRepostFormWarningDialog(
335 TabContents* tab_contents) { 335 TabContents* tab_contents) {
336 new RepostFormWarningMac(GetNativeHandle(), &tab_contents->controller()); 336 new RepostFormWarningMac(GetNativeHandle(), tab_contents);
337 } 337 }
338 338
339 void BrowserWindowCocoa::ShowContentSettingsWindow( 339 void BrowserWindowCocoa::ShowContentSettingsWindow(
340 ContentSettingsType settings_type, 340 ContentSettingsType settings_type,
341 Profile* profile) { 341 Profile* profile) {
342 [ContentSettingsDialogController showContentSettingsForType:settings_type 342 [ContentSettingsDialogController showContentSettingsForType:settings_type
343 profile:profile]; 343 profile:profile];
344 } 344 }
345 345
346 void BrowserWindowCocoa::ShowProfileErrorDialog(int message_id) { 346 void BrowserWindowCocoa::ShowProfileErrorDialog(int message_id) {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 void BrowserWindowCocoa::DestroyBrowser() { 558 void BrowserWindowCocoa::DestroyBrowser() {
559 [controller_ destroyBrowser]; 559 [controller_ destroyBrowser];
560 560
561 // at this point the controller is dead (autoreleased), so 561 // at this point the controller is dead (autoreleased), so
562 // make sure we don't try to reference it any more. 562 // make sure we don't try to reference it any more.
563 } 563 }
564 564
565 NSWindow* BrowserWindowCocoa::window() const { 565 NSWindow* BrowserWindowCocoa::window() const {
566 return [controller_ window]; 566 return [controller_ window];
567 } 567 }
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/cocoa/repost_form_warning_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698