Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Side by Side Diff: chrome/browser/chromeos/login/input_events_blocker.h

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_LOGIN_INPUT_EVENTS_BLOCKER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_INPUT_EVENTS_BLOCKER_H_
7
8 #include "base/compiler_specific.h"
9 #include "ui/events/event_handler.h"
10
11 namespace chromeos {
12
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 virtual ~InputEventsBlocker();
20
21 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
22 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
23 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
24 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(InputEventsBlocker);
28 };
29
30 } // namespace chromeos
31
32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_INPUT_EVENTS_BLOCKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/help_app_launcher.h ('k') | chrome/browser/chromeos/login/input_events_blocker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698