| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_OOBE_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 17 #include "chrome/browser/chromeos/login/oobe_screen.h" |
| 17 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h" | 18 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h" |
| 18 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" | 19 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" |
| 19 #include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h" | |
| 20 #include "content/public/browser/web_ui_controller.h" | 20 #include "content/public/browser/web_ui_controller.h" |
| 21 | 21 |
| 22 namespace ash { | 22 namespace ash { |
| 23 class ScreenDimmer; | 23 class ScreenDimmer; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace base { | 26 namespace base { |
| 27 class DictionaryValue; | 27 class DictionaryValue; |
| 28 } // namespace base | 28 } // namespace base |
| 29 | 29 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 156 } |
| 157 | 157 |
| 158 NetworkStateInformer* network_state_informer_for_test() const { | 158 NetworkStateInformer* network_state_informer_for_test() const { |
| 159 return network_state_informer_.get(); | 159 return network_state_informer_.get(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 private: | 162 private: |
| 163 void AddScreenHandler(BaseScreenHandler* handler); | 163 void AddScreenHandler(BaseScreenHandler* handler); |
| 164 | 164 |
| 165 // CoreOobeHandler::Delegate implementation: | 165 // CoreOobeHandler::Delegate implementation: |
| 166 void OnCurrentScreenChanged(const std::string& screen) override; | 166 void OnCurrentScreenChanged(OobeScreen screen) override; |
| 167 | 167 |
| 168 // Type of UI. | 168 // Type of UI. |
| 169 std::string display_type_; | 169 std::string display_type_; |
| 170 | 170 |
| 171 // Reference to NetworkStateInformer that handles changes in network | 171 // Reference to NetworkStateInformer that handles changes in network |
| 172 // state. | 172 // state. |
| 173 scoped_refptr<NetworkStateInformer> network_state_informer_; | 173 scoped_refptr<NetworkStateInformer> network_state_informer_; |
| 174 | 174 |
| 175 // Reference to CoreOobeHandler that handles common requests of Oobe page. | 175 // Reference to CoreOobeHandler that handles common requests of Oobe page. |
| 176 CoreOobeHandler* core_handler_ = nullptr; | 176 CoreOobeHandler* core_handler_ = nullptr; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_; | 245 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_; |
| 246 | 246 |
| 247 std::unique_ptr<ash::ScreenDimmer> screen_dimmer_; | 247 std::unique_ptr<ash::ScreenDimmer> screen_dimmer_; |
| 248 | 248 |
| 249 DISALLOW_COPY_AND_ASSIGN(OobeUI); | 249 DISALLOW_COPY_AND_ASSIGN(OobeUI); |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 } // namespace chromeos | 252 } // namespace chromeos |
| 253 | 253 |
| 254 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ | 254 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ |
| OLD | NEW |