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_INSTALLER_UTIL_HTML_DIALOG_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_HTML_DIALOG_H_ |
6 #define CHROME_INSTALLER_UTIL_HTML_DIALOG_H_ | 6 #define CHROME_INSTALLER_UTIL_HTML_DIALOG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 ACCEPTED_OPT_IN, // Accepted EULA and opt-in, from HTML_DLG_EXTRA (6). | 81 ACCEPTED_OPT_IN, // Accepted EULA and opt-in, from HTML_DLG_EXTRA (6). |
82 }; | 82 }; |
83 | 83 |
84 // Shows the dialog and blocks for user input. The return value is one of | 84 // Shows the dialog and blocks for user input. The return value is one of |
85 // the |Outcome| values and any form of failure maps to REJECTED. | 85 // the |Outcome| values and any form of failure maps to REJECTED. |
86 Outcome ShowModal(); | 86 Outcome ShowModal(); |
87 | 87 |
88 private: | 88 private: |
89 class Customizer : public HTMLDialog::CustomizationCallback { | 89 class Customizer : public HTMLDialog::CustomizationCallback { |
90 public: | 90 public: |
91 virtual void OnBeforeCreation(wchar_t** extra); | 91 void OnBeforeCreation(wchar_t** extra) override; |
92 virtual void OnBeforeDisplay(void* window); | 92 void OnBeforeDisplay(void* window) override; |
93 }; | 93 }; |
94 | 94 |
95 HTMLDialog* dialog_; | 95 HTMLDialog* dialog_; |
96 DISALLOW_COPY_AND_ASSIGN(EulaHTMLDialog); | 96 DISALLOW_COPY_AND_ASSIGN(EulaHTMLDialog); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace installer | 99 } // namespace installer |
100 | 100 |
101 #endif // CHROME_INSTALLER_UTIL_HTML_DIALOG_H_ | 101 #endif // CHROME_INSTALLER_UTIL_HTML_DIALOG_H_ |
OLD | NEW |