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

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

Issue 1814703004: MD Settings: implement "RESTART" button for hardware acceleration to take effect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 9 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
10 10
11 namespace base { 11 namespace base {
12 class ListValue; 12 class ListValue;
13 } 13 }
14 14
15 namespace content {
16 class WebUIDataSource;
17 }
18
15 namespace settings { 19 namespace settings {
16 20
17 class SystemHandler : public SettingsPageUIHandler { 21 class SystemHandler : public SettingsPageUIHandler {
18 public: 22 public:
19 SystemHandler(); 23 SystemHandler();
20 ~SystemHandler() override; 24 ~SystemHandler() override;
21 25
26 // Populates handler-specific loadTimeData values used by the system page.
27 static void AddLoadTimeData(content::WebUIDataSource* data_source);
28
22 // SettingsPageUIHandler: 29 // SettingsPageUIHandler:
23 void RegisterMessages() override; 30 void RegisterMessages() override;
24 31
25 private: 32 private:
26 // Handler for the "changeProxySettings" message. No args. 33 // Handler for the "changeProxySettings" message. No args.
27 void HandleChangeProxySettings(const base::ListValue* /*args*/); 34 void HandleChangeProxySettings(const base::ListValue* /*args*/);
28 35
36 // Handler for the "restartBrowser" message. No args.
37 void HandleRestartBrowser(const base::ListValue* /*args*/);
38
29 DISALLOW_COPY_AND_ASSIGN(SystemHandler); 39 DISALLOW_COPY_AND_ASSIGN(SystemHandler);
30 }; 40 };
31 41
32 } // namespace settings 42 } // namespace settings
33 43
34 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ 44 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.cc ('k') | chrome/browser/ui/webui/settings/system_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698