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

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

Issue 2740953006: cros: WIP patch to remove DeviceDisabledScreenView.
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CORE_OOBE_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CORE_OOBE_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CORE_OOBE_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CORE_OOBE_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/login/help_app_launcher.h" 10 #include "chrome/browser/chromeos/login/help_app_launcher.h"
(...skipping 18 matching lines...) Expand all
29 // help decouple the current Model/View/Handler setup, which will enable the 29 // help decouple the current Model/View/Handler setup, which will enable the
30 // UI-agnostic code to diverge from the UI implementation as it no longer needs 30 // UI-agnostic code to diverge from the UI implementation as it no longer needs
31 // a 1-1 association. Further, the entire API will be visible from one spot; 31 // a 1-1 association. Further, the entire API will be visible from one spot;
32 // this will enable significant deduplication. 32 // this will enable significant deduplication.
33 class CoreOobeView { 33 class CoreOobeView {
34 public: 34 public:
35 class Delegate { 35 class Delegate {
36 public: 36 public:
37 virtual ~Delegate(); 37 virtual ~Delegate();
38 38
39 // Returns the domain that owns the device.
40 virtual std::string GetEnrollmentDomain() const;
41
42 // Returns the message that should be shown to the user.
43 virtual std::string GetDeviceDisabledMessage() const;
44
39 // Called when enable debugging screen has exited. 45 // Called when enable debugging screen has exited.
40 virtual void OnEnableDebuggingScreenViewExit(bool success); 46 virtual void OnEnableDebuggingScreenViewExit(bool success);
41 47
42 // Called when the |view| has been destroyed and should no longer be used. 48 // Called when the |view| has been destroyed and should no longer be used.
43 virtual void OnViewDestroyed(CoreOobeView* view); 49 virtual void OnViewDestroyed(CoreOobeView* view);
44 }; 50 };
45 51
46 virtual ~CoreOobeView(); 52 virtual ~CoreOobeView();
47 53
48 // Set the CoreOobeView::Delegate instance so that derived CoreOobeView types 54 // Set the CoreOobeView::Delegate instance so that derived CoreOobeView types
49 // (aka JS Handlers) can call into generic login code (aka Models). 55 // (aka JS Handlers) can call into generic login code (aka Models).
50 virtual void SetDelegate(Delegate* delegate); 56 virtual void SetDelegate(Delegate* delegate);
51 57
52 // Called when the given |screen| should be shown. 58 // Called when the given |screen| should be shown.
53 virtual void Show(OobeScreen screen); 59 virtual void Show(OobeScreen screen);
54 virtual void Hide(OobeScreen screen); 60 virtual void Hide(OobeScreen screen);
55 61
62 // Update message for device disabled screen.
63 virtual void UpdateDeviceDisabledMessage(const std::string& message);
64
56 // Associated with CoreOobeView: 65 // Associated with CoreOobeView:
57 virtual void ShowSignInError(int login_attempts, 66 virtual void ShowSignInError(int login_attempts,
58 const std::string& error_text, 67 const std::string& error_text,
59 const std::string& help_link_text, 68 const std::string& help_link_text,
60 HelpAppLauncher::HelpTopic help_topic_id); 69 HelpAppLauncher::HelpTopic help_topic_id);
61 virtual void ShowTpmError(); 70 virtual void ShowTpmError();
62 virtual void ShowSignInUI(const std::string& email); 71 virtual void ShowSignInUI(const std::string& email);
63 virtual void ResetSignInUI(bool force_online); 72 virtual void ResetSignInUI(bool force_online);
64 virtual void ClearUserPodPassword(); 73 virtual void ClearUserPodPassword();
65 virtual void RefocusCurrentPod(); 74 virtual void RefocusCurrentPod();
(...skipping 12 matching lines...) Expand all
78 virtual void InitDemoModeDetection(); 87 virtual void InitDemoModeDetection();
79 virtual void StopDemoModeDetection(); 88 virtual void StopDemoModeDetection();
80 virtual void UpdateKeyboardState(); 89 virtual void UpdateKeyboardState();
81 virtual void ShowActiveDirectoryPasswordChangeScreen( 90 virtual void ShowActiveDirectoryPasswordChangeScreen(
82 const std::string& username); 91 const std::string& username);
83 }; 92 };
84 93
85 } // namespace chromeos 94 } // namespace chromeos
86 95
87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CORE_OOBE_VIEW_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CORE_OOBE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/login/screens/core_oobe_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698