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/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chrome/browser/chromeos/login/screens/screen_context.h" | |
12 | 11 |
13 namespace base { | 12 namespace base { |
14 class DictionaryValue; | 13 class DictionaryValue; |
15 } | 14 } |
16 | 15 |
17 namespace chromeos { | 16 namespace chromeos { |
18 | 17 |
| 18 class ScreenContext; |
| 19 |
19 // Base class for the all OOBE/login/before-session screens. | 20 // Base class for the all OOBE/login/before-session screens. |
20 // Screens are identified by ID, screen and it's JS counterpart must have same | 21 // Screens are identified by ID, screen and it's JS counterpart must have same |
21 // id. | 22 // id. |
22 // Most of the screens will be re-created for each appearance with Initialize() | 23 // Most of the screens will be re-created for each appearance with Initialize() |
23 // method called just once. However if initialization is too expensive, screen | 24 // method called just once. However if initialization is too expensive, screen |
24 // can override result of IsPermanent() method, and do clean-up upon subsequent | 25 // can override result of IsPermanent() method, and do clean-up upon subsequent |
25 // Initialize() method calls. | 26 // Initialize() method calls. |
26 class BaseScreen { | 27 class BaseScreen { |
27 public: | 28 public: |
28 BaseScreen(); | 29 BaseScreen(); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 private: | 89 private: |
89 friend class ScreenManager; | 90 friend class ScreenManager; |
90 void SetContext(ScreenContext* context); | 91 void SetContext(ScreenContext* context); |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(BaseScreen); | 93 DISALLOW_COPY_AND_ASSIGN(BaseScreen); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace chromeos | 96 } // namespace chromeos |
96 | 97 |
97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ |
OLD | NEW |