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_INPUT_METHOD_EVENT_FILTER_ | 5 #ifndef ASH_WM_INPUT_METHOD_EVENT_FILTER_ |
6 #define ASH_WM_INPUT_METHOD_EVENT_FILTER_ | 6 #define ASH_WM_INPUT_METHOD_EVENT_FILTER_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
(...skipping 19 matching lines...) Expand all Loading... |
31 | 31 |
32 private: | 32 private: |
33 // Overridden from aura::EventFilter: | 33 // Overridden from aura::EventFilter: |
34 virtual bool PreHandleKeyEvent(aura::Window* target, | 34 virtual bool PreHandleKeyEvent(aura::Window* target, |
35 aura::KeyEvent* event) OVERRIDE; | 35 aura::KeyEvent* event) OVERRIDE; |
36 virtual bool PreHandleMouseEvent(aura::Window* target, | 36 virtual bool PreHandleMouseEvent(aura::Window* target, |
37 aura::MouseEvent* event) OVERRIDE; | 37 aura::MouseEvent* event) OVERRIDE; |
38 virtual ui::TouchStatus PreHandleTouchEvent( | 38 virtual ui::TouchStatus PreHandleTouchEvent( |
39 aura::Window* target, | 39 aura::Window* target, |
40 aura::TouchEvent* event) OVERRIDE; | 40 aura::TouchEvent* event) OVERRIDE; |
| 41 virtual ui::GestureStatus PreHandleGestureEvent( |
| 42 aura::Window* target, |
| 43 aura::GestureEvent* event) OVERRIDE; |
41 | 44 |
42 // Overridden from ui::internal::InputMethodDelegate. | 45 // Overridden from ui::internal::InputMethodDelegate. |
43 virtual void DispatchKeyEventPostIME(const base::NativeEvent& event) OVERRIDE; | 46 virtual void DispatchKeyEventPostIME(const base::NativeEvent& event) OVERRIDE; |
44 virtual void DispatchFabricatedKeyEventPostIME(ui::EventType type, | 47 virtual void DispatchFabricatedKeyEventPostIME(ui::EventType type, |
45 ui::KeyboardCode key_code, | 48 ui::KeyboardCode key_code, |
46 int flags) OVERRIDE; | 49 int flags) OVERRIDE; |
47 | 50 |
48 scoped_ptr<ui::InputMethod> input_method_; | 51 scoped_ptr<ui::InputMethod> input_method_; |
49 | 52 |
50 DISALLOW_COPY_AND_ASSIGN(InputMethodEventFilter); | 53 DISALLOW_COPY_AND_ASSIGN(InputMethodEventFilter); |
51 }; | 54 }; |
52 | 55 |
53 } // namespace internal | 56 } // namespace internal |
54 } // namespace ash | 57 } // namespace ash |
55 | 58 |
56 #endif // ASH_WM_INPUT_METHOD_EVENT_FILTER_ | 59 #endif // ASH_WM_INPUT_METHOD_EVENT_FILTER_ |
OLD | NEW |