| OLD | NEW |
| 1 // Copyright (c) 2010 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 "views/view.h" | 9 #include "views/view.h" |
| 10 | 10 |
| 11 namespace views { | 11 namespace views { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // Usually is not called since we rely on API that will reboot after update. | 44 // Usually is not called since we rely on API that will reboot after update. |
| 45 void ShowManualRebootInfo(); | 45 void ShowManualRebootInfo(); |
| 46 | 46 |
| 47 // Whether curtain window with throbber and label in the center should | 47 // Whether curtain window with throbber and label in the center should |
| 48 // be shown. | 48 // be shown. |
| 49 void ShowCurtain(bool show_curtain); | 49 void ShowCurtain(bool show_curtain); |
| 50 | 50 |
| 51 // views::View implementation: | 51 // views::View implementation: |
| 52 virtual void Layout(); | 52 virtual void Layout(); |
| 53 | 53 |
| 54 protected: | |
| 55 // views::View implementation: | |
| 56 virtual void ViewHierarchyChanged(bool is_add, | |
| 57 views::View* parent, | |
| 58 views::View* child); | |
| 59 | |
| 60 private: | 54 private: |
| 61 // Creates Label control and adds it as a child. | 55 // Creates Label control and adds it as a child. |
| 62 void InitLabel(views::Label** label); | 56 void InitLabel(views::Label** label); |
| 63 | 57 |
| 64 // Updates visibility of the elements. | 58 // Updates visibility of the elements. |
| 65 void UpdateVisibility(); | 59 void UpdateVisibility(); |
| 66 | 60 |
| 67 // Keyboard accelerator to allow cancelling update by hitting escape. | 61 // Keyboard accelerator to allow cancelling update by hitting escape. |
| 68 views::Accelerator escape_accelerator_; | 62 views::Accelerator escape_accelerator_; |
| 69 | 63 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 88 chromeos::ScreenObserver* observer_; | 82 chromeos::ScreenObserver* observer_; |
| 89 // Update controller. | 83 // Update controller. |
| 90 chromeos::UpdateController* controller_; | 84 chromeos::UpdateController* controller_; |
| 91 | 85 |
| 92 DISALLOW_COPY_AND_ASSIGN(UpdateView); | 86 DISALLOW_COPY_AND_ASSIGN(UpdateView); |
| 93 }; | 87 }; |
| 94 | 88 |
| 95 } // namespace chromeos | 89 } // namespace chromeos |
| 96 | 90 |
| 97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_ | 91 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_ |
| OLD | NEW |