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
3// found in the LICENSE file.
4
5#ifndef ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_
6#define ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_
7
8#include "ash/ash_export.h"
9#include "base/basictypes.h"
10#include "base/compiler_specific.h"
11#include "ui/events/event_handler.h"
12
13namespace ash {
14
15class SystemModalContainerEventFilterDelegate;
16
17class ASH_EXPORT SystemModalContainerEventFilter : public ui::EventHandler {
18 public:
19  explicit SystemModalContainerEventFilter(
20      SystemModalContainerEventFilterDelegate* delegate);
21  virtual ~SystemModalContainerEventFilter();
22
23  // Overridden from ui::EventHandler:
24  virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
25  virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
26
27 private:
28  SystemModalContainerEventFilterDelegate* delegate_;
29
30  DISALLOW_COPY_AND_ASSIGN(SystemModalContainerEventFilter);
31};
32
33}  // namespace ash
34
35#endif  // ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_
36