| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ |
| 7 | 7 |
| 8 namespace WebKit { | 8 namespace WebKit { |
| 9 struct WebRect; | 9 struct WebRect; |
| 10 } // namespace WebKit | 10 } // namespace WebKit |
| 11 | 11 |
| 12 namespace pepper { | 12 namespace webkit { |
| 13 namespace plugins { |
| 14 namespace ppapi { |
| 13 | 15 |
| 14 // This class is like a lightweight WebPluginContainer for fullscreen pepper | 16 // This class is like a lightweight WebPluginContainer for fullscreen PPAPI |
| 15 // plugins, that only handles painting. | 17 // plugins, that only handles painting. |
| 16 class FullscreenContainer { | 18 class FullscreenContainer { |
| 17 public: | 19 public: |
| 18 virtual ~FullscreenContainer() {} | 20 virtual ~FullscreenContainer() {} |
| 19 | 21 |
| 20 // Invalidates the full plugin region. | 22 // Invalidates the full plugin region. |
| 21 virtual void Invalidate() = 0; | 23 virtual void Invalidate() = 0; |
| 22 | 24 |
| 23 // Invalidates a partial region of the plugin. | 25 // Invalidates a partial region of the plugin. |
| 24 virtual void InvalidateRect(const WebKit::WebRect&) = 0; | 26 virtual void InvalidateRect(const WebKit::WebRect&) = 0; |
| 25 | 27 |
| 26 // Scrolls a partial region of the plugin in the given direction. | 28 // Scrolls a partial region of the plugin in the given direction. |
| 27 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect&) = 0; | 29 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect&) = 0; |
| 28 | 30 |
| 29 // Destroys the fullscreen window. This also destroys the FullscreenContainer | 31 // Destroys the fullscreen window. This also destroys the FullscreenContainer |
| 30 // instance. | 32 // instance. |
| 31 virtual void Destroy() = 0; | 33 virtual void Destroy() = 0; |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 } // namespace pepper | 36 } // namespace ppapi |
| 37 } // namespace plugins |
| 38 } // namespace webkit |
| 35 | 39 |
| 36 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FULLSCREEN_CONTAINER_H_ | 40 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ |
| OLD | NEW |