| 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_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_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 19 matching lines...) Expand all Loading... |
| 30 // content::WebUIMessageHandler overrides: | 30 // content::WebUIMessageHandler overrides: |
| 31 virtual void RegisterMessages() OVERRIDE; | 31 virtual void RegisterMessages() OVERRIDE; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 // Sends all kiosk apps to webui. | 34 // Sends all kiosk apps to webui. |
| 35 void SendKioskApps(); | 35 void SendKioskApps(); |
| 36 | 36 |
| 37 // JS callbacks. | 37 // JS callbacks. |
| 38 void HandleInitializeKioskApps(const base::ListValue* args); | 38 void HandleInitializeKioskApps(const base::ListValue* args); |
| 39 void HandleKioskAppsLoaded(const base::ListValue* args); | 39 void HandleKioskAppsLoaded(const base::ListValue* args); |
| 40 void HandleLaunchKioskApps(const base::ListValue* args); | |
| 41 void HandleCheckKioskAppLaunchError(const base::ListValue* args); | 40 void HandleCheckKioskAppLaunchError(const base::ListValue* args); |
| 42 | 41 |
| 43 // KioskAppManagerObserver overrides: | 42 // KioskAppManagerObserver overrides: |
| 44 virtual void OnKioskAppsSettingsChanged() OVERRIDE; | 43 virtual void OnKioskAppsSettingsChanged() OVERRIDE; |
| 45 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; | 44 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; |
| 46 | 45 |
| 47 // Callback for KioskAppManager::GetConsumerKioskModeStatus(). | 46 // Callback for KioskAppManager::GetConsumerKioskModeStatus(). |
| 48 void OnGetConsumerKioskModeStatus( | 47 void OnGetConsumerKioskModeStatus( |
| 49 KioskAppManager::ConsumerKioskModeStatus status); | 48 KioskAppManager::ConsumerKioskModeStatus status); |
| 50 | 49 |
| 51 bool initialized_; | 50 bool initialized_; |
| 52 base::WeakPtrFactory<KioskAppMenuHandler> weak_ptr_factory_; | 51 base::WeakPtrFactory<KioskAppMenuHandler> weak_ptr_factory_; |
| 53 | 52 |
| 54 DISALLOW_COPY_AND_ASSIGN(KioskAppMenuHandler); | 53 DISALLOW_COPY_AND_ASSIGN(KioskAppMenuHandler); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace chromeos | 56 } // namespace chromeos |
| 58 | 57 |
| 59 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ | 58 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ |
| OLD | NEW |