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

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

Issue 2630623002: cros: Allow user to configure note taking app in md-settings. (Closed)
Patch Set: Initial upload Created 3 years, 11 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 2017 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_DEVICE_STYLUS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STYLUS_HANDLER_H_
7
8 #include <set>
9
10 #include "base/macros.h"
11 #include "chrome/browser/chromeos/note_taking_helper.h"
12 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
13
14 namespace chromeos {
15 namespace settings {
16
17 class StylusHandler : public ::settings::SettingsPageUIHandler,
18 public chromeos::NoteTakingHelper::Observer {
19 public:
20 StylusHandler();
21 ~StylusHandler() override;
22
23 // SettingsPageUIHandler implementation.
24 void RegisterMessages() override;
25 void OnJavascriptAllowed() override {}
26 void OnJavascriptDisallowed() override {}
27
28 private:
29 // chromeos::NoteTakingHelper::Observer implementation.
30 void OnAvailableNoteTakingAppsUpdated() override;
stevenjb 2017/01/19 17:48:53 It's weird to have one override private and the ot
jdufault 2017/01/25 00:52:22 Done.
31
32 void UpdateNoteTakingApps();
33 void RequestApps(const base::ListValue* unused_args);
34 void SetPreferredNoteTakingApp(const base::ListValue* args);
35
36 // IDs of available note-taking apps.
37 std::set<std::string> note_taking_app_ids_;
38
39 DISALLOW_COPY_AND_ASSIGN(StylusHandler);
40 };
41
42 } // namespace settings
43 } // namespace chromeos
44
45 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STYLUS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698