Chromium Code Reviews| Index: printing/page_setup.h |
| diff --git a/printing/page_setup.h b/printing/page_setup.h |
| index 91734753acaacda210fd2ee5a248a0ad6b4d3f4b..3fb259f60b47a115421e38bcf6b2c4af1fe914a8 100644 |
| --- a/printing/page_setup.h |
| +++ b/printing/page_setup.h |
| @@ -15,6 +15,10 @@ class PRINTING_EXPORT PageMargins { |
| public: |
| PageMargins(); |
| + // Rotates |page_margins| values in anti-clockwise direction and update the |
| + // current values. |
| + void RotatePageMarginsAndUpdateCurrentValue(const PageMargins& page_margins); |
|
vandebo (ex-Chrome)
2011/11/03 17:26:35
I think a simple "Rotate(void)" method, that modif
kmadhusu
2011/11/03 20:46:54
Yes. It will work perfectly. Fixed.
|
| + |
| void Clear(); |
| // Equality operator. |
| @@ -64,6 +68,9 @@ class PRINTING_EXPORT PageSetup { |
| } |
| private: |
| + // Store |requested_margins_| and update page setup values. |
| + void SetRequestedMarginsAndUpdateValues(const PageMargins& requested_margins); |
| + |
| // Calculate overlay_area_, effective_margins_, and content_area_, based on |
| // a constraint of |bounds| and |text_height|. |
| void CalculateSizesWithinRect(const gfx::Rect& bounds, int text_height); |
| @@ -87,6 +94,9 @@ class PRINTING_EXPORT PageSetup { |
| // Requested margins. |
| PageMargins requested_margins_; |
| + // True when the |requested_margins_| respects |printable_area_| else false. |
|
vandebo (ex-Chrome)
2011/11/03 17:26:35
True when |effective_margins_|...
kmadhusu
2011/11/03 20:46:54
Done.
|
| + bool forced_margins_; |
| + |
| // Space that must be kept free for the overlays. |
| int text_height_; |
| }; |