Home | History | Annotate | Download | only in views
      1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_UI_VIEWS_INSTANT_CONFIRM_VIEW_H_
      6 #define CHROME_BROWSER_UI_VIEWS_INSTANT_CONFIRM_VIEW_H_
      7 #pragma once
      8 
      9 #include "views/controls/label.h"
     10 #include "views/controls/link.h"
     11 #include "views/view.h"
     12 #include "views/window/dialog_delegate.h"
     13 
     14 class Profile;
     15 
     16 // The view shown in the instant confirm dialog.
     17 class InstantConfirmView : public views::View,
     18                            public views::DialogDelegate,
     19                            public views::LinkController {
     20  public:
     21   explicit InstantConfirmView(Profile* profile);
     22 
     23   // DialogDelegate overrides:
     24   virtual bool Accept(bool window_closing);
     25   virtual bool Accept();
     26   virtual bool Cancel();
     27   virtual views::View* GetContentsView();
     28   virtual std::wstring GetWindowTitle() const;
     29   virtual gfx::Size GetPreferredSize();
     30   virtual bool IsModal() const;
     31 
     32   // LinkController overrides:
     33   virtual void LinkActivated(views::Link* source, int event_flags);
     34 
     35  private:
     36   Profile* profile_;
     37 
     38   DISALLOW_COPY_AND_ASSIGN(InstantConfirmView);
     39 };
     40 
     41 #endif  // CHROME_BROWSER_UI_VIEWS_INSTANT_CONFIRM_VIEW_H_
     42