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

Side by Side Diff: Source/web/WebPluginContainerImpl.cpp

Issue 379793002: [Blink] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 4 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
« no previous file with comments | « Source/web/WebPluginContainerImpl.h ('k') | Source/web/WebRemoteFrameImpl.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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 bool WebPluginContainerImpl::supportsPaginatedPrint() const 321 bool WebPluginContainerImpl::supportsPaginatedPrint() const
322 { 322 {
323 return m_webPlugin->supportsPaginatedPrint(); 323 return m_webPlugin->supportsPaginatedPrint();
324 } 324 }
325 325
326 bool WebPluginContainerImpl::isPrintScalingDisabled() const 326 bool WebPluginContainerImpl::isPrintScalingDisabled() const
327 { 327 {
328 return m_webPlugin->isPrintScalingDisabled(); 328 return m_webPlugin->isPrintScalingDisabled();
329 } 329 }
330 330
331 int WebPluginContainerImpl::getCopiesToPrint() const
332 {
333 return m_webPlugin->getCopiesToPrint();
334 }
335
331 int WebPluginContainerImpl::printBegin(const WebPrintParams& printParams) const 336 int WebPluginContainerImpl::printBegin(const WebPrintParams& printParams) const
332 { 337 {
333 return m_webPlugin->printBegin(printParams); 338 return m_webPlugin->printBegin(printParams);
334 } 339 }
335 340
336 bool WebPluginContainerImpl::printPage(int pageNumber, 341 bool WebPluginContainerImpl::printPage(int pageNumber,
337 blink::GraphicsContext* gc) 342 blink::GraphicsContext* gc)
338 { 343 {
339 if (gc->paintingDisabled()) 344 if (gc->paintingDisabled())
340 return true; 345 return true;
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 946
942 return clipRect; 947 return clipRect;
943 } 948 }
944 949
945 bool WebPluginContainerImpl::pluginShouldPersist() const 950 bool WebPluginContainerImpl::pluginShouldPersist() const
946 { 951 {
947 return m_webPlugin->shouldPersist(); 952 return m_webPlugin->shouldPersist();
948 } 953 }
949 954
950 } // namespace blink 955 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebPluginContainerImpl.h ('k') | Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698