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 #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 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "third_party/skia/include/core/SkColor.h" |
9 #include "views/view.h" | 10 #include "views/view.h" |
10 | 11 |
11 namespace views { | 12 namespace views { |
12 class Label; | 13 class Label; |
13 class ProgressBar; | 14 class ProgressBar; |
14 class Throbber; | 15 class Throbber; |
15 } // namespace views | 16 } // namespace views |
16 | 17 |
17 namespace chromeos { | 18 namespace chromeos { |
18 | 19 |
(...skipping 24 matching lines...) Expand all Loading... |
43 | 44 |
44 // Whether curtain window with throbber and label in the center should | 45 // Whether curtain window with throbber and label in the center should |
45 // be shown. | 46 // be shown. |
46 void ShowCurtain(bool show_curtain); | 47 void ShowCurtain(bool show_curtain); |
47 | 48 |
48 // views::View implementation: | 49 // views::View implementation: |
49 virtual void Layout(); | 50 virtual void Layout(); |
50 | 51 |
51 private: | 52 private: |
52 // Creates Label control and adds it as a child. | 53 // Creates Label control and adds it as a child. |
53 void InitLabel(views::Label** label); | 54 views::Label* InitLabel(SkColor background_color); |
54 | 55 |
55 // Updates visibility of the elements. | 56 // Updates visibility of the elements. |
56 void UpdateVisibility(); | 57 void UpdateVisibility(); |
57 | 58 |
58 // Keyboard accelerator to allow cancelling update by hitting escape. | 59 // Keyboard accelerator to allow cancelling update by hitting escape. |
59 views::Accelerator escape_accelerator_; | 60 views::Accelerator escape_accelerator_; |
60 | 61 |
61 // Dialog controls. | 62 // Dialog controls. |
62 views::Label* installing_updates_label_; | 63 views::Label* installing_updates_label_; |
63 views::Label* preparing_updates_label_; | 64 views::Label* preparing_updates_label_; |
(...skipping 17 matching lines...) Expand all Loading... |
81 | 82 |
82 // Notifications receiver. | 83 // Notifications receiver. |
83 chromeos::ScreenObserver* observer_; | 84 chromeos::ScreenObserver* observer_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(UpdateView); | 86 DISALLOW_COPY_AND_ASSIGN(UpdateView); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace chromeos | 89 } // namespace chromeos |
89 | 90 |
90 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_ | 91 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_ |
OLD | NEW |