blob: 90701841fe3ad9683a0456d4757e7f9e38c8a9c3 (
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
47
48
49
|
// 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/dialog_delegate.h"
#include "chrome/views/view.h"
namespace ChromeViews {
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 ChromeViews::View,
public ChromeViews::DialogDelegate {
public:
explicit ImporterLockView(ImporterHost* host);
virtual ~ImporterLockView();
// Overridden from ChromeViews::View.
virtual gfx::Size GetPreferredSize();
virtual void Layout();
// Overridden from ChromeViews::DialogDelegate:
virtual std::wstring GetDialogButtonLabel(DialogButton button) const;
virtual bool IsModal() const;
virtual std::wstring GetWindowTitle() const;
virtual bool Accept();
virtual bool Cancel();
virtual ChromeViews::View* GetContentsView();
private:
ChromeViews::Label* description_label_;
ImporterHost* importer_host_;
DISALLOW_EVIL_CONSTRUCTORS(ImporterLockView);
};
#endif // CHROME_BROWSER_VIEWS_IMPORTER_LOCK_VIEW_H__
|