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

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

Issue 460093003: Disable core keyboard device as well when entering touchview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 ScopedDisableInternalMouseAndKeyboardX11(); 24 ScopedDisableInternalMouseAndKeyboardX11();
25 virtual ~ScopedDisableInternalMouseAndKeyboardX11(); 25 virtual ~ScopedDisableInternalMouseAndKeyboardX11();
26 26
27 // ui::PlatformEventObserver: 27 // ui::PlatformEventObserver:
28 virtual void WillProcessEvent(const ui::PlatformEvent& event) OVERRIDE; 28 virtual void WillProcessEvent(const ui::PlatformEvent& event) OVERRIDE;
29 virtual void DidProcessEvent(const ui::PlatformEvent& event) OVERRIDE; 29 virtual void DidProcessEvent(const ui::PlatformEvent& event) OVERRIDE;
30 private: 30 private:
31 int touchpad_device_id_; 31 int touchpad_device_id_;
32 int keyboard_device_id_; 32 int keyboard_device_id_;
33 int core_keyboard_device_id_;
33 34
34 // Tracks the last known mouse cursor location caused before blocking the 35 // Tracks the last known mouse cursor location caused before blocking the
35 // internal touchpad or caused by an external mouse. 36 // internal touchpad or caused by an external mouse.
36 gfx::Point last_mouse_location_; 37 gfx::Point last_mouse_location_;
37 38
38 DISALLOW_COPY_AND_ASSIGN(ScopedDisableInternalMouseAndKeyboardX11); 39 DISALLOW_COPY_AND_ASSIGN(ScopedDisableInternalMouseAndKeyboardX11);
39 }; 40 };
40 41
41 } // namespace ash 42 } // namespace ash
42 43
43 #endif // ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_X11_H_ 44 #endif // ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_X11_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698