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

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

Issue 11280290: events: Change gesture-event handler in EventHandler to not return any values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « ui/views/controls/slide_out_view.cc ('k') | ui/views/controls/slider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include "ui/base/animation/animation_delegate.h" 8 #include "ui/base/animation/animation_delegate.h"
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual gfx::Size GetPreferredSize() OVERRIDE; 87 virtual gfx::Size GetPreferredSize() OVERRIDE;
88 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 88 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
89 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 89 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
90 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 90 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
91 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 91 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
92 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 92 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
93 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 93 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
94 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 94 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
95 95
96 // ui::EventHandler overrides: 96 // ui::EventHandler overrides:
97 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 97 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
98 98
99 // ui::AnimationDelegate overrides: 99 // ui::AnimationDelegate overrides:
100 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 100 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
101 101
102 SliderListener* listener_; 102 SliderListener* listener_;
103 Orientation orientation_; 103 Orientation orientation_;
104 104
105 scoped_ptr<ui::SlideAnimation> move_animation_; 105 scoped_ptr<ui::SlideAnimation> move_animation_;
106 106
107 float value_; 107 float value_;
(...skipping 13 matching lines...) Expand all
121 const gfx::ImageSkia* thumb_; 121 const gfx::ImageSkia* thumb_;
122 const gfx::ImageSkia* images_[4]; 122 const gfx::ImageSkia* images_[4];
123 int bar_height_; 123 int bar_height_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(Slider); 125 DISALLOW_COPY_AND_ASSIGN(Slider);
126 }; 126 };
127 127
128 } // namespace views 128 } // namespace views
129 129
130 #endif // UI_VIEWS_CONTROLS_SLIDER_H_ 130 #endif // UI_VIEWS_CONTROLS_SLIDER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/slide_out_view.cc ('k') | ui/views/controls/slider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698