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

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.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 WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include "WebFrame.h" 8 #include "WebFrame.h"
9 #include "WebFrameLoadType.h" 9 #include "WebFrameLoadType.h"
10 10
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 virtual bool isPageBoxVisible(int pageIndex) = 0; 151 virtual bool isPageBoxVisible(int pageIndex) = 0;
152 152
153 // Returns true if the page style has custom size information. 153 // Returns true if the page style has custom size information.
154 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; 154 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0;
155 155
156 // Returns the preferred page size and margins in pixels, assuming 96 156 // Returns the preferred page size and margins in pixels, assuming 96
157 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 157 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
158 // marginLeft must be initialized to the default values that are used if 158 // marginLeft must be initialized to the default values that are used if
159 // auto is specified. 159 // auto is specified.
160 virtual void pageSizeAndMarginsInPixels(int pageIndex, 160 virtual void pageSizeAndMarginsInPixels(int pageIndex,
161 WebSize& pageSize, 161 WebFloatSize& pageSize,
162 int& marginTop, 162 int& marginTop,
163 int& marginRight, 163 int& marginRight,
164 int& marginBottom, 164 int& marginBottom,
165 int& marginLeft) = 0; 165 int& marginLeft) = 0;
166 166
167 // Returns the value for a page property that is only defined when printing. 167 // Returns the value for a page property that is only defined when printing.
168 // printBegin must have been called before this method. 168 // printBegin must have been called before this method.
169 virtual WebString pageProperty(const WebString& propertyName, int pageIndex) = 0; 169 virtual WebString pageProperty(const WebString& propertyName, int pageIndex) = 0;
170 170
171 171
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // to call these on a WebLocalFrame. 428 // to call these on a WebLocalFrame.
429 bool isWebLocalFrame() const override = 0; 429 bool isWebLocalFrame() const override = 0;
430 WebLocalFrame* toWebLocalFrame() override = 0; 430 WebLocalFrame* toWebLocalFrame() override = 0;
431 bool isWebRemoteFrame() const override = 0; 431 bool isWebRemoteFrame() const override = 0;
432 WebRemoteFrame* toWebRemoteFrame() override = 0; 432 WebRemoteFrame* toWebRemoteFrame() override = 0;
433 }; 433 };
434 434
435 } // namespace blink 435 } // namespace blink
436 436
437 #endif // WebLocalFrame_h 437 #endif // WebLocalFrame_h
OLDNEW
« third_party/WebKit/public/web/WebFrame.h ('K') | « third_party/WebKit/public/web/WebFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698