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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 BaseScreenDelegate* get_base_screen_delegate() const { | 132 BaseScreenDelegate* get_base_screen_delegate() const { |
133 return base_screen_delegate_; | 133 return base_screen_delegate_; |
134 } | 134 } |
135 | 135 |
136 ::login::ScreenContext context_; | 136 ::login::ScreenContext context_; |
137 | 137 |
138 private: | 138 private: |
139 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); | 139 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); |
140 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestSuccess); | 140 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestSuccess); |
| 141 FRIEND_TEST_ALL_PREFIXES(AttestationAuthEnrollmentScreenTest, TestCancel); |
| 142 FRIEND_TEST_ALL_PREFIXES(ForcedAttestationAuthEnrollmentScreenTest, |
| 143 TestCancel); |
| 144 FRIEND_TEST_ALL_PREFIXES(MultiAuthEnrollmentScreenTest, TestCancel); |
141 FRIEND_TEST_ALL_PREFIXES(ProvisionedEnrollmentScreenTest, TestBackButton); | 145 FRIEND_TEST_ALL_PREFIXES(ProvisionedEnrollmentScreenTest, TestBackButton); |
142 | 146 |
143 friend class BaseScreenHandler; | 147 friend class BaseScreenHandler; |
144 friend class NetworkScreenTest; | 148 friend class NetworkScreenTest; |
145 friend class ScreenEditor; | 149 friend class ScreenEditor; |
146 friend class ScreenManager; | 150 friend class ScreenManager; |
147 friend class UpdateScreenTest; | 151 friend class UpdateScreenTest; |
148 | 152 |
149 void SetContext(::login::ScreenContext* context); | 153 void SetContext(::login::ScreenContext* context); |
150 | 154 |
151 // Called when context for the current screen was | 155 // Called when context for the current screen was |
152 // changed. Notification about this event comes from the JS | 156 // changed. Notification about this event comes from the JS |
153 // counterpart. | 157 // counterpart. |
154 void OnContextChanged(const base::DictionaryValue& diff); | 158 void OnContextChanged(const base::DictionaryValue& diff); |
155 | 159 |
156 ModelViewChannel* channel_; | 160 ModelViewChannel* channel_; |
157 | 161 |
158 BaseScreenDelegate* base_screen_delegate_; | 162 BaseScreenDelegate* base_screen_delegate_; |
159 | 163 |
160 DISALLOW_COPY_AND_ASSIGN(BaseScreen); | 164 DISALLOW_COPY_AND_ASSIGN(BaseScreen); |
161 }; | 165 }; |
162 | 166 |
163 } // namespace chromeos | 167 } // namespace chromeos |
164 | 168 |
165 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ | 169 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ |
OLD | NEW |