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

Unified Diff: chrome/browser/chromeos/xinput_hierarchy_changed_event_listener_aura.cc

Issue 8623005: aura: Add back XInputHierarchyChangedEventListener for aura and remove stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/xinput_hierarchy_changed_event_listener_aura.cc
diff --git a/chrome/browser/chromeos/xinput_hierarchy_changed_event_listener_aura.cc b/chrome/browser/chromeos/xinput_hierarchy_changed_event_listener_aura.cc
new file mode 100644
index 0000000000000000000000000000000000000000..16413488c01115af9d77fb88abea1b2d7e0cf596
--- /dev/null
+++ b/chrome/browser/chromeos/xinput_hierarchy_changed_event_listener_aura.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h"
+
+namespace chromeos {
+
+void XInputHierarchyChangedEventListener::Init() {
+ MessageLoopForUI::current()->AddObserver(this);
+}
+
+void XInputHierarchyChangedEventListener::StopImpl() {
+ MessageLoopForUI::current()->RemoveObserver(this);
+}
+
+base::EventStatus XInputHierarchyChangedEventListener::WillProcessEvent(
+ const base::NativeEvent& event) {
+ // There may be multiple listeners for the XI_HierarchyChanged event. So
+ // always return EVENT_CONTINUE to make sure all the listeners receive the
+ // event.
+ ProcessedXEvent(event);
+ return base::EVENT_CONTINUE;
+}
+
+void XInputHierarchyChangedEventListener::DidProcessEvent(
+ const base::NativeEvent& event) {
+}
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698