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

Side by Side Diff: ash/wm/maximize_mode/internal_input_device_list_x11.h

Issue 269633005: Only block internal touchpad and allow external mice to continue working in maximize mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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 2014 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 ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_
6 #define ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_
7
8 #include <set>
9
10 #include "ash/wm/maximize_mode/internal_input_device_list.h"
11 #include "base/macros.h"
12
13 namespace ui {
14 class Event;
15 }
16
17 namespace ash {
18
19 // Identifies which input devices are internal and provides a helper function to
20 // test if an input event came from an internal device.
21 class InternalInputDeviceListX11 : public InternalInputDeviceList {
22 public:
23 InternalInputDeviceListX11();
24 virtual ~InternalInputDeviceListX11();
25
26 // InternalInputDeviceList:
27 virtual bool IsEventFromInternalDevice(const ui::Event* event) OVERRIDE;
28
29 private:
30 // Tracks the device ids of internal input devices.
31 std::set<int> internal_device_ids_;
32
33 DISALLOW_COPY_AND_ASSIGN(InternalInputDeviceListX11);
34 };
35
36 } // namespace ash
37
38 #endif // ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/internal_input_device_list.h ('k') | ash/wm/maximize_mode/internal_input_device_list_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698