Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / webui / app_list / start_page_handler.h
blob25293dd46567d86ca7d9f04b84b16d69b56697cd
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_APP_LIST_START_PAGE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_APP_LIST_START_PAGE_HANDLER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/prefs/pref_change_registrar.h"
11 #include "content/public/browser/web_ui_message_handler.h"
13 namespace base {
14 class ListValue;
17 namespace app_list {
19 // Handler for the app launcher start page.
20 class StartPageHandler : public content::WebUIMessageHandler {
21 public:
22 StartPageHandler();
23 ~StartPageHandler() override;
25 private:
26 // content::WebUIMessageHandler overrides:
27 void RegisterMessages() override;
29 // JS callbacks.
30 void HandleAppListShown(const base::ListValue* args);
31 void HandleDoodleClicked(const base::ListValue* args);
32 void HandleInitialize(const base::ListValue* args);
33 void HandleLaunchApp(const base::ListValue* args);
35 PrefChangeRegistrar pref_change_registrar_;
37 DISALLOW_COPY_AND_ASSIGN(StartPageHandler);
40 } // namespace app_list
42 #endif // CHROME_BROWSER_UI_WEBUI_APP_LIST_START_PAGE_HANDLER_H_