summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/print_web_view_helper_linux.cc
Commit message (Collapse)AuthorAgeFilesLines
* Make RenderView inherit from content::RenderView, and add missing functions ↵jam@chromium.org2011-10-101-1/+0
| | | | | | | | | to the interface. In a future change I'll rename RenderView to RenderViewImpl. BUG=98716 Review URL: http://codereview.chromium.org/8201029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104727 0039d316-1c4b-4281-b951-d872f2087c98
* Move HostAllocateSharedMemoryBuffer to content::RenderThread now that we ↵jam@chromium.org2011-10-071-1/+2
| | | | | | | | | have an interface. BUG=98716 Review URL: http://codereview.chromium.org/8199018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104585 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 103021: Printing preview of a PDF on Mac with Skia only previews the ↵kmadhusu@chromium.org2011-09-281-3/+3
| | | | | | | | | | | | | | | | | last page of the PDF BUG=93145 TEST=Please refer to bug report. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103021 Original review URL: codereview.chromium.org/7719014 Please refer to trybot results in the last patch of original review url. Review URL: http://codereview.chromium.org/8059034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103082 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 103021 - PrintPreview: Printing preview of a PDF on Mac with Skia ↵kmadhusu@chromium.org2011-09-271-3/+3
| | | | | | | | | | | | | | only previews the last page of the PDF BUG=93145 TEST=Please refer to bug report. Review URL: http://codereview.chromium.org/7719014 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/8052020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103026 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Printing preview of a PDF on Mac with Skia only previews the ↵kmadhusu@chromium.org2011-09-271-3/+3
| | | | | | | | | | | last page of the PDF BUG=93145 TEST=Please refer to bug report. Review URL: http://codereview.chromium.org/7719014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103021 0039d316-1c4b-4281-b951-d872f2087c98
* PrintWebViewHelper: change WebNode* to const WebNode&vandebo@chromium.org2011-09-261-2/+2
| | | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8043014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102758 0039d316-1c4b-4281-b951-d872f2087c98
* Move sending of the following IPC messages out of Chrome\renderer.ananta@chromium.org2011-09-191-4/+3
| | | | | | | | | | | | | | | | | | 1. ViewHostMsg_UserMetricsRecordAction. 2. ViewHostMsg_GetPluginInfo. 3. ViewHostMsg_AllocateSharedMemoryBuffer. 4. ViewHostMsg_PreCacheFont Added helper functions to the RenderView and RenderThread classes to ensure that this functionality continues to work as before. Continuing fixes to ensure that IPC messages don't span across Content and Chrome. BUG=87335 TEST=No change in functionality. Review URL: http://codereview.chromium.org/7919002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101826 0039d316-1c4b-4281-b951-d872f2087c98
* GCC 4.6 warnings cleanuppph34r@gmail.com2011-09-151-5/+0
| | | | | | | | | | BUG=87490 TEST=None Review URL: http://codereview.chromium.org/7906004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101358 0039d316-1c4b-4281-b951-d872f2087c98
* Print preview page selection should not require a rerendering of draft pages.kmadhusu@chromium.org2011-08-311-7/+17
| | | | | | | | | | | | | On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7647010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98926 0039d316-1c4b-4281-b951-d872f2087c98
* Backend changes for custom margins.aayushkumar@chromium.org2011-08-231-1/+2
| | | | | | | | | | | | The UI for margin options are hidden by default. BUG=69337 TEST= There is currently minimal UI for testing this. The custom margins option does nothing. You can however click the no margins option to see the page print without margins. Review URL: http://codereview.chromium.org/7552033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97901 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Go from event driven print preview back to print preview with ↵thestig@chromium.org2011-08-231-3/+2
| | | | | | | | | | sync messages. The sync messages now go to the IO thread to avoid the potential deadlock on Windows. BUG=91057, and probably a few more. TEST=included. Review URL: http://codereview.chromium.org/7621087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97820 0039d316-1c4b-4281-b951-d872f2087c98
* Added Headers and Footers support for Core Graphics on Macaayushkumar@chromium.org2011-08-191-1/+1
| | | | | | | | | BUG=67514 TEST=In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Review URL: http://codereview.chromium.org/7544006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97501 0039d316-1c4b-4281-b951-d872f2087c98
* Added Header and Footer support in Linux, Windows and Mac for Skiaaayushkumar@chromium.org2011-08-171-1/+7
| | | | | | | | | | | | BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97219 Review URL: http://codereview.chromium.org/7348010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97233 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 97219 - Added Header and Footer support in Linux, Windows and Mac for ↵aayushkumar@chromium.org2011-08-171-7/+1
| | | | | | | | | | | | | | | Skia BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Review URL: http://codereview.chromium.org/7348010 TBR=aayushkumar@chromium.org Review URL: http://codereview.chromium.org/7670045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97226 0039d316-1c4b-4281-b951-d872f2087c98
* Added Header and Footer support in Linux, Windows and Mac for Skiaaayushkumar@chromium.org2011-08-171-1/+7
| | | | | | | | | | BUG=67514 TEST= In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed. Review URL: http://codereview.chromium.org/7348010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97219 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 96567 - Reland 96406 - Print preview page selection should not ↵kmadhusu@chromium.org2011-08-121-17/+7
| | | | | | | | | | | | | | | | | | | | | | | | | require a rerendering of draft pages. On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. 1. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. 2. Removed |requested_preview_page_index| from |PrintMsg_ContinuePreview| Review URL: http://codereview.chromium.org/7544018 Original Commit: http://src.chromium.org/viewvc/chrome?view=rev&revision=96406 Revert Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96414 BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7628019 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7639023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96581 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 96406 - Print preview page selection should not require a rerendering ↵kmadhusu@chromium.org2011-08-121-7/+17
| | | | | | | | | | | | | | | | | | | | | | of draft pages. On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. 1. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. 2. Removed |requested_preview_page_index| from |PrintMsg_ContinuePreview| Review URL: http://codereview.chromium.org/7544018 Original Commit: http://src.chromium.org/viewvc/chrome?view=rev&revision=96406 Revert Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96414 BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7628019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96567 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 96406 - Print preview page selection should not require a rerendering ↵kmadhusu@chromium.org2011-08-111-17/+7
| | | | | | | | | | | | | | | | | | | of draft pages. On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. 1. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. 2. Removed |requested_preview_page_index| from |PrintMsg_ContinuePreview| BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7544018 TBR=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7618014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96414 0039d316-1c4b-4281-b951-d872f2087c98
* Print preview page selection should not require a rerendering of draft pages.kmadhusu@chromium.org2011-08-111-7/+17
| | | | | | | | | | | | | | On page selection, regenerate the complete document with the selection, but preserve the existing draft pages and simply display a subset of them. 1. Added a new param |clear all preview data| to |PrintHostMsg_DidGetPreviewPageCount|. 2. Removed |requested_preview_page_index| from |PrintMsg_ContinuePreview| BUG=84383 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7544018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96406 0039d316-1c4b-4281-b951-d872f2087c98
* Remove metafile casts.vandebo@chromium.org2011-08-081-2/+2
| | | | | | | | | | | | Change PrintWebViewHelper::PrintPreviewContext to have a PreviewMetafile, removing the need to cast it. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7582014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95911 0039d316-1c4b-4281-b951-d872f2087c98
* Fix print preview draft page memory leaks.vandebo@chromium.org2011-08-061-4/+4
| | | | | | | | | | BUG=91862 TEST=NONE Review URL: http://codereview.chromium.org/7585012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95722 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Remove |page_number| from StartPageForVectorCanvas function ↵kmadhusu@chromium.org2011-08-021-5/+1
| | | | | | | | | | | | | and |page_slot| from PrintMsg_PrintPage_Params. We will not add preview pages to the complete metafile in out of order fashion. BUG=none TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7549001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95092 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: backend changes to support pipelining.vandebo@chromium.org2011-07-261-2/+12
| | | | | | | | | | | | | Previous review comments: http://codereview.chromium.org/7395016/ http://codereview.chromium.org/7210042/ BUG=88762 TEST=NONE Review URL: http://codereview.chromium.org/7495003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94066 0039d316-1c4b-4281-b951-d872f2087c98
* Change printing code to minimize the number of page reflows (3 to 1-2).vandebo@chromium.org2011-07-261-11/+17
| | | | | | | | | BUG=83894 TEST=NONE Review URL: http://codereview.chromium.org/7513004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94052 0039d316-1c4b-4281-b951-d872f2087c98
* Added a struct to hold page sizes and margins.aayushkumar@chromium.org2011-07-251-21/+13
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7492031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93943 0039d316-1c4b-4281-b951-d872f2087c98
* Make Metafile::StartPageForVectorCanvas take the page number as an argument.vandebo@chromium.org2011-07-231-1/+1
| | | | | | | | | | | | | This will let us add pages to a metafile out of order for print preview. Also, make PdfMetafileSkia::GetMetafileForCurrentPage use draft mode, now that it's available. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7481019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93763 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Make preview generation event driven to eliminate synchronous ↵thestig@chromium.org2011-07-181-59/+16
| | | | | | | | | | | messages. BUG=89069 TEST=Print preview still works. Review URL: http://codereview.chromium.org/7365003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92828 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Associating preview requests and responses using an identifierdpapad@chromium.org2011-07-131-0/+1
| | | | | | | | | | BUG=88807, 89106 TEST=NONE Review URL: http://codereview.chromium.org/7313035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92402 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Add the ability to cancel an in-flight print preview.thestig@chromium.org2011-07-071-19/+21
| | | | | | | | | BUG=85103 TEST=none Review URL: http://codereview.chromium.org/7104127 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91645 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Remove unused draft mode code.thestig@chromium.org2011-06-291-2/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7275030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90919 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Regenerate print preview data only when required.kmadhusu@chromium.org2011-06-241-4/+6
| | | | | | | | | | | | Do not regenerate print preview data if the new printer settings matches previously selected printer settings. BUG=82211 TEST=Preview a long webpage. Wait till the preview is loaded. Change the destination printer. If the new printer settings matches the old printer settings, you can observe that the preview data is loaded very quickly. Review URL: http://codereview.chromium.org/7204043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90320 0039d316-1c4b-4281-b951-d872f2087c98
* Print preview should use draft PDFs until it is ready to print to improve speed.kmadhusu@chromium.org2011-06-151-1/+2
| | | | | | | | | BUG=85767 TEST=none Review URL: http://codereview.chromium.org/7149020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89198 0039d316-1c4b-4281-b951-d872f2087c98
* Improve print preview UMAs based on jar's feedback.vandebo@chromium.org2011-05-301-9/+12
| | | | | | | | | BUG=80917 TEST=NONE Review URL: http://codereview.chromium.org/7082030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87211 0039d316-1c4b-4281-b951-d872f2087c98
* Fix clang complaint.vandebo@chromium.org2011-05-291-2/+3
| | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7086022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87197 0039d316-1c4b-4281-b951-d872f2087c98
* Add the rest of the print preview UMAs that we'd like.vandebo@chromium.org2011-05-291-2/+4
| | | | | | | | | | BUG=80917 TEST=NONE Review URL: http://codereview.chromium.org/7078027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87191 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Added UMA to track the time taken to render and generate the ↵kmadhusu@chromium.org2011-05-271-10/+15
| | | | | | | | | | | PDF for preview. BUG=80917 TEST=none Review URL: http://codereview.chromium.org/7080001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87037 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-261-1/+1
| | | | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86823 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 86625 - This change implements a first pass in the effort to remove ↵vandebo@chromium.org2011-05-251-1/+1
| | | | | | | | | | | | | | | the dependency of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 TBR=twiz@chromium.org Review URL: http://codereview.chromium.org/6987019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86629 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-251-1/+1
| | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86625 0039d316-1c4b-4281-b951-d872f2087c98
* Change printing of PDFs for preview on Windows to not rasterize.vandebo@chromium.org2011-05-241-38/+30
| | | | | | | | | | | Also cleaned up a few hacks. BUG=80220 TEST=Navigate to a PDF and start print preview. Review URL: http://codereview.chromium.org/7065011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86431 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Added a new histogram to measure the time taken to render the ↵kmadhusu@chromium.org2011-05-131-0/+9
| | | | | | | | | | | pages for print preview. BUG=80917 TEST=none Review URL: http://codereview.chromium.org/7011040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85307 0039d316-1c4b-4281-b951-d872f2087c98
* Print Preview: Disable controls when printing an embedded PDF.thestig@chromium.org2011-05-121-1/+2
| | | | | | | | BUG=79524 TEST=Open a page with an embedded PDF, right click and print. Review URL: http://codereview.chromium.org/6969031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85199 0039d316-1c4b-4281-b951-d872f2087c98
* Fix print preview clipping issues due to scaling.ctguil@chromium.org2011-04-301-2/+3
| | | | | | | | BUG=79941 TEST=none Review URL: http://codereview.chromium.org/6879098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83657 0039d316-1c4b-4281-b951-d872f2087c98
* Printing: Catch more printing failures.thestig@chromium.org2011-04-281-11/+13
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6903098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83383 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Use RenderViewObserver::Send() instead of RenderView::Send() in ↵thestig@chromium.org2011-04-191-9/+3
| | | | | | | | | | PrintWebViewHelper. BUG=none TEST=none Review URL: http://codereview.chromium.org/6880027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82133 0039d316-1c4b-4281-b951-d872f2087c98
* Adds method call to UpdatePrintableSizeInPrintParameters() to fix Content ↵clementskau@gmail.com2011-04-131-0/+2
| | | | | | | | | | | | | Area width on print on Linux. This happens in connection with CSS3 Paged Media margins. BUG=79157 TEST=Try and print a page with CSS3 Paged Media margins like: http://dl.dropbox.com/u/599885/CSS3_Paged_Media_Margin_test.htm Review URL: http://codereview.chromium.org/6825074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81355 0039d316-1c4b-4281-b951-d872f2087c98
* Connect the right metafiles for print preview on Linux and Windows.vandebo@chromium.org2011-04-111-22/+20
| | | | | | | | | | | | | | + Remove the NativeMetafileFactory since we can't just use preview flag. + Update each Metafile constructor site to use PreviewMetafile or NativeMetafileImpl. + Fix misc. problems blocking pdf generation on Windows. + Rename the metafile interface. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6826027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81161 0039d316-1c4b-4281-b951-d872f2087c98
* Fix accidental overload in r80818.thestig@chromium.org2011-04-071-7/+8
| | | | | | | | | BUG=none TEST=clang bots are happy. TBR=jam Review URL: http://codereview.chromium.org/6810024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80821 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Adding CreateFromData to NativeMetafileFactorydpapad@chromium.org2011-03-261-2/+0
| | | | | | | | | | | | | | Also making Create method calling Init on the metafile before returning it. Usually clients of the NativeMetafileFactory call Create and the Init or InitFromData on the object to initialize it. Now the returned object will already be initialized. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6696076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79475 0039d316-1c4b-4281-b951-d872f2087c98