Chromium Code Reviews| 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 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.h" | 5 #include "ash/wm/tablet_mode/scoped_disable_internal_mouse_and_keyboard_x11.h" |
| 6 | 6 |
| 7 #include <X11/Xlib.h> | |
|
Mr4D (OOO till 08-26)
2017/05/26 00:33:34
Ha - funny. Is the sorting case sensitive?
| |
| 7 #include <X11/extensions/XInput2.h> | 8 #include <X11/extensions/XInput2.h> |
| 8 #include <X11/Xlib.h> | |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <utility> | 12 #include <utility> |
| 13 | 13 |
| 14 #include "ash/display/window_tree_host_manager.h" | 14 #include "ash/display/window_tree_host_manager.h" |
| 15 #include "ash/shell.h" | 15 #include "ash/shell.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "ui/aura/client/cursor_client.h" | 17 #include "ui/aura/client/cursor_client.h" |
| 18 #include "ui/aura/client/screen_position_client.h" | 18 #include "ui/aura/client/screen_position_client.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 // blocked. Move the mouse cursor back to its last known location resulting | 156 // blocked. Move the mouse cursor back to its last known location resulting |
| 157 // from an external mouse to prevent the internal touchpad from moving it. | 157 // from an external mouse to prevent the internal touchpad from moving it. |
| 158 SetMouseLocationInScreen(last_mouse_location_); | 158 SetMouseLocationInScreen(last_mouse_location_); |
| 159 } else { | 159 } else { |
| 160 // Track the last location seen from an external mouse event. | 160 // Track the last location seen from an external mouse event. |
| 161 last_mouse_location_ = GetMouseLocationInScreen(); | 161 last_mouse_location_ = GetMouseLocationInScreen(); |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 } // namespace ash | 165 } // namespace ash |
| OLD | NEW |