summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/instant_confirm_view.h
blob: 958837ca19694ec350264f778debf45ce81eb6c5 (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
// 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_INSTANT_CONFIRM_VIEW_H_
#define CHROME_BROWSER_VIEWS_INSTANT_CONFIRM_VIEW_H_
#pragma once

#include "views/controls/label.h"
#include "views/controls/link.h"
#include "views/view.h"
#include "views/window/dialog_delegate.h"

class Profile;

// The view shown in the instant confirm dialog.
class InstantConfirmView : public views::View,
                           public views::DialogDelegate,
                           public views::LinkController {
 public:
  explicit InstantConfirmView(Profile* profile);

  // DialogDelegate overrides:
  virtual bool Accept(bool window_closing);
  virtual bool Accept();
  virtual bool Cancel();
  virtual views::View* GetContentsView();
  virtual std::wstring GetWindowTitle() const;
  virtual gfx::Size GetPreferredSize();
  virtual bool IsModal() const;

  // LinkController overrides:
  virtual void LinkActivated(views::Link* source, int event_flags);

 private:
  Profile* profile_;

  DISALLOW_COPY_AND_ASSIGN(InstantConfirmView);
};

#endif  // CHROME_BROWSER_VIEWS_INSTANT_CONFIRM_VIEW_H_