| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // TODO(yzshen): this is a layering violation. http://crbug.com/156865 |
| 11 namespace content { |
| 10 class MouseLockDispatcher; | 12 class MouseLockDispatcher; |
| 13 } |
| 11 | 14 |
| 12 namespace WebKit { | 15 namespace WebKit { |
| 13 struct WebCursorInfo; | 16 struct WebCursorInfo; |
| 14 struct WebRect; | 17 struct WebRect; |
| 15 } // namespace WebKit | 18 } // namespace WebKit |
| 16 | 19 |
| 17 namespace webkit { | 20 namespace webkit { |
| 18 namespace ppapi { | 21 namespace ppapi { |
| 19 | 22 |
| 20 // This class is like a lightweight WebPluginContainer for fullscreen PPAPI | 23 // This class is like a lightweight WebPluginContainer for fullscreen PPAPI |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 virtual void Destroy() = 0; | 38 virtual void Destroy() = 0; |
| 36 | 39 |
| 37 // Notifies the container that the mouse cursor has changed. | 40 // Notifies the container that the mouse cursor has changed. |
| 38 virtual void DidChangeCursor(const WebKit::WebCursorInfo& cursor) = 0; | 41 virtual void DidChangeCursor(const WebKit::WebCursorInfo& cursor) = 0; |
| 39 | 42 |
| 40 virtual PluginDelegate::PlatformContext3D* CreateContext3D() = 0; | 43 virtual PluginDelegate::PlatformContext3D* CreateContext3D() = 0; |
| 41 | 44 |
| 42 virtual void ReparentContext(PluginDelegate::PlatformContext3D*) = 0; | 45 virtual void ReparentContext(PluginDelegate::PlatformContext3D*) = 0; |
| 43 | 46 |
| 44 // The returned object is owned by FullscreenContainer. | 47 // The returned object is owned by FullscreenContainer. |
| 45 virtual MouseLockDispatcher* GetMouseLockDispatcher() = 0; | 48 virtual content::MouseLockDispatcher* GetMouseLockDispatcher() = 0; |
| 46 | 49 |
| 47 protected: | 50 protected: |
| 48 virtual ~FullscreenContainer() {} | 51 virtual ~FullscreenContainer() {} |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 } // namespace ppapi | 54 } // namespace ppapi |
| 52 } // namespace webkit | 55 } // namespace webkit |
| 53 | 56 |
| 54 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ | 57 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ |
| OLD | NEW |