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

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

Issue 542623002: Minimal support for OOBE/login for chrome-athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments resolved Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/ui/input_events_blocker.h" 5 #include "chrome/browser/chromeos/login/ui/input_events_blocker.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "ui/events/event.h" 9 #include "ui/events/event.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 InputEventsBlocker::InputEventsBlocker() { 13 InputEventsBlocker::InputEventsBlocker() {
14 #if !defined(USE_ATHENA)
14 ash::Shell::GetInstance()->PrependPreTargetHandler(this); 15 ash::Shell::GetInstance()->PrependPreTargetHandler(this);
oshima 2014/09/09 06:32:50 I assume we eventually need this?
Dmitry Polukhin 2014/09/10 20:30:23 It is part of supporting local switching, added li
16 #endif
15 VLOG(1) << "InputEventsBlocker " << this << " created."; 17 VLOG(1) << "InputEventsBlocker " << this << " created.";
16 } 18 }
17 19
18 InputEventsBlocker::~InputEventsBlocker() { 20 InputEventsBlocker::~InputEventsBlocker() {
21 #if !defined(USE_ATHENA)
19 ash::Shell::GetInstance()->RemovePreTargetHandler(this); 22 ash::Shell::GetInstance()->RemovePreTargetHandler(this);
23 #endif
20 VLOG(1) << "InputEventsBlocker " << this << " destroyed."; 24 VLOG(1) << "InputEventsBlocker " << this << " destroyed.";
21 } 25 }
22 26
23 void InputEventsBlocker::OnKeyEvent(ui::KeyEvent* event) { 27 void InputEventsBlocker::OnKeyEvent(ui::KeyEvent* event) {
24 event->StopPropagation(); 28 event->StopPropagation();
25 } 29 }
26 30
27 void InputEventsBlocker::OnMouseEvent(ui::MouseEvent* event) { 31 void InputEventsBlocker::OnMouseEvent(ui::MouseEvent* event) {
28 event->StopPropagation(); 32 event->StopPropagation();
29 } 33 }
30 34
31 void InputEventsBlocker::OnTouchEvent(ui::TouchEvent* event) { 35 void InputEventsBlocker::OnTouchEvent(ui::TouchEvent* event) {
32 event->StopPropagation(); 36 event->StopPropagation();
33 } 37 }
34 38
35 void InputEventsBlocker::OnGestureEvent(ui::GestureEvent* event) { 39 void InputEventsBlocker::OnGestureEvent(ui::GestureEvent* event) {
36 event->StopPropagation(); 40 event->StopPropagation();
37 } 41 }
38 42
39 } // namespace chromeos 43 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698