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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/multicast_core_oobe_view.h

Issue 2738973003: cros: WIP patch to remove EnableDebuggingScreenView
Patch Set: Initial upload 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_MULTICAST_CORE_OOBE_VIEW_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_MULTICAST_CORE_OOBE_VIEW_H_
7
8 #include <vector>
9
10 #include "base/macros.h"
11 #include "chrome/browser/chromeos/login/screens/core_oobe_view.h"
12
13 namespace chromeos {
14
15 // This is the CoreOobeView instance which is used by the Screen layer to run
16 // callbacks. It enables the JS/Handler layer to have many separate CoreOobeView
17 // implementations. Essentially, all this class does is delegate out a
18 // CoreOobeView call to every implementation.
19 class MulticastCoreOobeView : public CoreOobeView {
20 public:
21 MulticastCoreOobeView();
22 ~MulticastCoreOobeView() override;
23
24 void AddView(CoreOobeView* view);
25
26 private:
27 // CoreOobeView:
28 void SetDelegate(Delegate* delegate) override;
29 void Show(OobeScreen screen) override;
30 void Hide(OobeScreen screen) override;
31 void ShowSignInError(int login_attempts,
32 const std::string& error_text,
33 const std::string& help_link_text,
34 HelpAppLauncher::HelpTopic help_topic_id) override;
35 void ShowTpmError() override;
36 void ShowSignInUI(const std::string& email) override;
37 void ResetSignInUI(bool force_online) override;
38 void ClearUserPodPassword() override;
39 void RefocusCurrentPod() override;
40 void ShowPasswordChangedScreen(bool show_password_error,
41 const std::string& email) override;
42 void SetUsageStats(bool checked) override;
43 void SetOemEulaUrl(const std::string& oem_eula_url) override;
44 void SetTpmPassword(const std::string& tmp_password) override;
45 void ClearErrors() override;
46 void ReloadContent(const base::DictionaryValue& dictionary) override;
47 void ShowControlBar(bool show) override;
48 void ShowPinKeyboard(bool show) override;
49 void SetClientAreaSize(int width, int height) override;
50 void ShowDeviceResetScreen() override;
51 void ShowEnableDebuggingScreen() override;
52 void InitDemoModeDetection() override;
53 void StopDemoModeDetection() override;
54 void UpdateKeyboardState() override;
55 void ShowActiveDirectoryPasswordChangeScreen(
56 const std::string& username) override;
57
58 Delegate* delegate_ = nullptr; // Delegate, used for validation purposes.
59 std::vector<CoreOobeView*> views_; // Unowned.
60
61 DISALLOW_COPY_AND_ASSIGN(MulticastCoreOobeView);
62 };
63
64 } // namespace chromeos
65
66 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_MULTICAST_CORE_OOBE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698