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

Unified Diff: ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h

Issue 1412623006: Developer Feature: Add Debug Accelerators to Toggle Touchscreen/Touchpad On or Off (CrOS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sadrul's comment Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h
diff --git a/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h b/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h
index 2376504fba25d696f250765d6c73d448d161e17c..6783fcb6d189874953cf00d5589c70bdefe674dd 100644
--- a/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h
+++ b/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h
@@ -19,6 +19,10 @@ class ScopedDisableInternalMouseAndKeyboardOzone
~ScopedDisableInternalMouseAndKeyboardOzone() override;
private:
+ // If the touch pad is already disabled we ignore re-enabling it in the
+ // destructor.
+ bool should_ignore_touch_pad_ = false;
+
DISALLOW_COPY_AND_ASSIGN(ScopedDisableInternalMouseAndKeyboardOzone);
};

Powered by Google App Engine
This is Rietveld 408576698