OLD | NEW |
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/gtk/instant_confirm_dialog_gtk.h" | 5 #include "chrome/browser/gtk/instant_confirm_dialog_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | 10 #include "chrome/browser/gtk/gtk_chrome_link_button.h" |
11 #include "chrome/browser/gtk/gtk_util.h" | 11 #include "chrome/browser/gtk/gtk_util.h" |
12 #include "chrome/browser/instant/instant_confirm_dialog.h" | 12 #include "chrome/browser/instant/instant_confirm_dialog.h" |
13 #include "chrome/browser/instant/instant_controller.h" | 13 #include "chrome/browser/instant/instant_controller.h" |
14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
15 #include "chrome/browser/show_options_url.h" | 15 #include "chrome/browser/ui/options/show_options_url.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "grit/chromium_strings.h" | 17 #include "grit/chromium_strings.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 | 19 |
20 namespace browser { | 20 namespace browser { |
21 | 21 |
22 void ShowInstantConfirmDialog(GtkWindow* parent, Profile* profile) { | 22 void ShowInstantConfirmDialog(GtkWindow* parent, Profile* profile) { |
23 new InstantConfirmDialogGtk(parent, profile); | 23 new InstantConfirmDialogGtk(parent, profile); |
24 } | 24 } |
25 | 25 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 int response) { | 68 int response) { |
69 if (response == GTK_RESPONSE_ACCEPT) | 69 if (response == GTK_RESPONSE_ACCEPT) |
70 InstantController::Enable(profile_); | 70 InstantController::Enable(profile_); |
71 | 71 |
72 delete this; | 72 delete this; |
73 } | 73 } |
74 | 74 |
75 void InstantConfirmDialogGtk::OnLinkButtonClicked(GtkWidget* button) { | 75 void InstantConfirmDialogGtk::OnLinkButtonClicked(GtkWidget* button) { |
76 browser::ShowOptionsURL(profile_, GURL(browser::kInstantLearnMoreURL)); | 76 browser::ShowOptionsURL(profile_, GURL(browser::kInstantLearnMoreURL)); |
77 } | 77 } |
OLD | NEW |