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

Unified Diff: webkit/glue/plugins/pepper_resource.h

Issue 2884016: Chrome side of Pepper v2 scrollbar widget. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: webkit/glue/plugins/pepper_resource.h
===================================================================
--- webkit/glue/plugins/pepper_resource.h (revision 51491)
+++ webkit/glue/plugins/pepper_resource.h (working copy)
@@ -20,9 +20,11 @@
class FileRef;
class ImageData;
class PluginModule;
+class Scrollbar;
class URLLoader;
class URLRequestInfo;
class URLResponseInfo;
+class Widget;
class Resource : public base::RefCountedThreadSafe<Resource> {
public:
@@ -56,9 +58,11 @@
virtual FileIO* AsFileIO() { return NULL; }
virtual FileRef* AsFileRef() { return NULL; }
virtual ImageData* AsImageData() { return NULL; }
+ virtual Scrollbar* AsScrollbar() { return NULL; }
virtual URLLoader* AsURLLoader() { return NULL; }
virtual URLRequestInfo* AsURLRequestInfo() { return NULL; }
virtual URLResponseInfo* AsURLResponseInfo() { return NULL; }
+ virtual Widget* AsWidget() { return NULL; }
PluginModule* module_; // Non-owning pointer to our module.
@@ -78,9 +82,11 @@
DEFINE_RESOURCE_CAST(FileIO)
DEFINE_RESOURCE_CAST(FileRef)
DEFINE_RESOURCE_CAST(ImageData)
+DEFINE_RESOURCE_CAST(Scrollbar)
DEFINE_RESOURCE_CAST(URLLoader)
DEFINE_RESOURCE_CAST(URLRequestInfo)
DEFINE_RESOURCE_CAST(URLResponseInfo)
+DEFINE_RESOURCE_CAST(Widget)
#undef DEFINE_RESOURCE_CAST
} // namespace pepper

Powered by Google App Engine
This is Rietveld 408576698