| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ |
| 7 | 7 |
| 8 #include "webkit/plugins/ppapi/plugin_delegate.h" | 8 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 9 | 9 |
| 10 class MouseLockDispatcher; |
| 11 |
| 10 namespace WebKit { | 12 namespace WebKit { |
| 11 struct WebCursorInfo; | 13 struct WebCursorInfo; |
| 12 struct WebRect; | 14 struct WebRect; |
| 13 } // namespace WebKit | 15 } // namespace WebKit |
| 14 | 16 |
| 15 namespace webkit { | 17 namespace webkit { |
| 16 namespace ppapi { | 18 namespace ppapi { |
| 17 | 19 |
| 18 // This class is like a lightweight WebPluginContainer for fullscreen PPAPI | 20 // This class is like a lightweight WebPluginContainer for fullscreen PPAPI |
| 19 // plugins, that only handles painting. | 21 // plugins, that only handles painting. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect&) = 0; | 33 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect&) = 0; |
| 32 | 34 |
| 33 // Destroys the fullscreen window. This also destroys the FullscreenContainer | 35 // Destroys the fullscreen window. This also destroys the FullscreenContainer |
| 34 // instance. | 36 // instance. |
| 35 virtual void Destroy() = 0; | 37 virtual void Destroy() = 0; |
| 36 | 38 |
| 37 // Notifies the container that the mouse cursor has changed. | 39 // Notifies the container that the mouse cursor has changed. |
| 38 virtual void DidChangeCursor(const WebKit::WebCursorInfo& cursor) = 0; | 40 virtual void DidChangeCursor(const WebKit::WebCursorInfo& cursor) = 0; |
| 39 | 41 |
| 40 virtual PluginDelegate::PlatformContext3D* CreateContext3D() = 0; | 42 virtual PluginDelegate::PlatformContext3D* CreateContext3D() = 0; |
| 43 |
| 44 // The returned object is owned by FullscreenContainer. |
| 45 virtual MouseLockDispatcher* GetMouseLockDispatcher() = 0; |
| 41 }; | 46 }; |
| 42 | 47 |
| 43 } // namespace ppapi | 48 } // namespace ppapi |
| 44 } // namespace webkit | 49 } // namespace webkit |
| 45 | 50 |
| 46 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ | 51 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ |
| OLD | NEW |