| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_ | 5 #ifndef UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_ |
| 6 #define UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_ | 6 #define UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_ |
| 7 | 7 |
| 8 namespace gfx { | 8 namespace gfx { |
| 9 class Rect; | 9 class Rect; |
| 10 } | 10 } |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 | 13 |
| 14 class Compositor; | 14 class Compositor; |
| 15 class ContextFactory; | 15 class ContextFactory; |
| 16 class ContextFactoryPrivate; |
| 16 | 17 |
| 17 class TestCompositorHost { | 18 class TestCompositorHost { |
| 18 public: | 19 public: |
| 19 virtual ~TestCompositorHost() {} | 20 virtual ~TestCompositorHost() {} |
| 20 | 21 |
| 21 // Creates a new TestCompositorHost. The caller owns the returned value. | 22 // Creates a new TestCompositorHost. The caller owns the returned value. |
| 22 static TestCompositorHost* Create(const gfx::Rect& bounds, | 23 static TestCompositorHost* Create( |
| 23 ui::ContextFactory* context_factory); | 24 const gfx::Rect& bounds, |
| 25 ui::ContextFactory* context_factory, |
| 26 ui::ContextFactoryPrivate* context_factory_private); |
| 24 | 27 |
| 25 // Shows the TestCompositorHost. Must only be called once. | 28 // Shows the TestCompositorHost. Must only be called once. |
| 26 virtual void Show() = 0; | 29 virtual void Show() = 0; |
| 27 | 30 |
| 28 virtual Compositor* GetCompositor() = 0; | 31 virtual Compositor* GetCompositor() = 0; |
| 29 }; | 32 }; |
| 30 | 33 |
| 31 } // namespace ui | 34 } // namespace ui |
| 32 | 35 |
| 33 #endif // UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_ | 36 #endif // UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_ |
| OLD | NEW |