Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ash / wm / system_modal_container_event_filter.h
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
13 namespace ash {
14
15 class SystemModalContainerEventFilterDelegate;
16
17 class ASH_EXPORT SystemModalContainerEventFilter : public ui::EventHandler {
18  public:
19   explicit SystemModalContainerEventFilter(
20       SystemModalContainerEventFilterDelegate* delegate);
21   ~SystemModalContainerEventFilter() override;
22
23   // Overridden from ui::EventHandler:
24   void OnKeyEvent(ui::KeyEvent* event) override;
25   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_