Chromium Code Reviews

Side by Side Diff: chrome/browser/chromeos/login/update_screen.h

Issue 5291010: [cros] Make sure that update screen will be skipped when shortcut is pressed. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/552d/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/update_screen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/timer.h" 9 #include "base/timer.h"
10 #include "chrome/browser/chromeos/cros/update_library.h" 10 #include "chrome/browser/chromeos/cros/update_library.h"
(...skipping 18 matching lines...)
29 virtual ~UpdateScreen(); 29 virtual ~UpdateScreen();
30 30
31 // UpdateLibrary::Observer implementation: 31 // UpdateLibrary::Observer implementation:
32 virtual void UpdateStatusChanged(UpdateLibrary* library); 32 virtual void UpdateStatusChanged(UpdateLibrary* library);
33 33
34 // Overridden from UpdateController: 34 // Overridden from UpdateController:
35 virtual void StartUpdate(); 35 virtual void StartUpdate();
36 virtual void CancelUpdate(); 36 virtual void CancelUpdate();
37 37
38 // Reports update results to the ScreenObserver. 38 // Reports update results to the ScreenObserver.
39 virtual void ExitUpdate(); 39 // |forced| should be set to true when calling this method and update status
40 // is not one of UPDATE_STATUS_IDLE, UPDATE_STATUS_ERROR,
41 // UPDATE_STATUS_REPORTING_ERROR_EVENT.
42 virtual void ExitUpdate(bool forced);
40 43
41 // Maximal curtain time get/set, in seconds. 44 // Maximal curtain time get/set, in seconds.
42 int maximal_curtain_time() const { return maximal_curtain_time_; } 45 int maximal_curtain_time() const { return maximal_curtain_time_; }
43 void SetMaximalCurtainTime(int seconds); 46 void SetMaximalCurtainTime(int seconds);
44 47
45 // Reboot check delay get/set, in seconds. 48 // Reboot check delay get/set, in seconds.
46 int reboot_check_delay() const { return reboot_check_delay_; } 49 int reboot_check_delay() const { return reboot_check_delay_; }
47 void SetRebootCheckDelay(int seconds); 50 void SetRebootCheckDelay(int seconds);
48 51
49 private: 52 private:
(...skipping 19 matching lines...)
69 // automatically. If reboot didn't happen during this interval, ask user to 72 // automatically. If reboot didn't happen during this interval, ask user to
70 // reboot device manually. 73 // reboot device manually.
71 int reboot_check_delay_; 74 int reboot_check_delay_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); 76 DISALLOW_COPY_AND_ASSIGN(UpdateScreen);
74 }; 77 };
75 78
76 } // namespace chromeos 79 } // namespace chromeos
77 80
78 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ 81 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/update_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine