summaryrefslogtreecommitdiffstats
path: root/ui/gfx/compositor/test_compositor_host.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-29 20:33:53 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-29 20:33:53 +0000
commitad72589169dcb25134e1aafef502680f8feab8e4 (patch)
tree083104f7f6d4d60363b54df434a9d0dffb342ab6 /ui/gfx/compositor/test_compositor_host.h
parentfa70c11b670acb36641bec22c8834b06d0b9c8dc (diff)
downloadchromium_src-ad72589169dcb25134e1aafef502680f8feab8e4.zip
chromium_src-ad72589169dcb25134e1aafef502680f8feab8e4.tar.gz
chromium_src-ad72589169dcb25134e1aafef502680f8feab8e4.tar.bz2
Adds support for point conversions to ui::Layer.
Also adds a skeleton for testing compositor API changes. BUG=none TEST=see unittest Review URL: http://codereview.chromium.org/7769001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98689 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/compositor/test_compositor_host.h')
-rw-r--r--ui/gfx/compositor/test_compositor_host.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/ui/gfx/compositor/test_compositor_host.h b/ui/gfx/compositor/test_compositor_host.h
new file mode 100644
index 0000000..f0bdbaa
--- /dev/null
+++ b/ui/gfx/compositor/test_compositor_host.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 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 UI_GFX_COMPOSITOR_TEST_COMPOSITOR_HOST_H_
+#define UI_GFX_COMPOSITOR_TEST_COMPOSITOR_HOST_H_
+#pragma once
+
+#include "base/message_loop.h"
+#include "ui/gfx/native_widget_types.h"
+
+namespace gfx {
+class Rect;
+class Size;
+}
+
+namespace ui {
+
+class Compositor;
+
+class TestCompositorHost : public MessageLoop::Dispatcher {
+ public:
+ virtual ~TestCompositorHost() {}
+
+ // Creates a new TestCompositorHost. The caller owns the returned value.
+ static TestCompositorHost* Create(const gfx::Rect& bounds);
+
+ // Shows the TestCompositorHost.
+ virtual void Show() = 0;
+
+ virtual ui::Compositor* GetCompositor() = 0;
+};
+
+} // namespace ui
+
+#endif // UI_GFX_COMPOSITOR_TEST_COMPOSITOR_HOST_H_