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

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

Issue 2807013: Update screen refactoring, exit on successful update. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: merge Created 10 years, 5 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
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_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_
7 7
8 #include "views/view.h" 8 #include "views/view.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 // Advances view's progress bar. Maximum progress is 100. 35 // Advances view's progress bar. Maximum progress is 100.
36 virtual void AddProgress(int progress); 36 virtual void AddProgress(int progress);
37 37
38 // views::View implementation: 38 // views::View implementation:
39 virtual void Layout(); 39 virtual void Layout();
40 virtual bool AcceleratorPressed(const views::Accelerator& a); 40 virtual bool AcceleratorPressed(const views::Accelerator& a);
41 41
42 private: 42 private:
43 // Creates Label control and adds it as a child.
44 void InitLabel(views::Label** label);
45
43 // Keyboard accelerator to allow cancelling update by hitting escape. 46 // Keyboard accelerator to allow cancelling update by hitting escape.
44 views::Accelerator escape_accelerator_; 47 views::Accelerator escape_accelerator_;
45 48
46 // Dialog controls. 49 // Dialog controls.
47 views::Label* installing_updates_label_; 50 views::Label* installing_updates_label_;
48 views::Label* escape_to_skip_label_; 51 views::Label* escape_to_skip_label_;
49 views::ProgressBar* progress_bar_; 52 views::ProgressBar* progress_bar_;
50 53
51 // Notifications receiver. 54 // Notifications receiver.
52 chromeos::ScreenObserver* observer_; 55 chromeos::ScreenObserver* observer_;
53 // Update controller. 56 // Update controller.
54 chromeos::UpdateController* controller_; 57 chromeos::UpdateController* controller_;
55 58
56 DISALLOW_COPY_AND_ASSIGN(UpdateView); 59 DISALLOW_COPY_AND_ASSIGN(UpdateView);
57 }; 60 };
58 61
59 } // namespace chromeos 62 } // namespace chromeos
60 63
61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_ 64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/update_screen.cc ('k') | chrome/browser/chromeos/login/update_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698