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