OLD | NEW |
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 Loading... |
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 |
OLD | NEW |