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

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

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 #include "chrome/browser/chromeos/login/input_events_blocker.h"
6
7 #include "ash/shell.h"
8 #include "base/logging.h"
9 #include "ui/events/event.h"
10
11 namespace chromeos {
12
13 InputEventsBlocker::InputEventsBlocker() {
14 ash::Shell::GetInstance()->PrependPreTargetHandler(this);
15 VLOG(1) << "InputEventsBlocker " << this << " created.";
16 }
17
18 InputEventsBlocker::~InputEventsBlocker() {
19 ash::Shell::GetInstance()->RemovePreTargetHandler(this);
20 VLOG(1) << "InputEventsBlocker " << this << " destroyed.";
21 }
22
23 void InputEventsBlocker::OnKeyEvent(ui::KeyEvent* event) {
24 event->StopPropagation();
25 }
26
27 void InputEventsBlocker::OnMouseEvent(ui::MouseEvent* event) {
28 event->StopPropagation();
29 }
30
31 void InputEventsBlocker::OnTouchEvent(ui::TouchEvent* event) {
32 event->StopPropagation();
33 }
34
35 void InputEventsBlocker::OnGestureEvent(ui::GestureEvent* event) {
36 event->StopPropagation();
37 }
38
39 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/input_events_blocker.h ('k') | chrome/browser/chromeos/login/keyboard_driven_oobe_key_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698