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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 2116283002: Don't let rounding prematurely influence document size when printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@620456-2
Patch Set: bug 467579 Created 4 years, 4 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
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri de; 171 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri de;
172 float printPage(int pageToPrint, WebCanvas*) override; 172 float printPage(int pageToPrint, WebCanvas*) override;
173 float getPrintPageShrink(int page) override; 173 float getPrintPageShrink(int page) override;
174 void printEnd() override; 174 void printEnd() override;
175 bool isPrintScalingDisabledForPlugin(const WebNode&) override; 175 bool isPrintScalingDisabledForPlugin(const WebNode&) override;
176 bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOptions*) override; 176 bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOptions*) override;
177 bool hasCustomPageSizeStyle(int pageIndex) override; 177 bool hasCustomPageSizeStyle(int pageIndex) override;
178 bool isPageBoxVisible(int pageIndex) override; 178 bool isPageBoxVisible(int pageIndex) override;
179 void pageSizeAndMarginsInPixels( 179 void pageSizeAndMarginsInPixels(
180 int pageIndex, 180 int pageIndex,
181 WebSize& pageSize, 181 WebDoubleSize& pageSize,
182 int& marginTop, 182 int& marginTop,
183 int& marginRight, 183 int& marginRight,
184 int& marginBottom, 184 int& marginBottom,
185 int& marginLeft) override; 185 int& marginLeft) override;
186 WebString pageProperty(const WebString& propertyName, int pageIndex) overrid e; 186 WebString pageProperty(const WebString& propertyName, int pageIndex) overrid e;
187 void printPagesWithBoundaries(WebCanvas*, const WebSize&) override; 187 void printPagesWithBoundaries(WebCanvas*, const WebSize&) override;
188 188
189 void dispatchMessageEventWithOriginCheck( 189 void dispatchMessageEventWithOriginCheck(
190 const WebSecurityOrigin& intendedTargetOrigin, 190 const WebSecurityOrigin& intendedTargetOrigin,
191 const WebDOMEvent&) override; 191 const WebDOMEvent&) override;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // Accomplish that by keeping a self-referential Persistent<>. It is 396 // Accomplish that by keeping a self-referential Persistent<>. It is
397 // cleared upon close(). 397 // cleared upon close().
398 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 398 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
399 }; 399 };
400 400
401 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 401 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
402 402
403 } // namespace blink 403 } // namespace blink
404 404
405 #endif 405 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/PrintContext.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698