blob: 2fc1f16e193cb96cb33026abb96fb332e0fdbee1 [file] [log] [blame]
// Copyright 2012 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.
namespace gfx {
class Rect;
namespace ui {
class Compositor;
class ContextFactory;
class TestCompositorHost {
virtual ~TestCompositorHost() {}
// Creates a new TestCompositorHost. The caller owns the returned value.
static TestCompositorHost* Create(const gfx::Rect& bounds,
ui::ContextFactory* context_factory);
// Shows the TestCompositorHost. Must only be called once.
virtual void Show() = 0;
virtual Compositor* GetCompositor() = 0;
} // namespace ui