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_DEFAULT_CONTAINER_EVENT_FILTER_H_ | 5 #ifndef ASH_WM_DEFAULT_CONTAINER_EVENT_FILTER_H_ |
6 #define ASH_WM_DEFAULT_CONTAINER_EVENT_FILTER_H_ | 6 #define ASH_WM_DEFAULT_CONTAINER_EVENT_FILTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/wm/toplevel_window_event_filter.h" | 9 #include "ash/wm/toplevel_window_event_filter.h" |
10 | 10 |
11 namespace aura { | 11 namespace aura { |
12 class MouseEvent; | 12 class MouseEvent; |
13 class Window; | 13 class Window; |
14 } | 14 } |
15 | 15 |
16 namespace aura_shell { | 16 namespace ash { |
17 namespace internal { | 17 namespace internal { |
18 | 18 |
19 class DefaultContainerEventFilter : public ToplevelWindowEventFilter { | 19 class DefaultContainerEventFilter : public ToplevelWindowEventFilter { |
20 public: | 20 public: |
21 explicit DefaultContainerEventFilter(aura::Window* owner); | 21 explicit DefaultContainerEventFilter(aura::Window* owner); |
22 virtual ~DefaultContainerEventFilter(); | 22 virtual ~DefaultContainerEventFilter(); |
23 | 23 |
24 // Overridden from ToplevelWindowEventFilter: | 24 // Overridden from ToplevelWindowEventFilter: |
25 virtual bool PreHandleMouseEvent(aura::Window* target, | 25 virtual bool PreHandleMouseEvent(aura::Window* target, |
26 aura::MouseEvent* event) OVERRIDE; | 26 aura::MouseEvent* event) OVERRIDE; |
(...skipping 16 matching lines...) Expand all Loading... |
43 void UpdateHoveredWindow(aura::Window* toplevel); | 43 void UpdateHoveredWindow(aura::Window* toplevel); |
44 | 44 |
45 DragState drag_state_; | 45 DragState drag_state_; |
46 // Top-level window under the mouse cursor. | 46 // Top-level window under the mouse cursor. |
47 aura::Window* hovered_window_; | 47 aura::Window* hovered_window_; |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(DefaultContainerEventFilter); | 49 DISALLOW_COPY_AND_ASSIGN(DefaultContainerEventFilter); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace internal | 52 } // namespace internal |
53 } // namespace aura_shell | 53 } // namespace ash |
54 | 54 |
55 #endif // ASH_WM_DEFAULT_CONTAINER_EVENT_FILTER_H_ | 55 #endif // ASH_WM_DEFAULT_CONTAINER_EVENT_FILTER_H_ |
OLD | NEW |