summaryrefslogtreecommitdiffstats
path: root/content/plugin
diff options
context:
space:
mode:
authordpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 01:04:57 +0000
committerdpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 01:04:57 +0000
commitcdd19f53d9ffe332e0324a69bffb3c4e9369e980 (patch)
tree5cddec581bbbd376d683ac717516029a96a6b85e /content/plugin
parentf9722575da516bc5b88e5cbfb57b7c2782260429 (diff)
downloadchromium_src-cdd19f53d9ffe332e0324a69bffb3c4e9369e980.zip
chromium_src-cdd19f53d9ffe332e0324a69bffb3c4e9369e980.tar.gz
chromium_src-cdd19f53d9ffe332e0324a69bffb3c4e9369e980.tar.bz2
Renaming NativeMetafile related methods to more appropriate names.
1) Renaming Close() to FinishDocument() 2) Renaming NativeMetafileFactory::CreateMetafile() to Create(), since the name of the class already implies what is being created BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6674037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/plugin')
-rw-r--r--content/plugin/webplugin_delegate_stub.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/content/plugin/webplugin_delegate_stub.cc b/content/plugin/webplugin_delegate_stub.cc
index cf26fc0..2de6e42 100644
--- a/content/plugin/webplugin_delegate_stub.cc
+++ b/content/plugin/webplugin_delegate_stub.cc
@@ -272,7 +272,7 @@ void WebPluginDelegateStub::OnPrint(base::SharedMemoryHandle* shared_memory,
uint32* size) {
#if defined(OS_WIN)
scoped_ptr<printing::NativeMetafile> metafile(
- printing::NativeMetafileFactory::CreateMetafile());
+ printing::NativeMetafileFactory::Create());
if (!metafile->CreateDc(NULL, NULL)) {
NOTREACHED();
return;
@@ -280,7 +280,7 @@ void WebPluginDelegateStub::OnPrint(base::SharedMemoryHandle* shared_memory,
HDC hdc = metafile->context();
skia::PlatformDevice::InitializeDC(hdc);
delegate_->Print(hdc);
- if (!metafile->Close()) {
+ if (!metafile->FinishDocument()) {
NOTREACHED();
return;
}
@@ -448,4 +448,3 @@ void WebPluginDelegateStub::OnSetFakeAcceleratedSurfaceWindowHandle(
delegate_->set_windowed_handle(window);
}
#endif
-