OLD | NEW |
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 "chrome/browser/app_modal_dialog.h" | 5 #include "chrome/browser/app_modal_dialog.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "app/l10n_util.h" | |
10 #include "app/message_box_flags.h" | |
11 #include "base/logging.h" | 9 #include "base/logging.h" |
12 #include "base/string_util.h" | 10 #include "base/string_util.h" |
13 #include "chrome/browser/browser_list.h" | 11 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/browser_window.h" | 12 #include "chrome/browser/browser_window.h" |
15 #include "chrome/browser/gtk/gtk_util.h" | 13 #include "chrome/browser/gtk/gtk_util.h" |
16 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
17 #include "chrome/browser/tab_contents/tab_contents_view.h" | 15 #include "chrome/browser/tab_contents/tab_contents_view.h" |
18 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
19 #include "grit/locale_settings.h" | 17 #include "grit/locale_settings.h" |
20 | 18 |
(...skipping 21 matching lines...) Expand all Loading... |
42 | 40 |
43 void AppModalDialog::AcceptWindow() { | 41 void AppModalDialog::AcceptWindow() { |
44 DCHECK(dialog_); | 42 DCHECK(dialog_); |
45 HandleDialogResponse(GTK_DIALOG(dialog_), GTK_RESPONSE_OK); | 43 HandleDialogResponse(GTK_DIALOG(dialog_), GTK_RESPONSE_OK); |
46 } | 44 } |
47 | 45 |
48 void AppModalDialog::CancelWindow() { | 46 void AppModalDialog::CancelWindow() { |
49 DCHECK(dialog_); | 47 DCHECK(dialog_); |
50 HandleDialogResponse(GTK_DIALOG(dialog_), GTK_RESPONSE_CANCEL); | 48 HandleDialogResponse(GTK_DIALOG(dialog_), GTK_RESPONSE_CANCEL); |
51 } | 49 } |
OLD | NEW |