OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_GOOGLE_ASSISTANT_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_GOOGLE_ASSISTANT_HANDLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| 10 |
| 11 class Profile; |
| 12 |
| 13 namespace chromeos { |
| 14 namespace settings { |
| 15 |
| 16 class GoogleAssistantHandler : public ::settings::SettingsPageUIHandler { |
| 17 public: |
| 18 explicit GoogleAssistantHandler(Profile* profile); |
| 19 ~GoogleAssistantHandler() override; |
| 20 |
| 21 void RegisterMessages() override; |
| 22 void OnJavascriptAllowed() override; |
| 23 void OnJavascriptDisallowed() override; |
| 24 |
| 25 private: |
| 26 // WebUI call to enable the Google Assistant. |
| 27 void HandleSetGoogleAssistantEnabled(const base::ListValue* args); |
| 28 // WebUI call to enable context for the Google Assistant. |
| 29 void HandleSetGoogleAssistantContextEnabled(const base::ListValue* args); |
| 30 // WebUI call to launch into the Google Assistant app settings. |
| 31 void HandleShowGoogleAssistantSettings(const base::ListValue* args); |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(GoogleAssistantHandler); |
| 34 }; |
| 35 |
| 36 } // namespace settings |
| 37 } |
| 38 |
| 39 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROME_OS_GOOGLE_ASSISTANT_HANDLER_H
_ |
OLD | NEW |