OLD | NEW |
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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 // We don't shrink the page (maybe we should ask the widget ??) | 475 // We don't shrink the page (maybe we should ask the widget ??) |
476 return 1.0; | 476 return 1.0; |
477 } | 477 } |
478 | 478 |
479 virtual void computePageRects(const FloatRect& printRect, float headerHeight
, float footerHeight, float userScaleFactor, float& outPageHeight) override | 479 virtual void computePageRects(const FloatRect& printRect, float headerHeight
, float footerHeight, float userScaleFactor, float& outPageHeight) override |
480 { | 480 { |
481 m_printParams.printContentArea = IntRect(printRect); | 481 m_printParams.printContentArea = IntRect(printRect); |
482 m_pageRects.fill(IntRect(printRect), m_plugin->printBegin(m_printParams)
); | 482 m_pageRects.fill(IntRect(printRect), m_plugin->printBegin(m_printParams)
); |
483 } | 483 } |
484 | 484 |
485 virtual void computePageRectsWithPageSize(const FloatSize& pageSizeInPixels,
bool allowHorizontalTiling) override | 485 virtual void computePageRectsWithPageSize(const FloatSize& pageSizeInPixels)
override |
486 { | 486 { |
487 ASSERT_NOT_REACHED(); | 487 ASSERT_NOT_REACHED(); |
488 } | 488 } |
489 | 489 |
490 protected: | 490 protected: |
491 // Spools the printed page, a subrect of frame(). Skip the scale step. | 491 // Spools the printed page, a subrect of frame(). Skip the scale step. |
492 // NativeTheme doesn't play well with scaling. Scaling is done browser side | 492 // NativeTheme doesn't play well with scaling. Scaling is done browser side |
493 // instead. Returns the scale to be applied. | 493 // instead. Returns the scale to be applied. |
494 virtual float spoolPage(GraphicsContext& context, int pageNumber) override | 494 virtual float spoolPage(GraphicsContext& context, int pageNumber) override |
495 { | 495 { |
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2090 { | 2090 { |
2091 m_frameWidget = frameWidget; | 2091 m_frameWidget = frameWidget; |
2092 } | 2092 } |
2093 | 2093 |
2094 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2094 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
2095 { | 2095 { |
2096 return m_frameWidget; | 2096 return m_frameWidget; |
2097 } | 2097 } |
2098 | 2098 |
2099 } // namespace blink | 2099 } // namespace blink |
OLD | NEW |