| OLD | NEW |
| 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_GTK_INSTANT_CONFIRM_DIALOG_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_INSTANT_CONFIRM_DIALOG_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_INSTANT_CONFIRM_DIALOG_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_INSTANT_CONFIRM_DIALOG_GTK_H_ |
| 7 #pragma once |
| 7 | 8 |
| 8 #include "app/gtk_signal.h" | 9 #include "app/gtk_signal.h" |
| 9 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 10 | 11 |
| 11 class Profile; | 12 class Profile; |
| 12 typedef struct _GtkWindow GtkWindow; | 13 typedef struct _GtkWindow GtkWindow; |
| 13 | 14 |
| 14 // A dialog that explains some of the privacy implications surrounding instant. | 15 // A dialog that explains some of the privacy implications surrounding instant. |
| 15 // Shown when the user enables instant for the first time. | 16 // Shown when the user enables instant for the first time. |
| 16 class InstantConfirmDialogGtk { | 17 class InstantConfirmDialogGtk { |
| 17 public: | 18 public: |
| 18 InstantConfirmDialogGtk(GtkWindow* parent, Profile* profile); | 19 InstantConfirmDialogGtk(GtkWindow* parent, Profile* profile); |
| 19 ~InstantConfirmDialogGtk(); | 20 ~InstantConfirmDialogGtk(); |
| 20 | 21 |
| 21 private: | 22 private: |
| 22 CHROMEGTK_CALLBACK_1(InstantConfirmDialogGtk, void, OnDialogResponse, int); | 23 CHROMEGTK_CALLBACK_1(InstantConfirmDialogGtk, void, OnDialogResponse, int); |
| 23 CHROMEGTK_CALLBACK_0(InstantConfirmDialogGtk, void, OnLinkButtonClicked); | 24 CHROMEGTK_CALLBACK_0(InstantConfirmDialogGtk, void, OnLinkButtonClicked); |
| 24 | 25 |
| 25 GtkWidget* dialog_; | 26 GtkWidget* dialog_; |
| 26 Profile* profile_; | 27 Profile* profile_; |
| 27 | 28 |
| 28 DISALLOW_COPY_AND_ASSIGN(InstantConfirmDialogGtk); | 29 DISALLOW_COPY_AND_ASSIGN(InstantConfirmDialogGtk); |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 #endif // CHROME_BROWSER_GTK_INSTANT_CONFIRM_DIALOG_GTK_H_ | 32 #endif // CHROME_BROWSER_UI_GTK_INSTANT_CONFIRM_DIALOG_GTK_H_ |
| OLD | NEW |