Chromium Code Reviews| Index: ash/wm/maximize_mode/internal_input_device_list_x11.h |
| diff --git a/ash/wm/maximize_mode/internal_input_device_list_x11.h b/ash/wm/maximize_mode/internal_input_device_list_x11.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..10e816d2ac34486454e17dc3d7892451dac9b009 |
| --- /dev/null |
| +++ b/ash/wm/maximize_mode/internal_input_device_list_x11.h |
| @@ -0,0 +1,33 @@ |
| +#ifndef ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_ |
| +#define ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_ |
| + |
| +#include <set> |
| + |
| +#include "ash/wm/maximize_mode/internal_input_device_list.h" |
| +#include "base/macros.h" |
| + |
| +namespace ui { |
| +class Event; |
| +} |
| + |
| +namespace ash { |
| + |
| +// Identifies which input devices are internal and provides a helper function to |
| +// test if an input event came from an internal device. |
| +class InternalInputDeviceListX11 : public InternalInputDeviceList { |
| + public: |
| + InternalInputDeviceListX11(); |
| + virtual ~InternalInputDeviceListX11(); |
| + |
| + virtual bool IsEventFromInternalDevice(const ui::Event* event) OVERRIDE; |
|
sadrul
2014/05/14 18:26:09
// InternalInputDeviceList:
flackr
2014/05/14 18:41:56
Done.
|
| + |
| + private: |
| + // Tracks the device ids of internal input devices. |
| + std::set<int> internal_device_ids_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(InternalInputDeviceListX11); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_ |