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

Unified Diff: ui/ozone/public/input_controller.h

Issue 806693009: Port ScopedDisableInternalMouseAndKeyboardX11 to Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: ui/ozone/public/input_controller.h
diff --git a/ui/ozone/public/input_controller.h b/ui/ozone/public/input_controller.h
index ee33560fc57d08a664c53a858795d9432d91750b..06ab02f6b46fdac84a7b5a65d8cb724017acff3e 100644
--- a/ui/ozone/public/input_controller.h
+++ b/ui/ozone/public/input_controller.h
@@ -5,8 +5,11 @@
#ifndef UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_
#define UI_OZONE_PUBLIC_INPUT_CONTROLLER_H_
+#include <set>
+
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/ozone/ozone_export.h"
namespace ui {
@@ -25,6 +28,19 @@ class OZONE_EXPORT InputController {
virtual bool HasMouse() = 0;
virtual bool HasTouchpad() = 0;
+ // Disables the internal touchpad.
+ virtual void DisableInternalTouchpad() = 0;
+
+ // Enables the internal touchpad.
+ virtual void EnableInternalTouchpad() = 0;
+
+ // Disables all keys on the internal keyboard except |excepted_keys|.
+ virtual void DisableInternalKeyboardExceptKeys(
+ scoped_ptr<std::set<KeyboardCode>> excepted_keys) = 0;
+
+ // Enables all keys on the internal keyboard.
+ virtual void EnableInternalKeyboard() = 0;
+
// Functions for changing device settings.
//
// See c/b/c/system/input_device_settings.h for more context.

Powered by Google App Engine
This is Rietveld 408576698