| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_SCREENS_BASE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // id. | 26 // id. |
| 27 // Most of the screens will be re-created for each appearance with Initialize() | 27 // Most of the screens will be re-created for each appearance with Initialize() |
| 28 // method called just once. | 28 // method called just once. |
| 29 class BaseScreen { | 29 class BaseScreen { |
| 30 public: | 30 public: |
| 31 explicit BaseScreen(BaseScreenDelegate* base_screen_delegate); | 31 explicit BaseScreen(BaseScreenDelegate* base_screen_delegate); |
| 32 virtual ~BaseScreen(); | 32 virtual ~BaseScreen(); |
| 33 | 33 |
| 34 // ---- Old implementation ---- | 34 // ---- Old implementation ---- |
| 35 | 35 |
| 36 virtual void PrepareToShow() = 0; | |
| 37 | |
| 38 // Makes wizard screen visible. | 36 // Makes wizard screen visible. |
| 39 virtual void Show() = 0; | 37 virtual void Show() = 0; |
| 40 | 38 |
| 41 // Makes wizard screen invisible. | 39 // Makes wizard screen invisible. |
| 42 virtual void Hide() = 0; | 40 virtual void Hide() = 0; |
| 43 | 41 |
| 44 // Returns the screen name. | 42 // Returns the screen name. |
| 45 virtual std::string GetName() const = 0; | 43 virtual std::string GetName() const = 0; |
| 46 | 44 |
| 47 // ---- New Implementation ---- | 45 // ---- New Implementation ---- |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 ModelViewChannel* channel_; | 152 ModelViewChannel* channel_; |
| 155 | 153 |
| 156 BaseScreenDelegate* base_screen_delegate_; | 154 BaseScreenDelegate* base_screen_delegate_; |
| 157 | 155 |
| 158 DISALLOW_COPY_AND_ASSIGN(BaseScreen); | 156 DISALLOW_COPY_AND_ASSIGN(BaseScreen); |
| 159 }; | 157 }; |
| 160 | 158 |
| 161 } // namespace chromeos | 159 } // namespace chromeos |
| 162 | 160 |
| 163 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ | 161 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ |
| OLD | NEW |