summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/pepper_fullscreen_container.h
blob: 5f675381cb2a3f4a16028130bb5ddb0927135caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_
#define WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_

namespace WebKit {
struct WebRect;
}  // namespace WebKit

namespace pepper {

// This class is like a lightweight WebPluginContainer for fullscreen pepper
// plugins, that only handles painting.
class FullscreenContainer {
 public:
  virtual ~FullscreenContainer() {}

  // Invalidates the full plugin region.
  virtual void Invalidate() = 0;

  // Invalidates a partial region of the plugin.
  virtual void InvalidateRect(const WebKit::WebRect&) = 0;

  // Destroys the fullscreen window. This also destroys the FullscreenContainer
  // instance.
  virtual void Destroy() = 0;
};

}  // namespace pepper

#endif  // WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_