OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_ |
| 6 #define CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_ |
| 7 |
| 8 #include "ui/ozone/public/client_native_pixmap_manager.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 class TestClientNativePixmapManager : public ui::ClientNativePixmapManager { |
| 13 public: |
| 14 static TestClientNativePixmapManager* GetInstance(); |
| 15 ~TestClientNativePixmapManager() override; |
| 16 |
| 17 // ui::ClientNativePixmapManager: |
| 18 std::vector<Configuration> GetSupportedConfigurations() const override; |
| 19 scoped_ptr<ui::ClientNativePixmap> ImportClientNativePixmap( |
| 20 base::FileDescriptor handle, |
| 21 gfx::Size size, |
| 22 ui::NativePixmapFormat format, |
| 23 ui::NativePixmapUsage usage) override; |
| 24 |
| 25 private: |
| 26 friend struct TestClientNativePixmapManagerTrait; |
| 27 TestClientNativePixmapManager(); |
| 28 |
| 29 void Initialize(const base::FileDescriptor& virtual_device) override; |
| 30 |
| 31 scoped_ptr<ui::ClientNativePixmapManager> pixmap_manager_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(TestClientNativePixmapManager); |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_TEST_TEST_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_ |
OLD | NEW |