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

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

Issue 11138008: compositor: Reuse GetXDisplay() function from x11_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | ui/compositor/test/test_compositor_host_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 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 #include "base/message_loop.h"
9
10 namespace gfx { 8 namespace gfx {
11 class Rect; 9 class Rect;
12 } 10 }
13 11
14 namespace ui { 12 namespace ui {
15 13
16 class Compositor; 14 class Compositor;
17 15
18 class TestCompositorHost { 16 class TestCompositorHost {
19 public: 17 public:
20 virtual ~TestCompositorHost() {} 18 virtual ~TestCompositorHost() {}
21 19
22 // Creates a new TestCompositorHost. The caller owns the returned value. 20 // Creates a new TestCompositorHost. The caller owns the returned value.
23 static TestCompositorHost* Create(const gfx::Rect& bounds); 21 static TestCompositorHost* Create(const gfx::Rect& bounds);
24 22
25 // Shows the TestCompositorHost. 23 // Shows the TestCompositorHost.
26 virtual void Show() = 0; 24 virtual void Show() = 0;
27 25
28 virtual ui::Compositor* GetCompositor() = 0; 26 virtual Compositor* GetCompositor() = 0;
29 }; 27 };
30 28
31 } // namespace ui 29 } // namespace ui
32 30
33 #endif // UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_ 31 #endif // UI_COMPOSITOR_TEST_TEST_COMPOSITOR_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | ui/compositor/test/test_compositor_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698