blob: e513bd4d7cf4e01268dd7fe315c65f742d51f62a (
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
38
39
40
41
42
43
44
45
46
|
// Copyright (c) 2006-2008 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_VIEWS_IMPORTER_LOCK_VIEW_H__
#define CHROME_BROWSER_VIEWS_IMPORTER_LOCK_VIEW_H__
#include "chrome/views/view.h"
#include "chrome/views/window/dialog_delegate.h"
namespace views {
class Label;
class Window;
}
class ImporterHost;
// ImporterLockView draws the dialog, and asks the user to shut Firefox
// down before starting the import.
class ImporterLockView : public views::View,
public views::DialogDelegate {
public:
explicit ImporterLockView(ImporterHost* host);
virtual ~ImporterLockView();
// Overridden from views::View.
virtual gfx::Size GetPreferredSize();
virtual void Layout();
// Overridden from views::DialogDelegate:
virtual std::wstring GetDialogButtonLabel(DialogButton button) const;
virtual bool IsModal() const;
virtual std::wstring GetWindowTitle() const;
virtual bool Accept();
virtual bool Cancel();
virtual views::View* GetContentsView();
private:
views::Label* description_label_;
ImporterHost* importer_host_;
DISALLOW_EVIL_CONSTRUCTORS(ImporterLockView);
};
#endif // CHROME_BROWSER_VIEWS_IMPORTER_LOCK_VIEW_H__
|