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

Side by Side Diff: ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.h

Issue 802473003: Fix references to ui/gfx headers in a*/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 #ifndef ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_X11_H_ 5 #ifndef ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_X11_H_
6 #define ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_X11_H_ 6 #define ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_X11_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h" 11 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "ui/events/platform/platform_event_observer.h" 13 #include "ui/events/platform/platform_event_observer.h"
14 #include "ui/gfx/point.h" 14 #include "ui/gfx/geometry/point.h"
15 15
16 namespace ash { 16 namespace ash {
17 17
18 // Identifies which input devices are internal and provides a helper function to 18 // Identifies which input devices are internal and provides a helper function to
19 // test if an input event came from an internal device. 19 // test if an input event came from an internal device.
20 class ScopedDisableInternalMouseAndKeyboardX11 20 class ScopedDisableInternalMouseAndKeyboardX11
21 : public ScopedDisableInternalMouseAndKeyboard, 21 : public ScopedDisableInternalMouseAndKeyboard,
22 public ui::PlatformEventObserver { 22 public ui::PlatformEventObserver {
23 public: 23 public:
24 ScopedDisableInternalMouseAndKeyboardX11(); 24 ScopedDisableInternalMouseAndKeyboardX11();
(...skipping 11 matching lines...) Expand all
36 // Tracks the last known mouse cursor location caused before blocking the 36 // Tracks the last known mouse cursor location caused before blocking the
37 // internal touchpad or caused by an external mouse. 37 // internal touchpad or caused by an external mouse.
38 gfx::Point last_mouse_location_; 38 gfx::Point last_mouse_location_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(ScopedDisableInternalMouseAndKeyboardX11); 40 DISALLOW_COPY_AND_ASSIGN(ScopedDisableInternalMouseAndKeyboardX11);
41 }; 41 };
42 42
43 } // namespace ash 43 } // namespace ash
44 44
45 #endif // ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_X11_H_ 45 #endif // ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_X11_H_
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_state.cc ('k') | ash/wm/overview/scoped_transform_overview_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698