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

Side by Side Diff: ui/aura/device_list_updater_aurax11.cc

Issue 10895020: Merge aura::DispatcherLinux into base::MessagePumpAuraX11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win_aura Created 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 "ui/aura/device_list_updater_aurax11.h"
6
7 #include <X11/extensions/XInput2.h>
8
9 #include "ui/base/events.h"
10
11 namespace aura {
12
13 DeviceListUpdaterAuraX11::DeviceListUpdaterAuraX11() {}
14
15 DeviceListUpdaterAuraX11::~DeviceListUpdaterAuraX11() {}
16
17 base::EventStatus DeviceListUpdaterAuraX11::WillProcessEvent(
18 const base::NativeEvent& event) {
19 // XI_HierarchyChanged events are special. There is no window associated with
20 // these events. So process them directly from here.
21 if (event->type == GenericEvent &&
22 event->xgeneric.evtype == XI_HierarchyChanged) {
23 ui::UpdateDeviceList();
24 return base::EVENT_HANDLED;
sadrul 2012/08/29 16:01:25 I am not sure if returning _HANDLED here is OK. Th
25 }
26
27 return base::EVENT_CONTINUE;
28 }
29
30 void DeviceListUpdaterAuraX11::DidProcessEvent(const base::NativeEvent& event) {
31 }
32
33 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698