Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: webkit/plugins/ppapi/fullscreen_container.h

Issue 10416004: RefCounted types should not have public destructors, webkit/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to r140259 Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/npapi/webplugin_page_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 class MouseLockDispatcher; 10 class MouseLockDispatcher;
11 11
12 namespace WebKit { 12 namespace WebKit {
13 struct WebCursorInfo; 13 struct WebCursorInfo;
14 struct WebRect; 14 struct WebRect;
15 } // namespace WebKit 15 } // namespace WebKit
16 16
17 namespace webkit { 17 namespace webkit {
18 namespace ppapi { 18 namespace ppapi {
19 19
20 // This class is like a lightweight WebPluginContainer for fullscreen PPAPI 20 // This class is like a lightweight WebPluginContainer for fullscreen PPAPI
21 // plugins, that only handles painting. 21 // plugins, that only handles painting.
22 class FullscreenContainer { 22 class FullscreenContainer {
23 public: 23 public:
24 virtual ~FullscreenContainer() {}
25
26 // Invalidates the full plugin region. 24 // Invalidates the full plugin region.
27 virtual void Invalidate() = 0; 25 virtual void Invalidate() = 0;
28 26
29 // Invalidates a partial region of the plugin. 27 // Invalidates a partial region of the plugin.
30 virtual void InvalidateRect(const WebKit::WebRect&) = 0; 28 virtual void InvalidateRect(const WebKit::WebRect&) = 0;
31 29
32 // Scrolls a partial region of the plugin in the given direction. 30 // Scrolls a partial region of the plugin in the given direction.
33 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect&) = 0; 31 virtual void ScrollRect(int dx, int dy, const WebKit::WebRect&) = 0;
34 32
35 // Destroys the fullscreen window. This also destroys the FullscreenContainer 33 // Destroys the fullscreen window. This also destroys the FullscreenContainer
36 // instance. 34 // instance.
37 virtual void Destroy() = 0; 35 virtual void Destroy() = 0;
38 36
39 // Notifies the container that the mouse cursor has changed. 37 // Notifies the container that the mouse cursor has changed.
40 virtual void DidChangeCursor(const WebKit::WebCursorInfo& cursor) = 0; 38 virtual void DidChangeCursor(const WebKit::WebCursorInfo& cursor) = 0;
41 39
42 virtual PluginDelegate::PlatformContext3D* CreateContext3D() = 0; 40 virtual PluginDelegate::PlatformContext3D* CreateContext3D() = 0;
43 41
44 // The returned object is owned by FullscreenContainer. 42 // The returned object is owned by FullscreenContainer.
45 virtual MouseLockDispatcher* GetMouseLockDispatcher() = 0; 43 virtual MouseLockDispatcher* GetMouseLockDispatcher() = 0;
44
45 protected:
46 virtual ~FullscreenContainer() {}
46 }; 47 };
47 48
48 } // namespace ppapi 49 } // namespace ppapi
49 } // namespace webkit 50 } // namespace webkit
50 51
51 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_ 52 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FULLSCREEN_CONTAINER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_page_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698