| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/repost_form_warning_view.h" | 5 #include "chrome/browser/ui/views/repost_form_warning_view.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/repost_form_warning_controller.h" | 8 #include "chrome/browser/repost_form_warning_controller.h" |
| 9 #include "chrome/browser/ui/browser_list.h" | 9 #include "chrome/browser/ui/browser_list.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 12 #include "chrome/browser/ui/views/constrained_window_views.h" | 12 #include "chrome/browser/ui/views/constrained_window_views.h" |
| 13 #include "content/browser/tab_contents/navigation_controller.h" | 13 #include "content/browser/tab_contents/navigation_controller.h" |
| 14 #include "content/browser/tab_contents/tab_contents.h" | 14 #include "content/browser/tab_contents/tab_contents.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 #include "ui/base/message_box_flags.h" | 17 #include "ui/base/message_box_flags.h" |
| 18 #include "views/controls/message_box_view.h" | 18 #include "ui/views/controls/message_box_view.h" |
| 19 | 19 |
| 20 namespace browser { | 20 namespace browser { |
| 21 | 21 |
| 22 // Declared in browser_dialogs.h so others don't have to depend on our header. | 22 // Declared in browser_dialogs.h so others don't have to depend on our header. |
| 23 void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window, | 23 void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window, |
| 24 TabContents* tab_contents) { | 24 TabContents* tab_contents) { |
| 25 new RepostFormWarningView(parent_window, tab_contents); | 25 new RepostFormWarningView(parent_window, tab_contents); |
| 26 } | 26 } |
| 27 | 27 |
| 28 } // namespace browser | 28 } // namespace browser |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 controller_->Continue(); | 84 controller_->Continue(); |
| 85 return true; | 85 return true; |
| 86 } | 86 } |
| 87 | 87 |
| 88 /////////////////////////////////////////////////////////////////////////////// | 88 /////////////////////////////////////////////////////////////////////////////// |
| 89 // RepostFormWarningView, RepostFormWarning implementation: | 89 // RepostFormWarningView, RepostFormWarning implementation: |
| 90 | 90 |
| 91 void RepostFormWarningView::DeleteDelegate() { | 91 void RepostFormWarningView::DeleteDelegate() { |
| 92 delete this; | 92 delete this; |
| 93 } | 93 } |
| OLD | NEW |