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_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 // Launches html dialog during OOBE/Login with specified URL and title. | 22 // Launches html dialog during OOBE/Login with specified URL and title. |
23 class LoginHtmlDialog : public HtmlDialogUIDelegate, | 23 class LoginHtmlDialog : public HtmlDialogUIDelegate, |
24 public content::NotificationObserver { | 24 public content::NotificationObserver { |
25 public: | 25 public: |
26 // Delegate class to get notifications from the dialog. | 26 // Delegate class to get notifications from the dialog. |
27 class Delegate { | 27 class Delegate { |
28 public: | 28 public: |
29 virtual ~Delegate() {} | 29 virtual ~Delegate() {} |
30 | 30 |
31 // Called when dialog has been closed. | 31 // Called when dialog has been closed. |
32 virtual void OnDialogClosed() = 0; | 32 virtual void OnDialogClosed(); |
33 }; | 33 }; |
34 | 34 |
35 enum Style { | 35 enum Style { |
36 STYLE_GENERIC, // Use generic CreateChromeWindow as a host. | 36 STYLE_GENERIC, // Use generic CreateChromeWindow as a host. |
37 STYLE_BUBBLE // Use chromeos::BubbleWindow as a host. | 37 STYLE_BUBBLE // Use chromeos::BubbleWindow as a host. |
38 }; | 38 }; |
39 | 39 |
40 LoginHtmlDialog(Delegate* delegate, | 40 LoginHtmlDialog(Delegate* delegate, |
41 gfx::NativeWindow parent_window, | 41 gfx::NativeWindow parent_window, |
42 const std::wstring& title, | 42 const std::wstring& title, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Dialog display size. | 89 // Dialog display size. |
90 int width_; | 90 int width_; |
91 int height_; | 91 int height_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); | 93 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace chromeos | 96 } // namespace chromeos |
97 | 97 |
98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
OLD | NEW |