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

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

Issue 7774009: [cros] check for updates in WebUI OOBE can be cancelled in dev builds. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed mock for UpdateScreenActor. Created 9 years, 3 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
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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698