Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: chrome/browser/chromeos/login/views_update_screen_actor.cc

Issue 7057055: Show progress bar as soon as update state changed to UPDATE_STATUS_UPDATE_AVAILABLE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed test again Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/views_update_screen_actor.h ('k') | no next file » | 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) 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 #include "chrome/browser/chromeos/login/views_update_screen_actor.h" 5 #include "chrome/browser/chromeos/login/views_update_screen_actor.h"
6 6
7 namespace { 7 namespace {
8 8
9 // Considering 10px shadow from each side. 9 // Considering 10px shadow from each side.
10 const int kUpdateScreenWidth = 580; 10 const int kUpdateScreenWidth = 580;
11 const int kUpdateScreenHeight = 305; 11 const int kUpdateScreenHeight = 305;
12 12
13 } // namespace 13 } // namespace
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 ViewsUpdateScreenActor::ViewsUpdateScreenActor(ViewScreenDelegate* delegate) 17 ViewsUpdateScreenActor::ViewsUpdateScreenActor(ViewScreenDelegate* delegate)
18 : DefaultViewScreen<chromeos::UpdateView>(delegate, 18 : DefaultViewScreen<chromeos::UpdateView>(delegate,
19 kUpdateScreenWidth, 19 kUpdateScreenWidth,
20 kUpdateScreenWidth) { 20 kUpdateScreenHeight) {
21 } 21 }
22 22
23 void ViewsUpdateScreenActor::PrepareToShow() { 23 void ViewsUpdateScreenActor::PrepareToShow() {
24 DefaultViewScreen<chromeos::UpdateView>::PrepareToShow(); 24 DefaultViewScreen<chromeos::UpdateView>::PrepareToShow();
25 } 25 }
26 26
27 void ViewsUpdateScreenActor::Show() { 27 void ViewsUpdateScreenActor::Show() {
28 DefaultViewScreen<chromeos::UpdateView>::Show(); 28 DefaultViewScreen<chromeos::UpdateView>::Show();
29 } 29 }
30 30
31 void ViewsUpdateScreenActor::Hide() { 31 void ViewsUpdateScreenActor::Hide() {
32 DefaultViewScreen<chromeos::UpdateView>::Hide(); 32 DefaultViewScreen<chromeos::UpdateView>::Hide();
33 } 33 }
34 34
35 void ViewsUpdateScreenActor::ShowManualRebootInfo() { 35 void ViewsUpdateScreenActor::ShowManualRebootInfo() {
36 view()->ShowManualRebootInfo(); 36 view()->ShowManualRebootInfo();
37 } 37 }
38 38
39 void ViewsUpdateScreenActor::SetProgress(int progress) { 39 void ViewsUpdateScreenActor::SetProgress(int progress) {
40 view()->SetProgress(progress); 40 view()->SetProgress(progress);
41 } 41 }
42 42
43 void ViewsUpdateScreenActor::ShowCurtain(bool enable) { 43 void ViewsUpdateScreenActor::ShowCurtain(bool enable) {
44 view()->ShowCurtain(enable); 44 view()->ShowCurtain(enable);
45 } 45 }
46 46
47 void ViewsUpdateScreenActor::ShowPreparingUpdatesInfo(bool visible) {
48 view()->ShowPreparingUpdatesInfo(visible);
49 }
50
47 } // namespace chromeos 51 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/views_update_screen_actor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698