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

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

Issue 2549373005: cros: Refactor of BaseScreen::GetName to BaseScreen::screen_id. (Closed)
Patch Set: Nits Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_NETWORK_ERROR_MODEL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_MODEL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_MODEL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_MODEL_H_
7 7
8 #include "base/callback_list.h" 8 #include "base/callback_list.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/chromeos/login/screens/base_screen.h" 10 #include "chrome/browser/chromeos/login/screens/base_screen.h"
(...skipping 17 matching lines...) Expand all
28 static const char kUserActionDiagnoseButtonClicked[]; 28 static const char kUserActionDiagnoseButtonClicked[];
29 static const char kUserActionLaunchOobeGuestSessionClicked[]; 29 static const char kUserActionLaunchOobeGuestSessionClicked[];
30 static const char kUserActionLocalStateErrorPowerwashButtonClicked[]; 30 static const char kUserActionLocalStateErrorPowerwashButtonClicked[];
31 static const char kUserActionRebootButtonClicked[]; 31 static const char kUserActionRebootButtonClicked[];
32 static const char kUserActionShowCaptivePortalClicked[]; 32 static const char kUserActionShowCaptivePortalClicked[];
33 static const char kUserActionConnectRequested[]; 33 static const char kUserActionConnectRequested[];
34 34
35 explicit NetworkErrorModel(BaseScreenDelegate* base_screen_delegate); 35 explicit NetworkErrorModel(BaseScreenDelegate* base_screen_delegate);
36 ~NetworkErrorModel() override; 36 ~NetworkErrorModel() override;
37 37
38 // BaseScreen:
39 std::string GetName() const override;
40
41 // Toggles the guest sign-in prompt. 38 // Toggles the guest sign-in prompt.
42 virtual void AllowGuestSignin(bool allowed) = 0; 39 virtual void AllowGuestSignin(bool allowed) = 0;
43 40
44 // Toggles the offline sign-in. 41 // Toggles the offline sign-in.
45 virtual void AllowOfflineLogin(bool allowed) = 0; 42 virtual void AllowOfflineLogin(bool allowed) = 0;
46 43
47 // Initializes captive portal dialog and shows that if needed. 44 // Initializes captive portal dialog and shows that if needed.
48 virtual void FixCaptivePortal() = 0; 45 virtual void FixCaptivePortal() = 0;
49 46
50 virtual NetworkError::UIState GetUIState() const = 0; 47 virtual NetworkError::UIState GetUIState() const = 0;
(...skipping 29 matching lines...) Expand all
80 // Shows captive portal dialog. 77 // Shows captive portal dialog.
81 virtual void ShowCaptivePortal() = 0; 78 virtual void ShowCaptivePortal() = 0;
82 79
83 // Toggles the connection pending indicator. 80 // Toggles the connection pending indicator.
84 virtual void ShowConnectingIndicator(bool show) = 0; 81 virtual void ShowConnectingIndicator(bool show) = 0;
85 }; 82 };
86 83
87 } // namespace chromeos 84 } // namespace chromeos
88 85
89 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_MODEL_H_ 86 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/mock_eula_screen.h ('k') | chrome/browser/chromeos/login/screens/network_error_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698