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

Side by Side Diff: ash/wm/tablet_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc

Issue 2906803002: Rename MaximizeMode to TabletMode (Closed)
Patch Set: updated filter Created 3 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698