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

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

Issue 327009: [Mac] Implement form resubmission warning dialog (Closed)
Patch Set: rebase tot Created 11 years, 1 month 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "base/gfx/rect.h" 5 #include "base/gfx/rect.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/sys_string_conversions.h" 7 #include "base/sys_string_conversions.h"
8 #include "chrome/app/chrome_dll_resource.h" 8 #include "chrome/app/chrome_dll_resource.h"
9 #include "chrome/browser/bookmarks/bookmark_utils.h" 9 #include "chrome/browser/bookmarks/bookmark_utils.h"
10 #include "chrome/browser/cocoa/browser_window_cocoa.h" 10 #include "chrome/browser/cocoa/browser_window_cocoa.h"
11 #import "chrome/browser/cocoa/browser_window_controller.h" 11 #import "chrome/browser/cocoa/browser_window_controller.h"
12 #import "chrome/browser/cocoa/clear_browsing_data_controller.h" 12 #import "chrome/browser/cocoa/clear_browsing_data_controller.h"
13 #import "chrome/browser/cocoa/download_shelf_controller.h" 13 #import "chrome/browser/cocoa/download_shelf_controller.h"
14 #import "chrome/browser/cocoa/keyword_editor_cocoa_controller.h" 14 #import "chrome/browser/cocoa/keyword_editor_cocoa_controller.h"
15 #import "chrome/browser/cocoa/nsmenuitem_additions.h" 15 #import "chrome/browser/cocoa/nsmenuitem_additions.h"
16 #include "chrome/browser/cocoa/page_info_window_mac.h" 16 #include "chrome/browser/cocoa/page_info_window_mac.h"
17 #include "chrome/browser/cocoa/repost_form_warning_mac.h"
17 #include "chrome/browser/cocoa/status_bubble_mac.h" 18 #include "chrome/browser/cocoa/status_bubble_mac.h"
18 #include "chrome/browser/cocoa/task_manager_mac.h" 19 #include "chrome/browser/cocoa/task_manager_mac.h"
19 #import "chrome/browser/cocoa/theme_install_bubble_view.h" 20 #import "chrome/browser/cocoa/theme_install_bubble_view.h"
20 #include "chrome/browser/browser.h" 21 #include "chrome/browser/browser.h"
21 #include "chrome/browser/download/download_shelf.h" 22 #include "chrome/browser/download/download_shelf.h"
22 #include "chrome/browser/global_keyboard_shortcuts_mac.h" 23 #include "chrome/browser/global_keyboard_shortcuts_mac.h"
23 #include "chrome/common/notification_service.h" 24 #include "chrome/common/notification_service.h"
24 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
25 #include "chrome/common/pref_service.h" 26 #include "chrome/common/pref_service.h"
26 #include "chrome/common/temp_scaffolding_stubs.h" 27 #include "chrome/common/temp_scaffolding_stubs.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 void BrowserWindowCocoa::ShowSelectProfileDialog() { 270 void BrowserWindowCocoa::ShowSelectProfileDialog() {
270 NOTIMPLEMENTED(); 271 NOTIMPLEMENTED();
271 } 272 }
272 273
273 void BrowserWindowCocoa::ShowNewProfileDialog() { 274 void BrowserWindowCocoa::ShowNewProfileDialog() {
274 NOTIMPLEMENTED(); 275 NOTIMPLEMENTED();
275 } 276 }
276 277
277 void BrowserWindowCocoa::ShowRepostFormWarningDialog( 278 void BrowserWindowCocoa::ShowRepostFormWarningDialog(
278 TabContents* tab_contents) { 279 TabContents* tab_contents) {
279 NOTIMPLEMENTED(); 280 new RepostFormWarningMac(GetNativeHandle(), &tab_contents->controller());
280 } 281 }
281 282
282 void BrowserWindowCocoa::ShowHistoryTooNewDialog() { 283 void BrowserWindowCocoa::ShowHistoryTooNewDialog() {
283 NOTIMPLEMENTED(); 284 NOTIMPLEMENTED();
284 } 285 }
285 286
286 void BrowserWindowCocoa::ShowThemeInstallBubble() { 287 void BrowserWindowCocoa::ShowThemeInstallBubble() {
287 ThemeInstallBubbleView::Show(window_); 288 ThemeInstallBubbleView::Show(window_);
288 } 289 }
289 290
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 break; 407 break;
407 } 408 }
408 } 409 }
409 410
410 void BrowserWindowCocoa::DestroyBrowser() { 411 void BrowserWindowCocoa::DestroyBrowser() {
411 [controller_ destroyBrowser]; 412 [controller_ destroyBrowser];
412 413
413 // at this point the controller is dead (autoreleased), so 414 // at this point the controller is dead (autoreleased), so
414 // make sure we don't try to reference it any more. 415 // make sure we don't try to reference it any more.
415 } 416 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/repost_form_warning_mac.h » ('j') | chrome/browser/cocoa/repost_form_warning_mac.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698