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

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

Issue 269633005: Only block internal touchpad and allow external mice to continue working in maximize mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 6 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/maximize_mode/internal_input_device_list_x11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/internal_input_device_list.h
diff --git a/ash/wm/maximize_mode/internal_input_device_list.h b/ash/wm/maximize_mode/internal_input_device_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..ab8c86bcbc468654c63072fce95905b8049e961d
--- /dev/null
+++ b/ash/wm/maximize_mode/internal_input_device_list.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_H_
+#define ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_H_
+
+#include "ash/ash_export.h"
+#include "base/macros.h"
+
+namespace ui {
+class Event;
+}
+
+namespace ash {
+
+// Identifies which input devices are internal and provides a helper function to
+// test if an input event came from an internal device.
+class ASH_EXPORT InternalInputDeviceList {
+ public:
+ InternalInputDeviceList() {}
+ virtual ~InternalInputDeviceList() {}
+
+ virtual bool IsEventFromInternalDevice(const ui::Event* event) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InternalInputDeviceList);
+};
+
+} // namespace ash
+
+#endif // ASH_WM_MAXIMIZE_MODE_INTERNAL_INPUT_DEVICE_LIST_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/maximize_mode/internal_input_device_list_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698