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

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

Issue 469343003: [Ozone-GBM] Pumb DriWindowDelegate throughout the platform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 4 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: ui/ozone/platform/dri/dri_window.h
diff --git a/ui/ozone/platform/dri/dri_window.h b/ui/ozone/platform/dri/dri_window.h
index d13a5e6316ffe6fbf6335da54b3e6b7d531f4975..7e4fd0e1809721ad4498a079a0dc327d188cb5ba 100644
--- a/ui/ozone/platform/dri/dri_window.h
+++ b/ui/ozone/platform/dri/dri_window.h
@@ -5,6 +5,7 @@
#ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_
#define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_
+#include "base/memory/scoped_ptr.h"
#include "ui/events/platform/platform_event_dispatcher.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/native_widget_types.h"
@@ -12,7 +13,7 @@
namespace ui {
-class DriSurfaceFactory;
+class DriWindowDelegate;
class EventFactoryEvdev;
class DriWindow : public PlatformWindow,
@@ -20,7 +21,7 @@ class DriWindow : public PlatformWindow,
public:
DriWindow(PlatformWindowDelegate* delegate,
const gfx::Rect& bounds,
- DriSurfaceFactory* surface_factory,
+ scoped_ptr<DriWindowDelegate> dri_window_delegate,
EventFactoryEvdev* event_factory);
virtual ~DriWindow();
@@ -47,6 +48,7 @@ class DriWindow : public PlatformWindow,
PlatformWindowDelegate* delegate_;
gfx::Rect bounds_;
gfx::AcceleratedWidget widget_;
+ scoped_ptr<DriWindowDelegate> dri_window_delegate_;
EventFactoryEvdev* event_factory_;
DISALLOW_COPY_AND_ASSIGN(DriWindow);

Powered by Google App Engine
This is Rietveld 408576698