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

Side by Side Diff: ui/views/controls/scrollbar/native_scroll_bar.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
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_SCROLLBAR_NATIVE_SCROLL_BAR_H_ 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_
6 #define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void ViewHierarchyChanged(bool is_add, 45 virtual void ViewHierarchyChanged(bool is_add,
46 View* parent, 46 View* parent,
47 View* child) OVERRIDE; 47 View* child) OVERRIDE;
48 virtual std::string GetClassName() const OVERRIDE; 48 virtual std::string GetClassName() const OVERRIDE;
49 49
50 // Overrideen from View for keyboard UI purpose. 50 // Overrideen from View for keyboard UI purpose.
51 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 51 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
52 virtual bool OnMouseWheel(const ui::MouseWheelEvent& e) OVERRIDE; 52 virtual bool OnMouseWheel(const ui::MouseWheelEvent& e) OVERRIDE;
53 53
54 // Overridden from ui::EventHandler. 54 // Overridden from ui::EventHandler.
55 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 55 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
56 56
57 // Overridden from ScrollBar. 57 // Overridden from ScrollBar.
58 virtual void Update(int viewport_size, 58 virtual void Update(int viewport_size,
59 int content_size, 59 int content_size,
60 int current_pos) OVERRIDE; 60 int current_pos) OVERRIDE;
61 virtual int GetPosition() const OVERRIDE; 61 virtual int GetPosition() const OVERRIDE;
62 virtual int GetLayoutSize() const OVERRIDE; 62 virtual int GetLayoutSize() const OVERRIDE;
63 63
64 // init border 64 // init border
65 NativeScrollBarWrapper* native_wrapper_; 65 NativeScrollBarWrapper* native_wrapper_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(NativeScrollBar); 67 DISALLOW_COPY_AND_ASSIGN(NativeScrollBar);
68 }; 68 };
69 69
70 } // namespace views 70 } // namespace views
71 71
72 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ 72 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_
OLDNEW
« no previous file with comments | « ui/views/controls/scrollbar/base_scroll_bar.cc ('k') | ui/views/controls/scrollbar/native_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698