OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_ |
| 7 |
| 8 #include "base/strings/string16.h" |
| 9 |
| 10 namespace chromeos { |
| 11 |
| 12 class UpdateModel; |
| 13 |
| 14 // Interface for dependency injection between NetworkScreen and its actual |
| 15 // representation. Owned by UpdateScreen. |
| 16 class UpdateView { |
| 17 public: |
| 18 virtual ~UpdateView() {} |
| 19 |
| 20 // Prepare the contents to showing. |
| 21 virtual void PrepareToShow() = 0; |
| 22 |
| 23 // Shows the contents of the screen. |
| 24 virtual void Show() = 0; |
| 25 |
| 26 // Hides the contents of the screen. |
| 27 virtual void Hide() = 0; |
| 28 |
| 29 // Binds |model| to the view. |
| 30 virtual void Bind(UpdateModel& model) = 0; |
| 31 |
| 32 // Unbinds model from the view. |
| 33 virtual void Unbind() = 0; |
| 34 }; |
| 35 |
| 36 } // namespace chromeos |
| 37 |
| 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_ |
OLD | NEW |