OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DOWNLOAD_DOWNLOAD_FEEDBACK_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_FEEDBACK_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_FEEDBACK_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_FEEDBACK_DIALOG_VIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 DownloadFeedbackDialogView( | 41 DownloadFeedbackDialogView( |
42 Profile* profile, | 42 Profile* profile, |
43 content::PageNavigator* navigator, | 43 content::PageNavigator* navigator, |
44 const UserDecisionCallback& callback); | 44 const UserDecisionCallback& callback); |
45 virtual ~DownloadFeedbackDialogView(); | 45 virtual ~DownloadFeedbackDialogView(); |
46 | 46 |
47 // Handles the user's decision. | 47 // Handles the user's decision. |
48 bool OnButtonClicked(bool accepted); | 48 bool OnButtonClicked(bool accepted); |
49 | 49 |
50 // views::DialogDelegate: | 50 // views::DialogDelegate: |
51 virtual ui::ModalType GetModalType() const OVERRIDE; | 51 virtual ui::ModalType GetModalType() const override; |
52 virtual base::string16 GetWindowTitle() const OVERRIDE; | 52 virtual base::string16 GetWindowTitle() const override; |
53 virtual void DeleteDelegate() OVERRIDE; | 53 virtual void DeleteDelegate() override; |
54 virtual views::Widget* GetWidget() OVERRIDE; | 54 virtual views::Widget* GetWidget() override; |
55 virtual const views::Widget* GetWidget() const OVERRIDE; | 55 virtual const views::Widget* GetWidget() const override; |
56 virtual views::View* GetContentsView() OVERRIDE; | 56 virtual views::View* GetContentsView() override; |
57 virtual int GetDefaultDialogButton() const OVERRIDE; | 57 virtual int GetDefaultDialogButton() const override; |
58 virtual base::string16 GetDialogButtonLabel( | 58 virtual base::string16 GetDialogButtonLabel( |
59 ui::DialogButton button) const OVERRIDE; | 59 ui::DialogButton button) const override; |
60 virtual bool Cancel() OVERRIDE; | 60 virtual bool Cancel() override; |
61 virtual bool Accept() OVERRIDE; | 61 virtual bool Accept() override; |
62 virtual views::View* CreateExtraView() OVERRIDE; | 62 virtual views::View* CreateExtraView() override; |
63 | 63 |
64 // views::LinkListener: | 64 // views::LinkListener: |
65 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 65 virtual void LinkClicked(views::Link* source, int event_flags) override; |
66 | 66 |
67 Profile* profile_; | 67 Profile* profile_; |
68 content::PageNavigator* navigator_; | 68 content::PageNavigator* navigator_; |
69 const UserDecisionCallback callback_; | 69 const UserDecisionCallback callback_; |
70 views::MessageBoxView* explanation_box_view_; | 70 views::MessageBoxView* explanation_box_view_; |
71 views::Link* link_view_; | 71 views::Link* link_view_; |
72 base::string16 title_text_; | 72 base::string16 title_text_; |
73 base::string16 ok_button_text_; | 73 base::string16 ok_button_text_; |
74 base::string16 cancel_button_text_; | 74 base::string16 cancel_button_text_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(DownloadFeedbackDialogView); | 76 DISALLOW_COPY_AND_ASSIGN(DownloadFeedbackDialogView); |
77 }; | 77 }; |
78 | 78 |
79 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_FEEDBACK_DIALOG_VIEW_H_ | 79 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_FEEDBACK_DIALOG_VIEW_H_ |
OLD | NEW |