Chromium Code Reviews| 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_ACCESSIBILITY_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_ACCESSIBILITY_HANDLER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | |
| 10 | |
| 11 namespace content { | |
| 12 class WebUI; | |
| 13 } | |
| 14 | |
| 15 class Profile; | |
| 16 | |
| 17 namespace chromeos { | |
| 18 namespace settings { | |
| 19 | |
| 20 class AccessibilityHandler : public ::settings::SettingsPageUIHandler { | |
| 21 public: | |
| 22 explicit AccessibilityHandler(content::WebUI* webui); | |
| 23 ~AccessibilityHandler() override; | |
| 24 | |
| 25 // SettingsPageUIHandler implementation. | |
| 26 void RegisterMessages() override; | |
| 27 void OnJavascriptAllowed() override {} | |
| 28 void OnJavascriptDisallowed() override {} | |
| 29 | |
| 30 // Callback for the "showChromeVoxSettings" message. | |
| 31 void HandleShowChromeVoxSettings(const base::ListValue* args); | |
|
Dan Beam
2016/08/02 05:18:47
please make this handler private
Dan Beam
2016/08/02 05:18:47
nit: forward declare base::ListValue
dmazzoni
2016/08/02 17:14:52
Done
| |
| 32 | |
| 33 private: | |
| 34 Profile* profile_; // Weak pointer. | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(AccessibilityHandler); | |
| 37 }; | |
| 38 | |
| 39 } // namespace settings | |
| 40 } // namespace chromeos | |
| 41 | |
| 42 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_ACCESSIBILITY_HANDLER_H_ | |
| OLD | NEW |