Add a Plugin abstract base class and a DummyPlugin that implements it
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jul 2010 18:59:32 +0000 (18:59 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jul 2010 18:59:32 +0000 (18:59 +0000)
commit7a1380cf6736fefd85e9891fd74309335adc8818
treea139942cba0983b86214d5b2d73c2eeab284effa
parentf7d29287c96320196187445dcb77ae4c0b6023d7
Add a Plugin abstract base class and a DummyPlugin that implements it
https://bugs.webkit.org/show_bug.cgi?id=41885

Reviewed by Sam Weinig.

* WebKit2.xcodeproj/project.pbxproj:
Add files.

* WebProcess/Plugins/DummyPlugin.cpp: Added.
(WebKit::DummyPlugin::paint):
Paint a red rectangle.

* WebProcess/Plugins/Plugin.cpp: Added.
* WebProcess/Plugins/Plugin.h: Added.
Add Plugin, an abstract baseclass.

* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::PluginView):
(WebKit::PluginView::~PluginView):
(WebKit::PluginView::paint):
(WebKit::PluginView::viewGeometryDidChange):
* WebProcess/Plugins/PluginView.h:
(WebKit::PluginView::create):
Add a Plugin member function and forward PluginView calls to it.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::createPlugin):
Make a DummyPlugin and pass it to the PluginView.

* win/WebKit2.vcproj:
Add files.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2/ChangeLog
WebKit2/WebKit2.xcodeproj/project.pbxproj
WebKit2/WebProcess/Plugins/DummyPlugin.cpp [new file with mode: 0644]
WebKit2/WebProcess/Plugins/DummyPlugin.h [new file with mode: 0644]
WebKit2/WebProcess/Plugins/Plugin.cpp [new file with mode: 0644]
WebKit2/WebProcess/Plugins/Plugin.h [new file with mode: 0644]
WebKit2/WebProcess/Plugins/PluginView.cpp
WebKit2/WebProcess/Plugins/PluginView.h
WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
WebKit2/win/WebKit2.vcproj