Index: ui/ozone/platform/dri/native_window_delegate_proxy.h |
diff --git a/ui/ozone/platform/dri/native_window_delegate_proxy.h b/ui/ozone/platform/dri/native_window_delegate_proxy.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f5fb411cea4cd18da7de0583ccbc5905fa34221e |
--- /dev/null |
+++ b/ui/ozone/platform/dri/native_window_delegate_proxy.h |
@@ -0,0 +1,36 @@ |
+// 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_NATIVE_WINDOW_DELEGATE_PROXY_H_ |
+#define UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_PROXY_H_ |
+ |
+#include "ui/ozone/platform/dri/native_window_delegate.h" |
+ |
+namespace ui { |
+ |
+class NativeWindowManager; |
+class GpuPlatformSupportHostGbm; |
+ |
+class NativeWindowDelegateProxy : public NativeWindowDelegate { |
alexst (slow to review)
2014/08/18 17:43:47
Please document this class a little bit, at least
dnicoara
2014/08/18 18:55:24
Done.
|
+ public: |
+ NativeWindowDelegateProxy(NativeWindowManager* window_manager, |
+ GpuPlatformSupportHostGbm* sender); |
+ virtual ~NativeWindowDelegateProxy(); |
+ |
+ // NativeWindowDelegate: |
+ virtual gfx::AcceleratedWidget GetWidget() OVERRIDE; |
+ virtual HardwareDisplayController* GetController() OVERRIDE; |
+ virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE; |
+ |
+ private: |
+ gfx::AcceleratedWidget widget_; |
+ NativeWindowManager* window_manager_; |
+ GpuPlatformSupportHostGbm* sender_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(NativeWindowDelegateProxy); |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_PROXY_H_ |