OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_PROXY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_PROXY_H_ |
| 7 |
| 8 #include "ui/ozone/platform/dri/native_window_delegate.h" |
| 9 |
| 10 namespace ui { |
| 11 |
| 12 class NativeWindowManager; |
| 13 class GpuPlatformSupportHostGbm; |
| 14 |
| 15 // This is used when running with a GPU process (or with the in-process GPU) to |
| 16 // IPC the native window configuration from the browser to the GPU. |
| 17 class NativeWindowDelegateProxy : public NativeWindowDelegate { |
| 18 public: |
| 19 NativeWindowDelegateProxy(NativeWindowManager* window_manager, |
| 20 GpuPlatformSupportHostGbm* sender); |
| 21 virtual ~NativeWindowDelegateProxy(); |
| 22 |
| 23 // NativeWindowDelegate: |
| 24 virtual gfx::AcceleratedWidget GetWidget() OVERRIDE; |
| 25 virtual HardwareDisplayController* GetController() OVERRIDE; |
| 26 virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE; |
| 27 |
| 28 private: |
| 29 gfx::AcceleratedWidget widget_; |
| 30 NativeWindowManager* window_manager_; |
| 31 GpuPlatformSupportHostGbm* sender_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(NativeWindowDelegateProxy); |
| 34 }; |
| 35 |
| 36 } // namespace ui |
| 37 |
| 38 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_DELEGATE_PROXY_H_ |
OLD | NEW |