blob: d974f38a83afda8f221be908a72d2bc26ca558ed (
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
|
// Copyright (c) 2010 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__
#pragma once
#include "views/view.h"
#include "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(
MessageBoxFlags::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_COPY_AND_ASSIGN(ImporterLockView);
};
#endif // CHROME_BROWSER_VIEWS_IMPORTER_LOCK_VIEW_H__
|