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

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

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OZONE_H_ 5 #ifndef ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_OZONE_H_
6 #define ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_OZONE_H_ 6 #define ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_OZONE_H_
7 7
8 #include "ash/common/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard .h" 8 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 // Disables the internal mouse and keyboard for the duration of the class' 13 // Disables the internal mouse and keyboard for the duration of the class'
14 // lifetime. 14 // lifetime.
15 class ScopedDisableInternalMouseAndKeyboardOzone 15 class ScopedDisableInternalMouseAndKeyboardOzone
16 : public ScopedDisableInternalMouseAndKeyboard { 16 : public ScopedDisableInternalMouseAndKeyboard {
17 public: 17 public:
18 ScopedDisableInternalMouseAndKeyboardOzone(); 18 ScopedDisableInternalMouseAndKeyboardOzone();
19 ~ScopedDisableInternalMouseAndKeyboardOzone() override; 19 ~ScopedDisableInternalMouseAndKeyboardOzone() override;
20 20
21 private: 21 private:
22 // If the touch pad is already disabled we ignore re-enabling it in the 22 // If the touch pad is already disabled we ignore re-enabling it in the
23 // destructor. 23 // destructor.
24 bool should_ignore_touch_pad_ = false; 24 bool should_ignore_touch_pad_ = false;
25 25
26 DISALLOW_COPY_AND_ASSIGN(ScopedDisableInternalMouseAndKeyboardOzone); 26 DISALLOW_COPY_AND_ASSIGN(ScopedDisableInternalMouseAndKeyboardOzone);
27 }; 27 };
28 28
29 } // namespace ash 29 } // namespace ash
30 30
31 #endif // ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_OZONE _H_ 31 #endif // ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_OZONE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698