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

Unified Diff: views/controls/slider/native_slider_wrapper.h

Issue 211002: Add touchpad speed factor setting to Chrome OS touchpad settings page... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « views/controls/slider/native_slider_gtk.cc ('k') | views/controls/slider/slider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/slider/native_slider_wrapper.h
===================================================================
--- views/controls/slider/native_slider_wrapper.h (revision 0)
+++ views/controls/slider/native_slider_wrapper.h (revision 0)
@@ -0,0 +1,48 @@
+// Copyright (c) 2009 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 VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_
+#define VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_
+
+#include "base/gfx/native_widget_types.h"
+
+namespace views {
+
+class Slider;
+class View;
+
+// An interface implemented by an object that provides a platform-native slider.
+class NativeSliderWrapper {
+ public:
+ // The Slider calls this when it is destroyed to clean up the wrapper object.
+ virtual ~NativeSliderWrapper() {}
+
+ // Updates the enabled state of the native slider.
+ virtual void UpdateEnabled() = 0;
+
+ // Gets the value of the slider.
+ virtual double GetValue() = 0;
+
+ // Sets the value of the slider.
+ virtual void SetValue(double value) = 0;
+
+ // Sets the focus to the slider.
+ virtual void SetFocus() = 0;
+
+ // Returns the preferred size of the combobox.
+ virtual gfx::Size GetPreferredSize() = 0;
+
+ // Retrieves the views::View that hosts the native control.
+ virtual View* GetView() = 0;
+
+ // Returns a handle to the underlying native view for testing.
+ virtual gfx::NativeView GetTestingHandle() const = 0;
+
+ // Creates an appropriate NativeSliderWrapper for the platform.
+ static NativeSliderWrapper* CreateWrapper(Slider* slider);
+};
+
+} // namespace views
+
+#endif // VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_WRAPPER_H_
Property changes on: views/controls/slider/native_slider_wrapper.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « views/controls/slider/native_slider_gtk.cc ('k') | views/controls/slider/slider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698