Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: ui/compositor/test/test_compositor_host.h

Issue 285373012: Temporarily adds another constructor to Compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweak Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 16
16 class TestCompositorHost { 17 class TestCompositorHost {
17 public: 18 public:
18 virtual ~TestCompositorHost() {} 19 virtual ~TestCompositorHost() {}
19 20
20 // Creates a new TestCompositorHost. The caller owns the returned value. 21 // Creates a new TestCompositorHost. The caller owns the returned value.
21 static TestCompositorHost* Create(const gfx::Rect& bounds); 22 static TestCompositorHost* Create(const gfx::Rect& bounds,
23 ui::ContextFactory* context_factory);
22 24
23 // Shows the TestCompositorHost. 25 // Shows the TestCompositorHost.
24 virtual void Show() = 0; 26 virtual void Show() = 0;
25 27
26 virtual Compositor* GetCompositor() = 0; 28 virtual Compositor* GetCompositor() = 0;
27 }; 29 };
28 30
29 } // namespace ui 31 } // namespace ui
30 32
31 #endif // UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_ 33 #endif // UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_
OLDNEW
« no previous file with comments | « ui/compositor/test/context_factories_for_test.cc ('k') | ui/compositor/test/test_compositor_host_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698