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

Side by Side Diff: third_party/WebKit/public/web/WebFrame.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, 5 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 class WebString; 78 class WebString;
79 class WebURL; 79 class WebURL;
80 class WebURLLoader; 80 class WebURLLoader;
81 class WebURLRequest; 81 class WebURLRequest;
82 class WebView; 82 class WebView;
83 enum class WebSandboxFlags; 83 enum class WebSandboxFlags;
84 struct WebConsoleMessage; 84 struct WebConsoleMessage;
85 struct WebFindOptions; 85 struct WebFindOptions;
86 struct WebFloatPoint; 86 struct WebFloatPoint;
87 struct WebFloatRect; 87 struct WebFloatRect;
88 struct WebFloatSize;
Lei Zhang 2016/07/12 17:02:24 Move to WebLocalFrame.h?
88 struct WebFrameOwnerProperties; 89 struct WebFrameOwnerProperties;
89 struct WebPoint; 90 struct WebPoint;
90 struct WebPrintParams; 91 struct WebPrintParams;
91 struct WebRect; 92 struct WebRect;
92 struct WebScriptSource; 93 struct WebScriptSource;
93 struct WebSize; 94 struct WebSize;
94 struct WebURLLoaderOptions; 95 struct WebURLLoaderOptions;
95 96
96 template <typename T> class WebVector; 97 template <typename T> class WebVector;
97 98
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 virtual float printPage(int pageToPrint, WebCanvas*) = 0; 424 virtual float printPage(int pageToPrint, WebCanvas*) = 0;
424 425
425 // Reformats the WebFrame for screen display. 426 // Reformats the WebFrame for screen display.
426 virtual void printEnd() = 0; 427 virtual void printEnd() = 0;
427 428
428 // If the frame contains a full-frame plugin or the given node refers to a 429 // If the frame contains a full-frame plugin or the given node refers to a
429 // plugin whose content indicates that printed output should not be scaled, 430 // plugin whose content indicates that printed output should not be scaled,
430 // return true, otherwise return false. 431 // return true, otherwise return false.
431 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0 ; 432 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0 ;
432 433
433
434 // Events -------------------------------------------------------------- 434 // Events --------------------------------------------------------------
435 435
436 // Dispatches a message event on the current DOMWindow in this WebFrame. 436 // Dispatches a message event on the current DOMWindow in this WebFrame.
437 virtual void dispatchMessageEventWithOriginCheck( 437 virtual void dispatchMessageEventWithOriginCheck(
438 const WebSecurityOrigin& intendedTargetOrigin, 438 const WebSecurityOrigin& intendedTargetOrigin,
439 const WebDOMEvent&) = 0; 439 const WebDOMEvent&) = 0;
440 440
441 441
442 // Utility ------------------------------------------------------------- 442 // Utility -------------------------------------------------------------
443 443
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 WebFrame* m_firstChild; 515 WebFrame* m_firstChild;
516 WebFrame* m_lastChild; 516 WebFrame* m_lastChild;
517 517
518 WebFrame* m_opener; 518 WebFrame* m_opener;
519 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 519 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
520 }; 520 };
521 521
522 } // namespace blink 522 } // namespace blink
523 523
524 #endif 524 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698