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

Unified Diff: views/controls/slider/native_slider_gtk.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 | « chrome/common/pref_names.cc ('k') | views/controls/slider/native_slider_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/slider/native_slider_gtk.h
===================================================================
--- views/controls/slider/native_slider_gtk.h (revision 0)
+++ views/controls/slider/native_slider_gtk.h (revision 0)
@@ -0,0 +1,52 @@
+// 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_GTK_H_
+#define VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_GTK_H_
+
+#include <gtk/gtk.h>
+
+#include "views/controls/native_control_gtk.h"
+#include "views/controls/slider/native_slider_wrapper.h"
+
+namespace views {
+
+class NativeSliderGtk : public NativeControlGtk,
+ public NativeSliderWrapper {
+ public:
+ explicit NativeSliderGtk(Slider* parent);
+ ~NativeSliderGtk();
+
+ // Overridden from NativeSliderWrapper:
+ virtual void UpdateEnabled();
+ virtual double GetValue();
+ virtual void SetValue(double value);
+ virtual void SetFocus();
+ virtual gfx::Size GetPreferredSize();
+ virtual View* GetView();
+ virtual gfx::NativeView GetTestingHandle() const;
+
+ // Overridden from NativeControlGtk:
+ virtual void CreateNativeControl();
+ virtual void NativeControlCreated(GtkWidget* widget);
+
+ private:
+ // The slider we are bound to.
+ Slider* slider_;
+
+ // The preferred size from the last size_request. See
+ // NativeButtonGtk::preferred_size_ for more detail why we need this.
+ gfx::Size preferred_size_;
+
+ // Callback when the slider value changes.
+ static gboolean OnValueChangedHandler(GtkWidget* entry,
+ NativeSliderGtk* slider);
+ gboolean OnValueChanged();
+
+ DISALLOW_COPY_AND_ASSIGN(NativeSliderGtk);
+};
+
+} // namespace views
+
+#endif // VIEWS_CONTROLS_SLIDER_NATIVE_SLIDER_GTK_H_
Property changes on: views/controls/slider/native_slider_gtk.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/common/pref_names.cc ('k') | views/controls/slider/native_slider_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698