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

Unified Diff: chrome/browser/ui/webui/gesture_config_ui.h

Issue 10532005: Initial check-in of gesture config WebUI. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix for chrome_browser.gypi. Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/gesture_config_ui.h
diff --git a/chrome/browser/ui/webui/gesture_config_ui.h b/chrome/browser/ui/webui/gesture_config_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..df709498f5da4b10d72006ae12c749a6ae561e79
--- /dev/null
+++ b/chrome/browser/ui/webui/gesture_config_ui.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_GESTURE_CONFIG_UI_H_
+#define CHROME_BROWSER_UI_WEBUI_GESTURE_CONFIG_UI_H_
+#pragma once
+
+#include "content/public/browser/web_ui_controller.h"
+
+namespace base {
+ class ListValue;
+} // namespace base
+
+// The WebUI for 'chrome://gesture'.
+class GestureConfigUI : public content::WebUIController {
+ public:
+ // Constructs a new GestureConfig for the specified |web_ui|.
+ explicit GestureConfigUI(content::WebUI* web_ui);
+ virtual ~GestureConfigUI();
+
+ private:
+ /**
+ * Request a preference setting's value.
+ * This method is asynchronous; the result is provided by a call to
+ * the JS method 'gesture_config.getPreferenceValueResult'.
+ */
+ void GetPreferenceValue(const base::ListValue* args);
+
+ /**
+ * Set a preference setting's value.
+ * Two parameters are provided in a JS list: prefName and value, the
+ * key of the preference value to be set, and the value it's to be set to.
+ */
+ void SetPreferenceValue(const base::ListValue* args);
+
+ DISALLOW_COPY_AND_ASSIGN(GestureConfigUI);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_GESTURE_CONFIG_UI_H_
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('k') | chrome/browser/ui/webui/gesture_config_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698