| 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/repost_form_warning_controller.h" | 5 #include "chrome/browser/repost_form_warning_controller.h" |
| 6 | 6 |
| 7 #if defined(TOOLKIT_GTK) | 7 #if defined(TOOLKIT_GTK) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #endif // defined(TOOLKIT_GTK) | 45 #endif // defined(TOOLKIT_GTK) |
| 46 | 46 |
| 47 void RepostFormWarningController::OnAccepted() { | 47 void RepostFormWarningController::OnAccepted() { |
| 48 web_contents()->GetController().ContinuePendingReload(); | 48 web_contents()->GetController().ContinuePendingReload(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void RepostFormWarningController::OnCanceled() { | 51 void RepostFormWarningController::OnCanceled() { |
| 52 web_contents()->GetController().CancelPendingReload(); | 52 web_contents()->GetController().CancelPendingReload(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void RepostFormWarningController::OnDismissed() { |
| 56 web_contents()->GetController().CancelPendingReload(); |
| 57 } |
| 58 |
| 55 void RepostFormWarningController::BeforeFormRepostWarningShow() { | 59 void RepostFormWarningController::BeforeFormRepostWarningShow() { |
| 56 // Close the dialog if we show an additional dialog, to avoid them | 60 // Close the dialog if we show an additional dialog, to avoid them |
| 57 // stacking up. | 61 // stacking up. |
| 58 Cancel(); | 62 Cancel(); |
| 59 } | 63 } |
| OLD | NEW |