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

Unified Diff: ui/ozone/platform/dri/display_manager.h

Issue 611423002: [WIP][Ozone] Support external touchscreens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ozone-touchscreen
Patch Set: . Created 6 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
« no previous file with comments | « ui/ozone/platform/dri/BUILD.gn ('k') | ui/ozone/platform/dri/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/display_manager.h
diff --git a/ui/ozone/platform/dri/display_manager.h b/ui/ozone/platform/dri/display_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..97b514de009afa14bdca14a4747001c4df873ac0
--- /dev/null
+++ b/ui/ozone/platform/dri/display_manager.h
@@ -0,0 +1,38 @@
+// 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 UI_OZONE_PLATFORM_DRI_DISPLAY_MANAGER_H_
+#define UI_OZONE_PLATFORM_DRI_DISPLAY_MANAGER_H_
+
+#include <map>
+
+#include "base/macros.h"
+
+namespace ui {
+
+class DisplaySnapshot;
+
+class DisplayManager {
+ public:
+ DisplayManager();
+ ~DisplayManager();
+
+ void RegisterDisplay(DisplaySnapshot* display);
+ void UnregisterDisplay(DisplaySnapshot* display);
+
+ // Returns the display state for |display| or NULL if not found.
+ DisplaySnapshot* GetDisplay(int64_t display);
+
+ private:
+ typedef std::map<int64_t, DisplaySnapshot*> DisplayMap;
+
+ // Keeps a mapping between the display ID and a pointer to the display state.
+ DisplayMap display_map_;
+
+ DISALLOW_COPY_AND_ASSIGN(DisplayManager);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRI_DISPLAY_MANAGER_H_
« no previous file with comments | « ui/ozone/platform/dri/BUILD.gn ('k') | ui/ozone/platform/dri/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698