Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: chrome/browser/chromeos/login/screens/base_screen.h

Issue 2713513009: cros: Break BaseScreenHandler into two classes. (Closed)
Patch Set: Add comments, fix compile Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); 124 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel);
125 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestSuccess); 125 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestSuccess);
126 FRIEND_TEST_ALL_PREFIXES(AttestationAuthEnrollmentScreenTest, TestCancel); 126 FRIEND_TEST_ALL_PREFIXES(AttestationAuthEnrollmentScreenTest, TestCancel);
127 FRIEND_TEST_ALL_PREFIXES(ForcedAttestationAuthEnrollmentScreenTest, 127 FRIEND_TEST_ALL_PREFIXES(ForcedAttestationAuthEnrollmentScreenTest,
128 TestCancel); 128 TestCancel);
129 FRIEND_TEST_ALL_PREFIXES(MultiAuthEnrollmentScreenTest, TestCancel); 129 FRIEND_TEST_ALL_PREFIXES(MultiAuthEnrollmentScreenTest, TestCancel);
130 FRIEND_TEST_ALL_PREFIXES(ProvisionedEnrollmentScreenTest, TestBackButton); 130 FRIEND_TEST_ALL_PREFIXES(ProvisionedEnrollmentScreenTest, TestBackButton);
131 FRIEND_TEST_ALL_PREFIXES(HandsOffNetworkScreenTest, RequiresNoInput); 131 FRIEND_TEST_ALL_PREFIXES(HandsOffNetworkScreenTest, RequiresNoInput);
132 FRIEND_TEST_ALL_PREFIXES(HandsOffNetworkScreenTest, ContinueClickedOnlyOnce); 132 FRIEND_TEST_ALL_PREFIXES(HandsOffNetworkScreenTest, ContinueClickedOnlyOnce);
133 133
134 friend class BaseScreenHandler; 134 friend class BaseWebUIHandler;
135 friend class NetworkScreenTest; 135 friend class NetworkScreenTest;
136 friend class ScreenEditor; 136 friend class ScreenEditor;
137 friend class ScreenManager; 137 friend class ScreenManager;
138 friend class UpdateScreenTest; 138 friend class UpdateScreenTest;
139 139
140 void SetContext(::login::ScreenContext* context); 140 void SetContext(::login::ScreenContext* context);
141 141
142 // Called when context for the current screen was 142 // Called when context for the current screen was
143 // changed. Notification about this event comes from the JS 143 // changed. Notification about this event comes from the JS
144 // counterpart. 144 // counterpart.
145 void OnContextChanged(const base::DictionaryValue& diff); 145 void OnContextChanged(const base::DictionaryValue& diff);
146 146
147 ModelViewChannel* channel_ = nullptr; 147 ModelViewChannel* channel_ = nullptr;
148 148
149 BaseScreenDelegate* base_screen_delegate_ = nullptr; 149 BaseScreenDelegate* base_screen_delegate_ = nullptr;
150 150
151 const OobeScreen screen_id_; 151 const OobeScreen screen_id_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(BaseScreen); 153 DISALLOW_COPY_AND_ASSIGN(BaseScreen);
154 }; 154 };
155 155
156 } // namespace chromeos 156 } // namespace chromeos
157 157
158 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 158 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698