Chromium Code Reviews| Index: ui/ozone/platform/drm/mojo/drm_host_delegate.h |
| diff --git a/ui/ozone/platform/drm/mojo/drm_host_delegate.h b/ui/ozone/platform/drm/mojo/drm_host_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..84e2f53e219611c65d2d4e9c3e88420f8fbe60cd |
| --- /dev/null |
| +++ b/ui/ozone/platform/drm/mojo/drm_host_delegate.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2015 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_DRM_MOJO_DRM_HOST_DELEGATE_H_ |
| +#define UI_OZONE_PLATFORM_DRM_MOJO_DRM_HOST_DELEGATE_H_ |
| + |
| +#include "base/macros.h" |
| +#include "mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom.h" |
| +#include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h" |
| + |
| +namespace ui { |
| + |
| +class MojoDrmHostDelegate : public ui::DrmGpuPlatformSupportHostDelegate { |
| + public: |
| + MojoDrmHostDelegate(mojo::OzoneDrmGpu* ozone_drm_gpu); |
|
jamesr
2015/08/27 19:35:47
explicit, private below
cdotstout
2015/08/27 21:28:33
Done.
|
| + ~MojoDrmHostDelegate() override; |
| + |
| + // DrmGpuPlatformSupportHostDelegate. |
| + void CreateWindow(const gfx::AcceleratedWidget& widget) override; |
| + void WindowBoundsChanged(const gfx::AcceleratedWidget& widget, |
| + const gfx::Rect& bounds) override; |
| + void AddGraphicsDevice(const base::FilePath& path, |
| + const base::FileDescriptor& fd) override; |
| + bool RefreshNativeDisplays() override; |
| + bool ConfigureNativeDisplay(int64_t id, |
| + const ui::DisplayMode_Params& mode, |
| + const gfx::Point& originhost) override; |
| + |
| + private: |
| + mojo::OzoneDrmGpu* ozone_drm_gpu_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(MojoDrmHostDelegate); |
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif |