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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void HandleKioskAppsLoaded(const base::ListValue* args); | 46 void HandleKioskAppsLoaded(const base::ListValue* args); |
47 void HandleCheckKioskAppLaunchError(const base::ListValue* args); | 47 void HandleCheckKioskAppLaunchError(const base::ListValue* args); |
48 | 48 |
49 // KioskAppManagerObserver overrides: | 49 // KioskAppManagerObserver overrides: |
50 virtual void OnKioskAppsSettingsChanged() OVERRIDE; | 50 virtual void OnKioskAppsSettingsChanged() OVERRIDE; |
51 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; | 51 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; |
52 | 52 |
53 // NetworkStateInformer::NetworkStateInformerObserver overrides: | 53 // NetworkStateInformer::NetworkStateInformerObserver overrides: |
54 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) OVERRIDE; | 54 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) OVERRIDE; |
55 | 55 |
56 base::WeakPtrFactory<KioskAppMenuHandler> weak_ptr_factory_; | |
57 | |
58 // True when WebUI is initialized. Otherwise don't allow calling JS functions. | 56 // True when WebUI is initialized. Otherwise don't allow calling JS functions. |
59 bool is_webui_initialized_; | 57 bool is_webui_initialized_; |
60 | 58 |
61 scoped_refptr<NetworkStateInformer> network_state_informer_; | 59 scoped_refptr<NetworkStateInformer> network_state_informer_; |
62 | 60 |
| 61 base::WeakPtrFactory<KioskAppMenuHandler> weak_ptr_factory_; |
| 62 |
63 DISALLOW_COPY_AND_ASSIGN(KioskAppMenuHandler); | 63 DISALLOW_COPY_AND_ASSIGN(KioskAppMenuHandler); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace chromeos | 66 } // namespace chromeos |
67 | 67 |
68 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ | 68 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_ |
OLD | NEW |