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

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

Issue 1110483002: Remove argument |allowHorizontalTiling| from computePageRectWithPageSize (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/core/page/PrintContext.cpp ('k') | no next file » | 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/page/PrintContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698