summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/import_lock_dialog_gtk.h
blob: e22e823b3969d50e0994ce6e859738431b863a26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// 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_IMPORT_LOCK_DIALOG_GTK_H_
#define CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_
#pragma once

#include <gtk/gtk.h>

#include "app/gtk_signal.h"
#include "base/basictypes.h"
#include "base/ref_counted.h"

class ImporterHost;

class ImportLockDialogGtk {
 public:
  // Displays the Firefox profile locked warning
  static void Show(GtkWindow* parent, ImporterHost* importer_host);

 private:
  ImportLockDialogGtk(GtkWindow* parent, ImporterHost* importer_host);
  ~ImportLockDialogGtk();

  CHROMEGTK_CALLBACK_1(ImportLockDialogGtk, void, OnDialogResponse, int);

  // Dialog box
  GtkWidget* dialog_;

  // Utility class that does the actual import.
  scoped_refptr<ImporterHost> importer_host_;

  DISALLOW_COPY_AND_ASSIGN(ImportLockDialogGtk);
};

#endif  // CHROME_BROWSER_GTK_IMPORT_LOCK_DIALOG_GTK_H_