Index: ui/gl/gl_surface_glx.h |
diff --git a/ui/gl/gl_surface_glx.h b/ui/gl/gl_surface_glx.h |
index 03c127a4a8fca9007b089efb37d9100ff113e016..93f7da72a1853393d73a476acaefe7d6d894b97e 100644 |
--- a/ui/gl/gl_surface_glx.h |
+++ b/ui/gl/gl_surface_glx.h |
@@ -11,7 +11,6 @@ |
#include "base/compiler_specific.h" |
#include "base/macros.h" |
-#include "ui/events/platform/platform_event_dispatcher.h" |
#include "ui/gfx/geometry/size.h" |
#include "ui/gfx/native_widget_types.h" |
#include "ui/gfx/vsync_provider.h" |
@@ -52,8 +51,7 @@ class GL_EXPORT GLSurfaceGLX : public GLSurface { |
}; |
// A surface used to render to a view. |
-class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX, |
- public ui::PlatformEventDispatcher { |
+class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX { |
public: |
explicit NativeViewGLSurfaceGLX(gfx::AcceleratedWidget window); |
@@ -75,14 +73,22 @@ class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX, |
protected: |
~NativeViewGLSurfaceGLX() override; |
+ // Handle registering and unregistering for Expose events. |
+ virtual void RegisterEvents() = 0; |
+ virtual void UnregisterEvents() = 0; |
+ |
+ // Forwards Expose event to child window. |
+ void ForwardExposeEvent(XEvent* xevent); |
+ |
+ // Checks if event is Expose for child window. |
+ bool CanHandleEvent(XEvent* xevent); |
+ |
+ gfx::AcceleratedWidget window() const { return window_; } |
+ |
private: |
// The handle for the drawable to make current or swap. |
GLXDrawable GetDrawableHandle() const; |
- // PlatformEventDispatcher implementation |
- bool CanDispatchEvent(const ui::PlatformEvent& event) override; |
- uint32_t DispatchEvent(const ui::PlatformEvent& event) override; |
- |
// Window passed in at creation. Always valid. |
gfx::AcceleratedWidget parent_window_; |