OLD | NEW |
1 // Copyright (c) 2011 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 ASH_WM_MODALITY_EVENT_FILTER_H_ | 5 #ifndef ASH_WM_MODALITY_EVENT_FILTER_H_ |
6 #define ASH_WM_MODALITY_EVENT_FILTER_H_ | 6 #define ASH_WM_MODALITY_EVENT_FILTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/aura/event_filter.h" | 10 #include "ui/aura/event_filter.h" |
11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
(...skipping 10 matching lines...) Expand all Loading... |
22 virtual ~ModalityEventFilter(); | 22 virtual ~ModalityEventFilter(); |
23 | 23 |
24 // Overridden from aura::EventFilter: | 24 // Overridden from aura::EventFilter: |
25 virtual bool PreHandleKeyEvent(aura::Window* target, | 25 virtual bool PreHandleKeyEvent(aura::Window* target, |
26 aura::KeyEvent* event) OVERRIDE; | 26 aura::KeyEvent* event) OVERRIDE; |
27 virtual bool PreHandleMouseEvent(aura::Window* target, | 27 virtual bool PreHandleMouseEvent(aura::Window* target, |
28 aura::MouseEvent* event) OVERRIDE; | 28 aura::MouseEvent* event) OVERRIDE; |
29 virtual ui::TouchStatus PreHandleTouchEvent( | 29 virtual ui::TouchStatus PreHandleTouchEvent( |
30 aura::Window* target, | 30 aura::Window* target, |
31 aura::TouchEvent* event) OVERRIDE; | 31 aura::TouchEvent* event) OVERRIDE; |
| 32 virtual ui::GestureStatus PreHandleGestureEvent( |
| 33 aura::Window* target, |
| 34 aura::GestureEvent* event) OVERRIDE; |
32 | 35 |
33 private: | 36 private: |
34 ModalityEventFilterDelegate* delegate_; | 37 ModalityEventFilterDelegate* delegate_; |
35 | 38 |
36 DISALLOW_COPY_AND_ASSIGN(ModalityEventFilter); | 39 DISALLOW_COPY_AND_ASSIGN(ModalityEventFilter); |
37 }; | 40 }; |
38 | 41 |
39 } // namespace internal | 42 } // namespace internal |
40 } // namespace ash | 43 } // namespace ash |
41 | 44 |
42 #endif // ASH_WM_MODALITY_EVENT_FILTER_H_ | 45 #endif // ASH_WM_MODALITY_EVENT_FILTER_H_ |
OLD | NEW |