OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 #include "public/platform/WebRect.h" | 79 #include "public/platform/WebRect.h" |
80 #include "public/platform/WebString.h" | 80 #include "public/platform/WebString.h" |
81 #include "public/platform/WebURL.h" | 81 #include "public/platform/WebURL.h" |
82 #include "public/platform/WebURLError.h" | 82 #include "public/platform/WebURLError.h" |
83 #include "public/platform/WebURLRequest.h" | 83 #include "public/platform/WebURLRequest.h" |
84 #include "public/platform/WebVector.h" | 84 #include "public/platform/WebVector.h" |
85 #include "public/web/WebElement.h" | 85 #include "public/web/WebElement.h" |
86 #include "public/web/WebInputEvent.h" | 86 #include "public/web/WebInputEvent.h" |
87 #include "public/web/WebPlugin.h" | 87 #include "public/web/WebPlugin.h" |
88 #include "public/web/WebPrintParams.h" | 88 #include "public/web/WebPrintParams.h" |
| 89 #include "public/web/WebPrintPresetOptions.h" |
89 #include "public/web/WebViewClient.h" | 90 #include "public/web/WebViewClient.h" |
90 #include "web/ChromeClientImpl.h" | 91 #include "web/ChromeClientImpl.h" |
91 #include "web/ScrollbarGroup.h" | 92 #include "web/ScrollbarGroup.h" |
92 #include "web/WebDataSourceImpl.h" | 93 #include "web/WebDataSourceImpl.h" |
93 #include "web/WebInputEventConversion.h" | 94 #include "web/WebInputEventConversion.h" |
94 #include "web/WebViewImpl.h" | 95 #include "web/WebViewImpl.h" |
95 #include "wtf/Assertions.h" | 96 #include "wtf/Assertions.h" |
96 | 97 |
97 namespace blink { | 98 namespace blink { |
98 | 99 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 bool WebPluginContainerImpl::supportsPaginatedPrint() const | 317 bool WebPluginContainerImpl::supportsPaginatedPrint() const |
317 { | 318 { |
318 return m_webPlugin->supportsPaginatedPrint(); | 319 return m_webPlugin->supportsPaginatedPrint(); |
319 } | 320 } |
320 | 321 |
321 bool WebPluginContainerImpl::isPrintScalingDisabled() const | 322 bool WebPluginContainerImpl::isPrintScalingDisabled() const |
322 { | 323 { |
323 return m_webPlugin->isPrintScalingDisabled(); | 324 return m_webPlugin->isPrintScalingDisabled(); |
324 } | 325 } |
325 | 326 |
326 int WebPluginContainerImpl::getCopiesToPrint() const | 327 bool WebPluginContainerImpl::getPrintPresetOptionsFromDocument(WebPrintPresetOpt
ions* presetOptions) const |
327 { | 328 { |
328 return m_webPlugin->getCopiesToPrint(); | 329 return m_webPlugin->getPrintPresetOptionsFromDocument(presetOptions); |
329 } | 330 } |
330 | 331 |
331 int WebPluginContainerImpl::printBegin(const WebPrintParams& printParams) const | 332 int WebPluginContainerImpl::printBegin(const WebPrintParams& printParams) const |
332 { | 333 { |
333 return m_webPlugin->printBegin(printParams); | 334 return m_webPlugin->printBegin(printParams); |
334 } | 335 } |
335 | 336 |
336 bool WebPluginContainerImpl::printPage(int pageNumber, GraphicsContext* gc) | 337 bool WebPluginContainerImpl::printPage(int pageNumber, GraphicsContext* gc) |
337 { | 338 { |
338 gc->save(); | 339 gc->save(); |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 | 963 |
963 return clipRect; | 964 return clipRect; |
964 } | 965 } |
965 | 966 |
966 bool WebPluginContainerImpl::pluginShouldPersist() const | 967 bool WebPluginContainerImpl::pluginShouldPersist() const |
967 { | 968 { |
968 return m_webPlugin->shouldPersist(); | 969 return m_webPlugin->shouldPersist(); |
969 } | 970 } |
970 | 971 |
971 } // namespace blink | 972 } // namespace blink |
OLD | NEW |