OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_LOGIN_DISPLAY_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void StartWizard( | 47 virtual void StartWizard( |
48 const std::string& first_screen_name, | 48 const std::string& first_screen_name, |
49 DictionaryValue* screen_parameters) OVERRIDE; | 49 DictionaryValue* screen_parameters) OVERRIDE; |
50 virtual void StartSignInScreen() OVERRIDE; | 50 virtual void StartSignInScreen() OVERRIDE; |
51 virtual void ResumeSignInScreen() OVERRIDE; | 51 virtual void ResumeSignInScreen() OVERRIDE; |
52 virtual void CheckForAutoEnrollment() OVERRIDE; | 52 virtual void CheckForAutoEnrollment() OVERRIDE; |
53 | 53 |
54 // Creates specific WizardController. | 54 // Creates specific WizardController. |
55 virtual WizardController* CreateWizardController() = 0; | 55 virtual WizardController* CreateWizardController() = 0; |
56 | 56 |
| 57 // Called when the first browser window is created, but before it's |
| 58 // ready (shown). |
| 59 virtual void OnBrowserCreated() = 0; |
| 60 |
57 const gfx::Rect& background_bounds() const { return background_bounds_; } | 61 const gfx::Rect& background_bounds() const { return background_bounds_; } |
58 | 62 |
59 private: | 63 private: |
60 // content::NotificationObserver implementation: | 64 // content::NotificationObserver implementation: |
61 virtual void Observe(int type, | 65 virtual void Observe(int type, |
62 const content::NotificationSource& source, | 66 const content::NotificationSource& source, |
63 const content::NotificationDetails& details) OVERRIDE; | 67 const content::NotificationDetails& details) OVERRIDE; |
64 | 68 |
65 // Marks display host for deletion. | 69 // Marks display host for deletion. |
66 // If |post_quit_task| is true also posts Quit task to the MessageLoop. | 70 // If |post_quit_task| is true also posts Quit task to the MessageLoop. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 102 |
99 // Used to verify if the device has already been owned. | 103 // Used to verify if the device has already been owned. |
100 scoped_ptr<OwnershipStatusChecker> ownership_status_checker_; | 104 scoped_ptr<OwnershipStatusChecker> ownership_status_checker_; |
101 | 105 |
102 DISALLOW_COPY_AND_ASSIGN(BaseLoginDisplayHost); | 106 DISALLOW_COPY_AND_ASSIGN(BaseLoginDisplayHost); |
103 }; | 107 }; |
104 | 108 |
105 } // namespace chromeos | 109 } // namespace chromeos |
106 | 110 |
107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ | 111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BASE_LOGIN_DISPLAY_HOST_H_ |
OLD | NEW |