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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 class KioskAppsHandler : public content::WebUIMessageHandler, | 29 class KioskAppsHandler : public content::WebUIMessageHandler, |
30 public KioskAppManagerObserver { | 30 public KioskAppManagerObserver { |
31 public: | 31 public: |
32 KioskAppsHandler(); | 32 KioskAppsHandler(); |
33 virtual ~KioskAppsHandler(); | 33 virtual ~KioskAppsHandler(); |
34 | 34 |
35 void GetLocalizedValues(content::WebUIDataSource* source); | 35 void GetLocalizedValues(content::WebUIDataSource* source); |
36 | 36 |
37 // content::WebUIMessageHandler overrides: | 37 // content::WebUIMessageHandler overrides: |
38 virtual void RegisterMessages() OVERRIDE; | 38 virtual void RegisterMessages() override; |
39 | 39 |
40 // KioskAppManagerObserver overrides: | 40 // KioskAppManagerObserver overrides: |
41 virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE; | 41 virtual void OnKioskAppDataChanged(const std::string& app_id) override; |
42 virtual void OnKioskAppDataLoadFailure(const std::string& app_id) OVERRIDE; | 42 virtual void OnKioskAppDataLoadFailure(const std::string& app_id) override; |
43 virtual void OnKioskExtensionLoadedInCache( | 43 virtual void OnKioskExtensionLoadedInCache( |
44 const std::string& app_id) OVERRIDE; | 44 const std::string& app_id) override; |
45 virtual void OnKioskExtensionDownloadFailed( | 45 virtual void OnKioskExtensionDownloadFailed( |
46 const std::string& app_id) OVERRIDE; | 46 const std::string& app_id) override; |
47 | 47 |
48 virtual void OnKioskAppsSettingsChanged() OVERRIDE; | 48 virtual void OnKioskAppsSettingsChanged() override; |
49 | 49 |
50 private: | 50 private: |
51 // Sends all kiosk apps and settings to webui. | 51 // Sends all kiosk apps and settings to webui. |
52 void SendKioskAppSettings(); | 52 void SendKioskAppSettings(); |
53 | 53 |
54 // JS callbacks. | 54 // JS callbacks. |
55 void HandleInitializeKioskAppSettings(const base::ListValue* args); | 55 void HandleInitializeKioskAppSettings(const base::ListValue* args); |
56 void HandleGetKioskAppSettings(const base::ListValue* args); | 56 void HandleGetKioskAppSettings(const base::ListValue* args); |
57 void HandleAddKioskApp(const base::ListValue* args); | 57 void HandleAddKioskApp(const base::ListValue* args); |
58 void HandleRemoveKioskApp(const base::ListValue* args); | 58 void HandleRemoveKioskApp(const base::ListValue* args); |
(...skipping 13 matching lines...) Expand all Loading... |
72 bool is_kiosk_enabled_; | 72 bool is_kiosk_enabled_; |
73 bool is_auto_launch_enabled_; | 73 bool is_auto_launch_enabled_; |
74 base::WeakPtrFactory<KioskAppsHandler> weak_ptr_factory_; | 74 base::WeakPtrFactory<KioskAppsHandler> weak_ptr_factory_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(KioskAppsHandler); | 76 DISALLOW_COPY_AND_ASSIGN(KioskAppsHandler); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace chromeos | 79 } // namespace chromeos |
80 | 80 |
81 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_CHROMEOS_KIOSK_APPS_HANDLER_H_ | 81 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_CHROMEOS_KIOSK_APPS_HANDLER_H_ |
OLD | NEW |