diff options
author | Avi Drissman <avi@chromium.org> | 2014-12-22 13:01:32 -0500 |
---|---|---|
committer | Avi Drissman <avi@chromium.org> | 2014-12-22 18:00:18 +0000 |
commit | 95c2a1b7d5626b287be55e41a5cfc33c6880eb46 (patch) | |
tree | 9197374b999a014b0e58882e5baad9bb2706d0b4 /printing | |
parent | 8ac7fadcb6c15478a7e78554a7fe75e8b239f75b (diff) | |
download | chromium_src-95c2a1b7d5626b287be55e41a5cfc33c6880eb46.zip chromium_src-95c2a1b7d5626b287be55e41a5cfc33c6880eb46.tar.gz chromium_src-95c2a1b7d5626b287be55e41a5cfc33c6880eb46.tar.bz2 |
Update legacy Tuple-using code.
BUG=440675
TEST=no change
R=mdempsky@chromium.org, thakis@chromium.org
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/821453003
Cr-Commit-Position: refs/heads/master@{#309441}
Diffstat (limited to 'printing')
-rw-r--r-- | printing/pdf_render_settings.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/printing/pdf_render_settings.h b/printing/pdf_render_settings.h index 9e8f930..1de192d 100644 --- a/printing/pdf_render_settings.h +++ b/printing/pdf_render_settings.h @@ -16,7 +16,7 @@ namespace printing { // gfx::Rect - render area // int - render dpi // bool - autorotate pages to fit paper -typedef Tuple3<gfx::Rect, int, bool> PdfRenderSettingsBase; +typedef Tuple<gfx::Rect, int, bool> PdfRenderSettingsBase; class PdfRenderSettings : public PdfRenderSettingsBase { public: @@ -25,9 +25,9 @@ class PdfRenderSettings : public PdfRenderSettingsBase { : PdfRenderSettingsBase(area, dpi, autorotate) {} ~PdfRenderSettings() {} - const gfx::Rect& area() const { return a; } - int dpi() const { return b; } - bool autorotate() const { return c; } + const gfx::Rect& area() const { return ::get<0>(*this); } + int dpi() const { return ::get<1>(*this); } + bool autorotate() const { return ::get<2>(*this); } }; } // namespace printing |