Chromium Code Reviews| Index: chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h |
| diff --git a/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h b/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..568a7ea7c63e0bf0eb70f883a3bfb6060809ca5f |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h |
| @@ -0,0 +1,45 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STYLUS_HANDLER_H_ |
| +#define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STYLUS_HANDLER_H_ |
| + |
| +#include <set> |
| + |
| +#include "base/macros.h" |
| +#include "chrome/browser/chromeos/note_taking_helper.h" |
| +#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| + |
| +namespace chromeos { |
| +namespace settings { |
| + |
| +class StylusHandler : public ::settings::SettingsPageUIHandler, |
| + public chromeos::NoteTakingHelper::Observer { |
| + public: |
| + StylusHandler(); |
| + ~StylusHandler() override; |
| + |
| + // SettingsPageUIHandler implementation. |
| + void RegisterMessages() override; |
| + void OnJavascriptAllowed() override {} |
| + void OnJavascriptDisallowed() override {} |
| + |
| + private: |
| + // chromeos::NoteTakingHelper::Observer implementation. |
| + 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.
|
| + |
| + void UpdateNoteTakingApps(); |
| + void RequestApps(const base::ListValue* unused_args); |
| + void SetPreferredNoteTakingApp(const base::ListValue* args); |
| + |
| + // IDs of available note-taking apps. |
| + std::set<std::string> note_taking_app_ids_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(StylusHandler); |
| +}; |
| + |
| +} // namespace settings |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STYLUS_HANDLER_H_ |