| OLD | NEW |
| 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_UI_WEBUI_EXTENSIONS_CHROMEOS_KIOSK_APPS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_CHROMEOS_KIOSK_APPS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_CHROMEOS_KIOSK_APPS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_CHROMEOS_KIOSK_APPS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // JS callbacks. | 49 // JS callbacks. |
| 50 void HandleInitializeKioskAppSettings(const base::ListValue* args); | 50 void HandleInitializeKioskAppSettings(const base::ListValue* args); |
| 51 void HandleGetKioskAppSettings(const base::ListValue* args); | 51 void HandleGetKioskAppSettings(const base::ListValue* args); |
| 52 void HandleAddKioskApp(const base::ListValue* args); | 52 void HandleAddKioskApp(const base::ListValue* args); |
| 53 void HandleRemoveKioskApp(const base::ListValue* args); | 53 void HandleRemoveKioskApp(const base::ListValue* args); |
| 54 void HandleEnableKioskAutoLaunch(const base::ListValue* args); | 54 void HandleEnableKioskAutoLaunch(const base::ListValue* args); |
| 55 void HandleDisableKioskAutoLaunch(const base::ListValue* args); | 55 void HandleDisableKioskAutoLaunch(const base::ListValue* args); |
| 56 void HandleSetDisableBailoutShortcut(const base::ListValue* args); | 56 void HandleSetDisableBailoutShortcut(const base::ListValue* args); |
| 57 | 57 |
| 58 // Callback for KioskAppManager::GetConsumerKioskModeStatus(). | 58 // Callback for KioskAppManager::GetConsumerKioskModeStatus(). |
| 59 void OnGetConsumerKioskModeStatus( | 59 void OnGetConsumerKioskAutoLaunchStatus( |
| 60 chromeos::KioskAppManager::ConsumerKioskModeStatus status); | 60 chromeos::KioskAppManager::ConsumerKioskAutoLaunchStatus status); |
| 61 | 61 |
| 62 KioskAppManager* kiosk_app_manager_; // not owned. | 62 KioskAppManager* kiosk_app_manager_; // not owned. |
| 63 bool initialized_; | 63 bool initialized_; |
| 64 bool is_kiosk_enabled_; | 64 bool is_kiosk_enabled_; |
| 65 bool is_auto_launch_enabled_; |
| 65 base::WeakPtrFactory<KioskAppsHandler> weak_ptr_factory_; | 66 base::WeakPtrFactory<KioskAppsHandler> weak_ptr_factory_; |
| 66 | 67 |
| 67 DISALLOW_COPY_AND_ASSIGN(KioskAppsHandler); | 68 DISALLOW_COPY_AND_ASSIGN(KioskAppsHandler); |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace chromeos | 71 } // namespace chromeos |
| 71 | 72 |
| 72 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_CHROMEOS_KIOSK_APPS_HANDLER_H_ | 73 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_CHROMEOS_KIOSK_APPS_HANDLER_H_ |
| OLD | NEW |