| 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 #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 kUpdateScreenHeight) { | 20 kUpdateScreenHeight) { |
| 21 } | 21 } |
| 22 | 22 |
| 23 void ViewsUpdateScreenActor::SetDelegate(UpdateScreenActor::Delegate* screen) { |
| 24 } |
| 25 |
| 23 void ViewsUpdateScreenActor::PrepareToShow() { | 26 void ViewsUpdateScreenActor::PrepareToShow() { |
| 24 DefaultViewScreen<chromeos::UpdateView>::PrepareToShow(); | 27 DefaultViewScreen<chromeos::UpdateView>::PrepareToShow(); |
| 25 } | 28 } |
| 26 | 29 |
| 27 void ViewsUpdateScreenActor::Show() { | 30 void ViewsUpdateScreenActor::Show() { |
| 28 DefaultViewScreen<chromeos::UpdateView>::Show(); | 31 DefaultViewScreen<chromeos::UpdateView>::Show(); |
| 29 } | 32 } |
| 30 | 33 |
| 31 void ViewsUpdateScreenActor::Hide() { | 34 void ViewsUpdateScreenActor::Hide() { |
| 32 DefaultViewScreen<chromeos::UpdateView>::Hide(); | 35 DefaultViewScreen<chromeos::UpdateView>::Hide(); |
| 33 } | 36 } |
| 34 | 37 |
| 35 void ViewsUpdateScreenActor::ShowManualRebootInfo() { | 38 void ViewsUpdateScreenActor::ShowManualRebootInfo() { |
| 36 view()->ShowManualRebootInfo(); | 39 view()->ShowManualRebootInfo(); |
| 37 } | 40 } |
| 38 | 41 |
| 39 void ViewsUpdateScreenActor::SetProgress(int progress) { | 42 void ViewsUpdateScreenActor::SetProgress(int progress) { |
| 40 view()->SetProgress(progress); | 43 view()->SetProgress(progress); |
| 41 } | 44 } |
| 42 | 45 |
| 43 void ViewsUpdateScreenActor::ShowCurtain(bool enable) { | 46 void ViewsUpdateScreenActor::ShowCurtain(bool enable) { |
| 44 view()->ShowCurtain(enable); | 47 view()->ShowCurtain(enable); |
| 45 } | 48 } |
| 46 | 49 |
| 47 void ViewsUpdateScreenActor::ShowPreparingUpdatesInfo(bool visible) { | 50 void ViewsUpdateScreenActor::ShowPreparingUpdatesInfo(bool visible) { |
| 48 view()->ShowPreparingUpdatesInfo(visible); | 51 view()->ShowPreparingUpdatesInfo(visible); |
| 49 } | 52 } |
| 50 | 53 |
| 51 } // namespace chromeos | 54 } // namespace chromeos |
| OLD | NEW |