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

Side by Side Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRemoteFrameImpl_h 5 #ifndef WebRemoteFrameImpl_h
6 #define WebRemoteFrameImpl_h 6 #define WebRemoteFrameImpl_h
7 7
8 #include "core/frame/RemoteFrame.h" 8 #include "core/frame/RemoteFrame.h"
9 #include "platform/heap/SelfKeepAlive.h" 9 #include "platform/heap/SelfKeepAlive.h"
10 #include "public/platform/WebInsecureRequestPolicy.h" 10 #include "public/platform/WebInsecureRequestPolicy.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void setCaretVisible(bool) override; 111 void setCaretVisible(bool) override;
112 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri de; 112 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri de;
113 float printPage(int pageToPrint, WebCanvas*) override; 113 float printPage(int pageToPrint, WebCanvas*) override;
114 float getPrintPageShrink(int page) override; 114 float getPrintPageShrink(int page) override;
115 void printEnd() override; 115 void printEnd() override;
116 bool isPrintScalingDisabledForPlugin(const WebNode&) override; 116 bool isPrintScalingDisabledForPlugin(const WebNode&) override;
117 bool hasCustomPageSizeStyle(int pageIndex) override; 117 bool hasCustomPageSizeStyle(int pageIndex) override;
118 bool isPageBoxVisible(int pageIndex) override; 118 bool isPageBoxVisible(int pageIndex) override;
119 void pageSizeAndMarginsInPixels( 119 void pageSizeAndMarginsInPixels(
120 int pageIndex, 120 int pageIndex,
121 WebSize& pageSize, 121 WebFloatSize& pageSize,
122 int& marginTop, 122 int& marginTop,
123 int& marginRight, 123 int& marginRight,
124 int& marginBottom, 124 int& marginBottom,
125 int& marginLeft) override; 125 int& marginLeft) override;
126 WebString pageProperty(const WebString& propertyName, int pageIndex) overrid e; 126 WebString pageProperty(const WebString& propertyName, int pageIndex) overrid e;
127 void printPagesWithBoundaries(WebCanvas*, const WebSize&) override; 127 void printPagesWithBoundaries(WebCanvas*, const WebSize&) override;
128 void dispatchMessageEventWithOriginCheck( 128 void dispatchMessageEventWithOriginCheck(
129 const WebSecurityOrigin& intendedTargetOrigin, 129 const WebSecurityOrigin& intendedTargetOrigin,
130 const WebDOMEvent&) override; 130 const WebDOMEvent&) override;
131 131
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Accomplish that by keeping a self-referential Persistent<>. It is 188 // Accomplish that by keeping a self-referential Persistent<>. It is
189 // cleared upon close(). 189 // cleared upon close().
190 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; 190 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive;
191 }; 191 };
192 192
193 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 193 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
194 194
195 } // namespace blink 195 } // namespace blink
196 196
197 #endif // WebRemoteFrameImpl_h 197 #endif // WebRemoteFrameImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698