| 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_UPDATE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual ~UpdateScreen(); | 31 virtual ~UpdateScreen(); |
| 32 | 32 |
| 33 // Overridden from WizardScreen. | 33 // Overridden from WizardScreen. |
| 34 virtual void PrepareToShow() OVERRIDE; | 34 virtual void PrepareToShow() OVERRIDE; |
| 35 virtual void Show() OVERRIDE; | 35 virtual void Show() OVERRIDE; |
| 36 virtual void Hide() OVERRIDE; | 36 virtual void Hide() OVERRIDE; |
| 37 | 37 |
| 38 // UpdateScreenActor::Delegate implementation: | 38 // UpdateScreenActor::Delegate implementation: |
| 39 virtual void CancelUpdate() OVERRIDE; | 39 virtual void CancelUpdate() OVERRIDE; |
| 40 virtual void OnActorDestroyed(UpdateScreenActor* actor) OVERRIDE; | 40 virtual void OnActorDestroyed(UpdateScreenActor* actor) OVERRIDE; |
| 41 virtual void SkipUpdateEnrollAfterEula() OVERRIDE; |
| 41 | 42 |
| 42 // Checks for updates and performs an update if needed. Made virtual to | 43 // Checks for updates and performs an update if needed. Made virtual to |
| 43 // simplify mocking. | 44 // simplify mocking. |
| 44 virtual void StartUpdate(); | 45 virtual void StartUpdate(); |
| 45 | 46 |
| 46 // Reboot check delay get/set, in seconds. | 47 // Reboot check delay get/set, in seconds. |
| 47 int reboot_check_delay() const { return reboot_check_delay_; } | 48 int reboot_check_delay() const { return reboot_check_delay_; } |
| 48 void SetRebootCheckDelay(int seconds); | 49 void SetRebootCheckDelay(int seconds); |
| 49 | 50 |
| 50 // Returns true if this instance is still active (i.e. has not been deleted). | 51 // Returns true if this instance is still active (i.e. has not been deleted). |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 107 |
| 107 // Keeps actor which is delegated with all showing operations. | 108 // Keeps actor which is delegated with all showing operations. |
| 108 UpdateScreenActor* actor_; | 109 UpdateScreenActor* actor_; |
| 109 | 110 |
| 110 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); | 111 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 } // namespace chromeos | 114 } // namespace chromeos |
| 114 | 115 |
| 115 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ | 116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ |
| OLD | NEW |