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 27 matching lines...) Expand all Loading... |
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 HandleCheckKioskAppLaunchError(const base::ListValue* args); | 40 void HandleCheckKioskAppLaunchError(const base::ListValue* args); |
41 | 41 |
42 // KioskAppManagerObserver overrides: | 42 // KioskAppManagerObserver overrides: |
43 virtual void OnKioskAppsSettingsChanged() OVERRIDE; | 43 virtual void OnKioskAppsSettingsChanged() OVERRIDE; |
44 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; | 44 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; |
45 | 45 |
46 base::WeakPtrFactory<KioskAppMenuHandler> weak_ptr_factory_; | 46 base::WeakPtrFactory<KioskAppMenuHandler> weak_ptr_factory_; |
47 | 47 |
| 48 // True when WebUI is initialized. Otherwise don't allow calling JS functions. |
| 49 bool is_webui_initialized_; |
| 50 |
48 DISALLOW_COPY_AND_ASSIGN(KioskAppMenuHandler); | 51 DISALLOW_COPY_AND_ASSIGN(KioskAppMenuHandler); |
49 }; | 52 }; |
50 | 53 |
51 } // namespace chromeos | 54 } // namespace chromeos |
52 | 55 |
53 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ | 56 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ |
OLD | NEW |