| Index: content/child/child_native_pixmap_manager_ozone.h
|
| diff --git a/content/child/child_native_pixmap_manager_ozone.h b/content/child/child_native_pixmap_manager_ozone.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a83fb16d8a2c7f06559f792f51f1e80c5df4f75a
|
| --- /dev/null
|
| +++ b/content/child/child_native_pixmap_manager_ozone.h
|
| @@ -0,0 +1,35 @@
|
| +// 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 CONTENT_CHILD_CHILD_NATIVE_PIXMAP_MANAGER_OZONE_H_
|
| +#define CONTENT_CHILD_CHILD_NATIVE_PIXMAP_MANAGER_OZONE_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "ui/ozone/public/native_pixmap_manager.h"
|
| +
|
| +namespace content {
|
| +
|
| +class ChildNativePixmapManager : public ui::NativePixmapManager {
|
| + public:
|
| + static ChildNativePixmapManager* GetInstance();
|
| + ~ChildNativePixmapManager() override;
|
| +
|
| + // ui::NativePixmapManager:
|
| + void Initialize(const base::FileDescriptor& device_fd) override;
|
| + std::vector<Configuration> GetSupportedNativePixmapConfigurations()
|
| + const override;
|
| +
|
| + private:
|
| + friend struct ChildNativePixmapManagerTrait;
|
| + ChildNativePixmapManager();
|
| +
|
| + scoped_ptr<ui::NativePixmapManager> pixmap_manager_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ChildNativePixmapManager);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_CHILD_CHILD_NATIVE_PIXMAP_MANAGER_OZONE_H_
|
|
|