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

Unified Diff: ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h

Issue 250793005: Refactor Udev device support in Ozone and add a DRM hotplug monitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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/ozone.gyp ('k') | ui/ozone/platform/dri/chromeos/native_display_delegate_dri.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h
diff --git a/ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h b/ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h
index db5b5eb2b7328c9ac2a6ac6540fe7d3fb31603e6..95de914d660f4bd2cff623ff32b30feff7181fbc 100644
--- a/ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h
+++ b/ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h
@@ -5,18 +5,23 @@
#ifndef UI_OZONE_PLATFORM_DRI_CHROMEOS_NATIVE_DISPLAY_DELEGATE_DRI_H_
#define UI_OZONE_PLATFORM_DRI_CHROMEOS_NATIVE_DISPLAY_DELEGATE_DRI_H_
+#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/observer_list.h"
#include "ui/display/types/chromeos/native_display_delegate.h"
+#include "ui/events/ozone/device/device_event_observer.h"
namespace ui {
+class DeviceManager;
class DisplaySnapshotDri;
class DriSurfaceFactory;
-class NativeDisplayDelegateDri : public NativeDisplayDelegate {
+class NativeDisplayDelegateDri
+ : public NativeDisplayDelegate, DeviceEventObserver {
public:
- NativeDisplayDelegateDri(DriSurfaceFactory* surface_factory);
+ NativeDisplayDelegateDri(DriSurfaceFactory* surface_factory,
+ DeviceManager* device_manager);
virtual ~NativeDisplayDelegateDri();
// NativeDisplayDelegate overrides:
@@ -46,8 +51,12 @@ class NativeDisplayDelegateDri : public NativeDisplayDelegate {
virtual void AddObserver(NativeDisplayObserver* observer) OVERRIDE;
virtual void RemoveObserver(NativeDisplayObserver* observer) OVERRIDE;
+ // DeviceEventObserver overrides:
+ virtual void OnDeviceEvent(const DeviceEvent& event) OVERRIDE;
+
private:
DriSurfaceFactory* surface_factory_; // Not owned.
+ DeviceManager* device_manager_; // Not owned.
ScopedVector<const DisplayMode> cached_modes_;
ScopedVector<DisplaySnapshotDri> cached_displays_;
ObserverList<NativeDisplayObserver> observers_;
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/dri/chromeos/native_display_delegate_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698