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_DATE_TIME_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DATE_TIME_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 WebUIDataSource; |
| 13 } |
| 14 |
| 15 namespace chromeos { |
| 16 namespace settings { |
| 17 |
| 18 // Chrome OS date and time settings page UI handler. |
| 19 class DateTimeHandler : public ::settings::SettingsPageUIHandler { |
| 20 public: |
| 21 ~DateTimeHandler() override; |
| 22 |
| 23 // Adds load-time values to html_source before creating the handler. |
| 24 static DateTimeHandler* Create(content::WebUIDataSource* html_source); |
| 25 |
| 26 // SettingsPageUIHandler implementation. |
| 27 void RegisterMessages() override; |
| 28 void OnJavascriptAllowed() override; |
| 29 void OnJavascriptDisallowed() override; |
| 30 |
| 31 private: |
| 32 DateTimeHandler(); |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(DateTimeHandler); |
| 35 }; |
| 36 |
| 37 } // namespace settings |
| 38 } // namespace chromeos |
| 39 |
| 40 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DATE_TIME_HANDLER_H_ |
OLD | NEW |