| 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 ASH_WM_OVERLAY_EVENT_FILTER_H_ | 5 #ifndef ASH_WM_OVERLAY_EVENT_FILTER_H_ |
| 6 #define ASH_WM_OVERLAY_EVENT_FILTER_H_ | 6 #define ASH_WM_OVERLAY_EVENT_FILTER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/shell_observer.h" | 9 #include "ash/shell_observer.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 11 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 12 #include "ui/events/event_handler.h" | 13 #include "ui/events/event_handler.h" |
| 13 | 14 |
| 14 namespace ash { | 15 namespace ash { |
| 15 | 16 |
| 16 // EventFilter for the "overlay window", which intercepts events before they are | 17 // EventFilter for the "overlay window", which intercepts events before they are |
| 17 // processed by the usual path (e.g. the partial screenshot UI, the keyboard | 18 // processed by the usual path (e.g. the partial screenshot UI, the keyboard |
| 18 // overlay). It does nothing the first time, but works when |Activate()| is | 19 // overlay). It does nothing the first time, but works when |Activate()| is |
| 19 // called. The main task of this event filter is just to stop propagation | 20 // called. The main task of this event filter is just to stop propagation |
| 20 // of any key events during activation, and also signal cancellation when keys | 21 // of any key events during activation, and also signal cancellation when keys |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 Delegate* delegate_; | 67 Delegate* delegate_; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(OverlayEventFilter); | 69 DISALLOW_COPY_AND_ASSIGN(OverlayEventFilter); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace ash | 72 } // namespace ash |
| 72 | 73 |
| 73 #endif // ASH_WM_OVERLAY_EVENT_FILTER_H_ | 74 #endif // ASH_WM_OVERLAY_EVENT_FILTER_H_ |
| OLD | NEW |