blob: 2855b9ed62a932623e9bfe62ef33fee32f083b9a [file] [log] [blame]
// Copyright (c) 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 blink {
struct WebCursorInfo;
struct WebRect;
} // namespace blink
namespace cc {
class Layer;
namespace content {
// This class is like a lightweight WebPluginContainer for fullscreen PPAPI
// plugins, that only handles painting.
class FullscreenContainer {
// Invalidates the full plugin region.
virtual void Invalidate() = 0;
// Invalidates a partial region of the plugin.
virtual void InvalidateRect(const blink::WebRect&) = 0;
// Scrolls a partial region of the plugin in the given direction.
virtual void ScrollRect(int dx, int dy, const blink::WebRect&) = 0;
// Destroys the fullscreen window. This also destroys the FullscreenContainer
// instance.
virtual void Destroy() = 0;
// Notifies the container that the mouse cursor has changed.
virtual void PepperDidChangeCursor(const blink::WebCursorInfo& cursor) = 0;
virtual void SetLayer(cc::Layer* layer) = 0;
virtual ~FullscreenContainer() {}
} // namespace content