| 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 base { |
| 12 class ListValue; |
| 13 } |
| 14 |
| 15 namespace content { |
| 16 class WebUI; |
| 17 } |
| 18 |
| 19 class Profile; |
| 20 |
| 21 namespace chromeos { |
| 22 namespace settings { |
| 23 |
| 24 class AccessibilityHandler : public ::settings::SettingsPageUIHandler { |
| 25 public: |
| 26 explicit AccessibilityHandler(content::WebUI* webui); |
| 27 ~AccessibilityHandler() override; |
| 28 |
| 29 // SettingsPageUIHandler implementation. |
| 30 void RegisterMessages() override; |
| 31 void OnJavascriptAllowed() override {} |
| 32 void OnJavascriptDisallowed() override {} |
| 33 |
| 34 private: |
| 35 // Callback for the "showChromeVoxSettings" message. |
| 36 void HandleShowChromeVoxSettings(const base::ListValue* args); |
| 37 |
| 38 Profile* profile_; // Weak pointer. |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(AccessibilityHandler); |
| 41 }; |
| 42 |
| 43 } // namespace settings |
| 44 } // namespace chromeos |
| 45 |
| 46 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_ACCESSIBILITY_HANDLER_H_ |
| OLD | NEW |