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

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

Issue 8436002: [cros] Remove Views implementation for login/OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/login/views_update_screen_actor.h"
6
7 namespace {
8
9 // Considering 10px shadow from each side.
10 const int kUpdateScreenWidth = 580;
11 const int kUpdateScreenHeight = 305;
12
13 } // namespace
14
15 namespace chromeos {
16
17 ViewsUpdateScreenActor::ViewsUpdateScreenActor(ViewScreenDelegate* delegate)
18 : DefaultViewScreen<chromeos::UpdateView>(delegate,
19 kUpdateScreenWidth,
20 kUpdateScreenHeight),
21 screen_(NULL) {
22 }
23
24 ViewsUpdateScreenActor::~ViewsUpdateScreenActor() {
25 if (screen_)
26 screen_->OnActorDestroyed(this);
27 }
28
29 void ViewsUpdateScreenActor::SetDelegate(UpdateScreenActor::Delegate* screen) {
30 screen_ = screen;
31 }
32
33 void ViewsUpdateScreenActor::PrepareToShow() {
34 DefaultViewScreen<chromeos::UpdateView>::PrepareToShow();
35 }
36
37 void ViewsUpdateScreenActor::Show() {
38 DefaultViewScreen<chromeos::UpdateView>::Show();
39 }
40
41 void ViewsUpdateScreenActor::Hide() {
42 DefaultViewScreen<chromeos::UpdateView>::Hide();
43 }
44
45 void ViewsUpdateScreenActor::ShowManualRebootInfo() {
46 view()->ShowManualRebootInfo();
47 }
48
49 void ViewsUpdateScreenActor::SetProgress(int progress) {
50 view()->SetProgress(progress);
51 }
52
53 void ViewsUpdateScreenActor::ShowCurtain(bool enable) {
54 view()->ShowCurtain(enable);
55 }
56
57 void ViewsUpdateScreenActor::ShowPreparingUpdatesInfo(bool visible) {
58 view()->ShowPreparingUpdatesInfo(visible);
59 }
60
61 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698