Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_GTK_ONE_CLICK_SIGNIN_DIALOG_GTK_H_ | |
| 6 #define CHROME_BROWSER_UI_GTK_ONE_CLICK_SIGNIN_DIALOG_GTK_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/browser/ui/sync/one_click_signin_dialog.h" | |
|
tfarina
2012/03/30 21:45:17
nit: hum? this should be sorted with the other inc
| |
| 10 | |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/callback.h" | |
|
tfarina
2012/03/30 21:45:17
nit: can't you forward declare this because of |ac
| |
| 13 #include "ui/base/gtk/gtk_signal.h" | |
| 14 | |
| 15 typedef struct _GtkWidget GtkWidget; | |
| 16 typedef struct _GtkWindow GtkWindow; | |
| 17 | |
| 18 // Displays the one-click signin confirmation dialog (as a | |
| 19 // window-modal dialog) and starts one-click signin if the user | |
| 20 // accepts. | |
| 21 class OneClickSigninDialogGtk { | |
| 22 public: | |
| 23 // Deletes self on close. The given callback will be called if the | |
| 24 // user confirms the dialog. | |
| 25 OneClickSigninDialogGtk(GtkWindow* parent_window, | |
| 26 const OneClickAcceptCallback& accept_callback); | |
| 27 | |
| 28 void SendResponseForTest(int response_id); | |
| 29 void SetUseDefaultSettingsForTest(bool use_default_settings); | |
| 30 | |
| 31 private: | |
| 32 ~OneClickSigninDialogGtk(); | |
| 33 | |
| 34 CHROMEGTK_CALLBACK_1(OneClickSigninDialogGtk, void, OnResponse, int); | |
| 35 | |
| 36 GtkWidget* dialog_; | |
| 37 GtkWidget* use_default_settings_checkbox_; | |
| 38 const OneClickAcceptCallback accept_callback_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(OneClickSigninDialogGtk); | |
| 41 }; | |
| 42 | |
| 43 #endif // CHROME_BROWSER_UI_GTK_ONE_CLICK_SIGNIN_DIALOG_GTK_H_ | |
| OLD | NEW |