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