| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_ | 5 #ifndef ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_ |
| 6 #define ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_ | 6 #define ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" |
| 10 #include "ash/wm/maximize_mode/internal_input_device_list.h" | 11 #include "ash/wm/maximize_mode/internal_input_device_list.h" |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 | 13 |
| 13 namespace ui { | |
| 14 class Event; | |
| 15 } | |
| 16 | |
| 17 namespace ash { | 14 namespace ash { |
| 18 | 15 |
| 19 // Identifies which input devices are internal and provides a helper function to | 16 // Identifies which input devices are internal and provides a helper function to |
| 20 // test if an input event came from an internal device. | 17 // test if an input event came from an internal device. |
| 21 class InternalInputDeviceListX11 : public InternalInputDeviceList { | 18 class ASH_EXPORT InternalInputDeviceListX11 : public InternalInputDeviceList { |
| 22 public: | 19 public: |
| 23 InternalInputDeviceListX11(); | 20 InternalInputDeviceListX11(); |
| 24 virtual ~InternalInputDeviceListX11(); | 21 virtual ~InternalInputDeviceListX11(); |
| 25 | 22 |
| 26 // InternalInputDeviceList: | 23 // InternalInputDeviceList: |
| 27 virtual bool IsEventFromInternalDevice(const ui::Event* event) OVERRIDE; | 24 virtual bool IsEventFromInternalDevice( |
| 25 const ui::PlatformEvent& event) OVERRIDE; |
| 28 | 26 |
| 29 private: | 27 protected: |
| 30 // Tracks the device ids of internal input devices. | 28 // Tracks the device ids of internal input devices. |
| 31 std::set<int> internal_device_ids_; | 29 std::set<int> internal_device_ids_; |
| 32 | 30 |
| 31 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(InternalInputDeviceListX11); | 32 DISALLOW_COPY_AND_ASSIGN(InternalInputDeviceListX11); |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 } // namespace ash | 35 } // namespace ash |
| 37 | 36 |
| 38 #endif // ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_ | 37 #endif // ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_X11_H_ |
| OLD | NEW |