Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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_GESTURE_CONFIG_UI_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_GESTURE_CONFIG_UI_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "content/public/browser/web_ui_controller.h" | |
| 10 | |
| 11 namespace base { | |
| 12 class ListValue; | |
| 13 } // namespace base | |
| 14 | |
| 15 // The WebUI for 'chrome://gesture'. | |
| 16 class GestureConfigUI : public content::WebUIController { | |
| 17 public: | |
| 18 // Constructs a new GestureConfig for the specified |web_ui|. | |
| 19 explicit GestureConfigUI(content::WebUI* web_ui); | |
| 20 virtual ~GestureConfigUI(); | |
| 21 private: | |
|
James Hawkins
2012/06/12 18:04:15
nit: Blank line above private.
Kevin Greer
2012/06/12 18:10:02
Done.
| |
| 22 /** | |
| 23 * Request a preference setting's value. | |
| 24 * This method is asynchronous; the result is provided by a call to | |
| 25 * the JS method 'gesture_config.getPreferenceValueResult'. | |
| 26 */ | |
| 27 void GetPreferenceValue(const base::ListValue* args); | |
| 28 | |
| 29 /** | |
| 30 * Set a preference setting's value. | |
| 31 * Two parameters are provided in a JS list: prefName and value, the | |
| 32 * key of the preference value to be set, and the value it's to be set to. | |
| 33 */ | |
| 34 void SetPreferenceValue(const base::ListValue* args); | |
| 35 DISALLOW_COPY_AND_ASSIGN(GestureConfigUI); | |
|
James Hawkins
2012/06/12 18:04:15
nit: Blank line above DISALLOW..
Kevin Greer
2012/06/12 18:10:02
Done.
| |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_UI_WEBUI_GESTURE_CONFIG_UI_H_ | |
| OLD | NEW |