diff options
author | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 17:32:20 +0000 |
---|---|---|
committer | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 17:32:20 +0000 |
commit | 44b78f90aa7fb40d6694045f4da76c502dea2272 (patch) | |
tree | 8b2d947065d5b00f5b12a61407134438b7a0446d /chrome/browser/gtk/sync_setup_wizard_gtk.h | |
parent | 08b8f440a84673f70cdfbd52d3918c4a31d3ba90 (diff) | |
download | chromium_src-44b78f90aa7fb40d6694045f4da76c502dea2272.zip chromium_src-44b78f90aa7fb40d6694045f4da76c502dea2272.tar.gz chromium_src-44b78f90aa7fb40d6694045f4da76c502dea2272.tar.bz2 |
Fix pieces of syncapi that aren't implemented on Linux.
Review URL: http://codereview.chromium.org/242141
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/sync_setup_wizard_gtk.h')
-rw-r--r-- | chrome/browser/gtk/sync_setup_wizard_gtk.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/chrome/browser/gtk/sync_setup_wizard_gtk.h b/chrome/browser/gtk/sync_setup_wizard_gtk.h new file mode 100644 index 0000000..2d76046 --- /dev/null +++ b/chrome/browser/gtk/sync_setup_wizard_gtk.h @@ -0,0 +1,51 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_GTK_SYNC_SETUP_WIZARD_GTK_H_ +#define CHROME_BROWSER_GTK_SYNC_SETUP_WIZARD_GTK_H_ + +#include <gtk/gtk.h> + +#include "base/basictypes.h" +#include "base/string16.h" +#include "googleurl/src/gurl.h" + +typedef struct _GtkWidget GtkWidget; +typedef struct _GtkWindow GtkWindow; + +class ProfileSyncService; + +class SyncSetupWizard; + +class SyncSetupWizardGtk { + public: + // Displays the dialog box to setup sync. + static void Show(ProfileSyncService* service, + SyncSetupWizard *wizard); + + private: + SyncSetupWizardGtk(GtkWindow* parent, ProfileSyncService* service, + SyncSetupWizard *wizard); + ~SyncSetupWizardGtk() { } + + // Handler to respond to Ok and Cancel responses from the dialog. + static void HandleOnResponseDialog(GtkWidget* widget, + int response, SyncSetupWizardGtk* setup_wizard) { + setup_wizard->OnDialogResponse(widget, response); + } + + void OnDialogResponse(GtkWidget* widget, int response); + + // UI elements. + GtkWidget* username_textbox_; + GtkWidget* password_textbox_; + + // We need this to write the sentinel "setup completed" pref. + ProfileSyncService* service_; + SyncSetupWizard* wizard_; + + DISALLOW_COPY_AND_ASSIGN(SyncSetupWizardGtk); +}; + +#endif // CHROME_BROWSER_GTK_SYNC_SETUP_WIZARD_GTK_H_ |