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

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: Fix actions.xml. Created 5 years, 2 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 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..75486967c69521d757a05cebfc9e4be536d213ac 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_;
oshima 2015/10/29 23:38:43 you may initialize inline. (= false)
afakhry 2015/10/30 05:18:03 Done.
+
DISALLOW_COPY_AND_ASSIGN(ScopedDisableInternalMouseAndKeyboardOzone);
};

Powered by Google App Engine
This is Rietveld 408576698