| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TOPLEVEL_WINDOW_EVENT_FILTER_H_ | 5 #ifndef ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ |
| 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ | 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "ui/aura/event_filter.h" | 12 #include "ui/aura/event_filter.h" |
| 13 #include "ash/ash_export.h" | 13 #include "ash/ash_export.h" |
| 14 #include "ui/gfx/point.h" | 14 #include "ui/gfx/point.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 16 | 16 |
| 17 namespace aura { | 17 namespace aura { |
| 18 class LocatedEvent; | 18 class LocatedEvent; |
| 19 class MouseEvent; | 19 class MouseEvent; |
| 20 class Window; | 20 class Window; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace aura_shell { | 23 namespace ash { |
| 24 | 24 |
| 25 class ASH_EXPORT ToplevelWindowEventFilter : public aura::EventFilter { | 25 class ASH_EXPORT ToplevelWindowEventFilter : public aura::EventFilter { |
| 26 public: | 26 public: |
| 27 explicit ToplevelWindowEventFilter(aura::Window* owner); | 27 explicit ToplevelWindowEventFilter(aura::Window* owner); |
| 28 virtual ~ToplevelWindowEventFilter(); | 28 virtual ~ToplevelWindowEventFilter(); |
| 29 | 29 |
| 30 // Overridden from aura::EventFilter: | 30 // Overridden from aura::EventFilter: |
| 31 virtual bool PreHandleKeyEvent(aura::Window* target, | 31 virtual bool PreHandleKeyEvent(aura::Window* target, |
| 32 aura::KeyEvent* event) OVERRIDE; | 32 aura::KeyEvent* event) OVERRIDE; |
| 33 virtual bool PreHandleMouseEvent(aura::Window* target, | 33 virtual bool PreHandleMouseEvent(aura::Window* target, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // Set of touch ids currently pressed. | 97 // Set of touch ids currently pressed. |
| 98 std::set<int> pressed_touch_ids_; | 98 std::set<int> pressed_touch_ids_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventFilter); | 100 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventFilter); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace aura | 103 } // namespace aura |
| 104 | 104 |
| 105 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ | 105 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ |
| OLD | NEW |