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

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

Issue 2905383003: (fix landed) Reland of name MaximizeMode to TabletMode (Closed)
Patch Set: Created 3 years, 7 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/tablet_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h
diff --git a/ash/wm/tablet_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h b/ash/wm/tablet_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..9bd307c50d0b2efd0aa0a1e801194c13b5c8bf51
--- /dev/null
+++ b/ash/wm/tablet_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_WM_TABLET_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_OZONE_H_
+#define ASH_WM_TABLET_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_OZONE_H_
+
+#include "ash/ash_export.h"
+#include "ash/wm/tablet_mode/scoped_disable_internal_mouse_and_keyboard.h"
+#include "base/macros.h"
+
+namespace ash {
+
+// Disables the internal mouse and keyboard for the duration of the class'
+// lifetime.
+class ASH_EXPORT ScopedDisableInternalMouseAndKeyboardOzone
+ : public ScopedDisableInternalMouseAndKeyboard {
+ public:
+ 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);
+};
+
+} // namespace ash
+
+#endif // ASH_WM_TABLET_MODE_SCOPED_DISABLE_INTERNAL_MOUSE_AND_KEYBOARD_OZONE_H_

Powered by Google App Engine
This is Rietveld 408576698