Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: chrome/browser/ui/webui/settings/chromeos/google_assistant_handler.h

Issue 2952463002: App list sync unit tests (Closed)
Patch Set: Add in dummy hooks for assistant settings launcher Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 _
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/settings/chromeos/google_assistant_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698