| 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_APP_LIST_START_PAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_APP_LIST_START_PAGE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_APP_LIST_START_PAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_APP_LIST_START_PAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/app_list/recommended_apps_observer.h" | 10 #include "chrome/browser/ui/app_list/recommended_apps_observer.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // RecommendedAppsObserver overrdies: | 32 // RecommendedAppsObserver overrdies: |
| 33 virtual void OnRecommendedAppsChanged() OVERRIDE; | 33 virtual void OnRecommendedAppsChanged() OVERRIDE; |
| 34 | 34 |
| 35 // Creates a ListValue for the recommended apps and sends it to js side. | 35 // Creates a ListValue for the recommended apps and sends it to js side. |
| 36 void SendRecommendedApps(); | 36 void SendRecommendedApps(); |
| 37 | 37 |
| 38 // JS callbacks. | 38 // JS callbacks. |
| 39 void HandleInitialize(const base::ListValue* args); | 39 void HandleInitialize(const base::ListValue* args); |
| 40 void HandleLaunchApp(const base::ListValue* args); | 40 void HandleLaunchApp(const base::ListValue* args); |
| 41 void HandleSearch(const base::ListValue* args); |
| 41 | 42 |
| 42 RecommendedApps* recommended_apps_; // Not owned. | 43 RecommendedApps* recommended_apps_; // Not owned. |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(StartPageHandler); | 45 DISALLOW_COPY_AND_ASSIGN(StartPageHandler); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace app_list | 48 } // namespace app_list |
| 48 | 49 |
| 49 #endif // CHROME_BROWSER_UI_WEBUI_APP_LIST_START_PAGE_HANDLER_H_ | 50 #endif // CHROME_BROWSER_UI_WEBUI_APP_LIST_START_PAGE_HANDLER_H_ |
| OLD | NEW |