| OLD | NEW |
| 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_EVENTS_EVENT_HANDLER_H_ | 5 #ifndef UI_EVENTS_EVENT_HANDLER_H_ |
| 6 #define UI_EVENTS_EVENT_HANDLER_H_ | 6 #define UI_EVENTS_EVENT_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stack> | 8 #include <stack> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void OnMouseEvent(MouseEvent* event); | 42 virtual void OnMouseEvent(MouseEvent* event); |
| 43 | 43 |
| 44 virtual void OnScrollEvent(ScrollEvent* event); | 44 virtual void OnScrollEvent(ScrollEvent* event); |
| 45 | 45 |
| 46 virtual void OnTouchEvent(TouchEvent* event); | 46 virtual void OnTouchEvent(TouchEvent* event); |
| 47 | 47 |
| 48 virtual void OnGestureEvent(GestureEvent* event); | 48 virtual void OnGestureEvent(GestureEvent* event); |
| 49 | 49 |
| 50 virtual void OnCancelMode(CancelModeEvent* event); | 50 virtual void OnCancelMode(CancelModeEvent* event); |
| 51 | 51 |
| 52 virtual void OnAccessibilityMouseEvent(MouseEvent* event); |
| 53 |
| 52 private: | 54 private: |
| 53 friend class EventDispatcher; | 55 friend class EventDispatcher; |
| 54 | 56 |
| 55 // EventDispatcher pushes itself on the top of this stack while dispatching | 57 // EventDispatcher pushes itself on the top of this stack while dispatching |
| 56 // events to this then pops itself off when done. | 58 // events to this then pops itself off when done. |
| 57 std::stack<EventDispatcher*> dispatchers_; | 59 std::stack<EventDispatcher*> dispatchers_; |
| 58 | 60 |
| 59 DISALLOW_COPY_AND_ASSIGN(EventHandler); | 61 DISALLOW_COPY_AND_ASSIGN(EventHandler); |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 typedef std::vector<EventHandler*> EventHandlerList; | 64 typedef std::vector<EventHandler*> EventHandlerList; |
| 63 | 65 |
| 64 } // namespace ui | 66 } // namespace ui |
| 65 | 67 |
| 66 #endif // UI_EVENTS_EVENT_HANDLER_H_ | 68 #endif // UI_EVENTS_EVENT_HANDLER_H_ |
| OLD | NEW |