OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
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_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h" | |
10 #include "base/macros.h" | |
11 | |
12 namespace ash { | |
13 | |
14 // Disables the internal mouse and keyboard for the duration of the class' | |
15 // lifetime. | |
16 class ASH_EXPORT ScopedDisableInternalMouseAndKeyboardOzone | |
17 : public ScopedDisableInternalMouseAndKeyboard { | |
18 public: | |
19 ScopedDisableInternalMouseAndKeyboardOzone(); | |
20 ~ScopedDisableInternalMouseAndKeyboardOzone() override; | |
21 | |
22 private: | |
23 // If the touch pad is already disabled we ignore re-enabling it in the | |
24 // destructor. | |
25 bool should_ignore_touch_pad_ = false; | |
26 | |
27 DISALLOW_COPY_AND_ASSIGN(ScopedDisableInternalMouseAndKeyboardOzone); | |
28 }; | |
29 | |
30 } // namespace ash | |
31 | |
32 #endif // ASH_WM_MAXIMIZE_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_OZONE
_H_ | |
OLD | NEW |