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

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: Move internal device tracking to a separate class with only an X11 implementation. 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 #ifndef ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_
2 #define ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_
3
4 #include <set>
5
6 #include "ash/wm/maximize_mode/internal_input_device_list.h"
7 #include "base/macros.h"
8
9 namespace ui {
10 class Event;
11 }
12
13 namespace ash {
14
15 // Identifies which input devices are internal and provides a helper function to
16 // test if an input event came from an internal device.
17 class InternalInputDeviceListX11 : public InternalInputDeviceList {
18 public:
19 InternalInputDeviceListX11();
20 virtual ~InternalInputDeviceListX11();
21
22 virtual bool IsEventFromInternalDevice(const ui::Event* event) OVERRIDE;
sadrul 2014/05/14 18:26:09 // InternalInputDeviceList:
flackr 2014/05/14 18:41:56 Done.
23
24 private:
25 // Tracks the device ids of internal input devices.
26 std::set<int> internal_device_ids_;
27
28 DISALLOW_COPY_AND_ASSIGN(InternalInputDeviceListX11);
29 };
30
31 } // namespace ash
32
33 #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