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

Side by Side Diff: webkit/plugins/ppapi/ppapi_webplugin_impl.cc

Issue 8041052: Add IsScalingDisabled and PP_PRINTOUTPUTFORMAT_EMF to pepper printing interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" 5 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 231 }
232 232
233 void WebPluginImpl::stopFind() { 233 void WebPluginImpl::stopFind() {
234 instance_->StopFind(); 234 instance_->StopFind();
235 } 235 }
236 236
237 bool WebPluginImpl::supportsPaginatedPrint() { 237 bool WebPluginImpl::supportsPaginatedPrint() {
238 return instance_->SupportsPrintInterface(); 238 return instance_->SupportsPrintInterface();
239 } 239 }
240 240
241 bool WebPluginImpl::isPrintScalingDisabled() {
242 return instance_->IsPrintScalingDisabled();
243 }
244
241 int WebPluginImpl::printBegin(const WebKit::WebRect& printable_area, 245 int WebPluginImpl::printBegin(const WebKit::WebRect& printable_area,
242 int printer_dpi) { 246 int printer_dpi) {
243 return instance_->PrintBegin(printable_area, printer_dpi); 247 return instance_->PrintBegin(printable_area, printer_dpi);
244 } 248 }
245 249
246 bool WebPluginImpl::printPage(int page_number, 250 bool WebPluginImpl::printPage(int page_number,
247 WebKit::WebCanvas* canvas) { 251 WebKit::WebCanvas* canvas) {
248 return instance_->PrintPage(page_number, canvas); 252 return instance_->PrintPage(page_number, canvas);
249 } 253 }
250 254
251 void WebPluginImpl::printEnd() { 255 void WebPluginImpl::printEnd() {
252 return instance_->PrintEnd(); 256 return instance_->PrintEnd();
253 } 257 }
254 258
255 } // namespace ppapi 259 } // namespace ppapi
256 } // namespace webkit 260 } // namespace webkit
OLDNEW
« webkit/plugins/ppapi/ppapi_webplugin_impl.h ('K') | « webkit/plugins/ppapi/ppapi_webplugin_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698