| 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 |
| 22 private: |
| 23 /** |
| 24 * Request a preference setting's value. |
| 25 * This method is asynchronous; the result is provided by a call to |
| 26 * the JS method 'gesture_config.getPreferenceValueResult'. |
| 27 */ |
| 28 void GetPreferenceValue(const base::ListValue* args); |
| 29 |
| 30 /** |
| 31 * Set a preference setting's value. |
| 32 * Two parameters are provided in a JS list: prefName and value, the |
| 33 * key of the preference value to be set, and the value it's to be set to. |
| 34 */ |
| 35 void SetPreferenceValue(const base::ListValue* args); |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(GestureConfigUI); |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_UI_WEBUI_GESTURE_CONFIG_UI_H_ |
| OLD | NEW |