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

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

Issue 811033002: Add device policy to disallow shutdown - ash UI modifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shutdown_allowed => reboot_on_shutdown Created 6 years 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_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 10 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void OnEnterpriseInfoUpdated( 55 virtual void OnEnterpriseInfoUpdated(
56 const std::string& message_text) override; 56 const std::string& message_text) override;
57 57
58 // Show or hide OOBE UI. 58 // Show or hide OOBE UI.
59 void ShowOobeUI(bool show); 59 void ShowOobeUI(bool show);
60 60
61 bool show_oobe_ui() const { 61 bool show_oobe_ui() const {
62 return show_oobe_ui_; 62 return show_oobe_ui_;
63 } 63 }
64 64
65 // If |shutdown_button_visible| is true, the shutdown button becomes visible
66 // and the reboot button is hidden. Vice versa if |shutdown_button_visible| is
67 // false.
68 void UpdateShutdownButtonVisibility(bool shutdown_button_visible);
69
65 private: 70 private:
66 // CoreOobeActor implementation: 71 // CoreOobeActor implementation:
67 virtual void ShowSignInError( 72 virtual void ShowSignInError(
68 int login_attempts, 73 int login_attempts,
69 const std::string& error_text, 74 const std::string& error_text,
70 const std::string& help_link_text, 75 const std::string& help_link_text,
71 HelpAppLauncher::HelpTopic help_topic_id) override; 76 HelpAppLauncher::HelpTopic help_topic_id) override;
72 virtual void ShowTpmError() override; 77 virtual void ShowTpmError() override;
73 virtual void ShowSignInUI(const std::string& email) override; 78 virtual void ShowSignInUI(const std::string& email) override;
74 virtual void ResetSignInUI(bool force_online) override; 79 virtual void ResetSignInUI(bool force_online) override;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_; 151 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_;
147 152
148 DemoModeDetector demo_mode_detector_; 153 DemoModeDetector demo_mode_detector_;
149 154
150 DISALLOW_COPY_AND_ASSIGN(CoreOobeHandler); 155 DISALLOW_COPY_AND_ASSIGN(CoreOobeHandler);
151 }; 156 };
152 157
153 } // namespace chromeos 158 } // namespace chromeos
154 159
155 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ 160 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698