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

Side by Side Diff: ui/views/controls/slider.h

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_SLIDER_H_ 5 #ifndef UI_VIEWS_CONTROLS_SLIDER_H_
6 #define UI_VIEWS_CONTROLS_SLIDER_H_ 6 #define UI_VIEWS_CONTROLS_SLIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
(...skipping 29 matching lines...) Expand all
40 virtual ~Slider(); 40 virtual ~Slider();
41 41
42 float value() const { return value_; } 42 float value() const { return value_; }
43 void SetValue(float value); 43 void SetValue(float value);
44 44
45 private: 45 private:
46 void SetValueInternal(float value, SliderChangeReason reason); 46 void SetValueInternal(float value, SliderChangeReason reason);
47 47
48 // views::View overrides: 48 // views::View overrides:
49 virtual gfx::Size GetPreferredSize() OVERRIDE; 49 virtual gfx::Size GetPreferredSize() OVERRIDE;
50 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 50 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE;
51 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 51 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
52 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 52 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
53 53
54 SliderListener* listener_; 54 SliderListener* listener_;
55 Orientation orientation_; 55 Orientation orientation_;
56 56
57 float value_; 57 float value_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(Slider); 59 DISALLOW_COPY_AND_ASSIGN(Slider);
60 }; 60 };
61 61
62 } // namespace views 62 } // namespace views
63 63
64 #endif // UI_VIEWS_CONTROLS_SLIDER_H_ 64 #endif // UI_VIEWS_CONTROLS_SLIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698