Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / browser / chromeos / login / ui / input_events_blocker.h
blob6e92eb5cb1590da12f1de129b1691cc34597b170
1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_INPUT_EVENTS_BLOCKER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_INPUT_EVENTS_BLOCKER_H_
8 #include "base/compiler_specific.h"
9 #include "ui/events/event_handler.h"
11 namespace chromeos {
13 // A simple input events blocker that just makes device unresponsive.
14 // Should be used only for a (very) short time lock as it's confusing to the
15 // user.
16 class InputEventsBlocker : public ui::EventHandler {
17 public:
18 InputEventsBlocker();
19 ~InputEventsBlocker() override;
21 void OnKeyEvent(ui::KeyEvent* event) override;
22 void OnMouseEvent(ui::MouseEvent* event) override;
23 void OnTouchEvent(ui::TouchEvent* event) override;
24 void OnGestureEvent(ui::GestureEvent* event) override;
26 private:
27 DISALLOW_COPY_AND_ASSIGN(InputEventsBlocker);
30 } // namespace chromeos
32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_INPUT_EVENTS_BLOCKER_H_