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

Side by Side Diff: fpdfsdk/fpdfeditpage.cpp

Issue 2302683002: Make StateData private (Closed)
Patch Set: Alphabetical order Created 4 years, 3 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
« no previous file with comments | « core/fpdfapi/fpdf_render/fpdf_render.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "public/fpdf_edit.h" 7 #include "public/fpdf_edit.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
11 #include <utility> 11 #include <utility>
12 12
13 #include "core/fpdfapi/fpdf_edit/include/cpdf_pagecontentgenerator.h" 13 #include "core/fpdfapi/fpdf_edit/include/cpdf_pagecontentgenerator.h"
14 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h" 14 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h"
15 #include "core/fpdfapi/fpdf_page/include/cpdf_formobject.h" 15 #include "core/fpdfapi/fpdf_page/include/cpdf_formobject.h"
16 #include "core/fpdfapi/fpdf_page/include/cpdf_generalstatedata.h"
17 #include "core/fpdfapi/fpdf_page/include/cpdf_imageobject.h" 16 #include "core/fpdfapi/fpdf_page/include/cpdf_imageobject.h"
18 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" 17 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
19 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" 18 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h"
20 #include "core/fpdfapi/fpdf_page/include/cpdf_pathobject.h" 19 #include "core/fpdfapi/fpdf_page/include/cpdf_pathobject.h"
21 #include "core/fpdfapi/fpdf_page/include/cpdf_shadingobject.h" 20 #include "core/fpdfapi/fpdf_page/include/cpdf_shadingobject.h"
22 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 21 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
23 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 22 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
24 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h" 23 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h"
25 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" 24 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h"
26 #include "core/fpdfdoc/include/cpdf_annot.h" 25 #include "core/fpdfdoc/include/cpdf_annot.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 310
312 DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate) { 311 DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate) {
313 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); 312 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
314 if (!IsPageObject(pPage)) 313 if (!IsPageObject(pPage))
315 return; 314 return;
316 315
317 CPDF_Dictionary* pDict = pPage->m_pFormDict; 316 CPDF_Dictionary* pDict = pPage->m_pFormDict;
318 rotate %= 4; 317 rotate %= 4;
319 pDict->SetAt("Rotate", new CPDF_Number(rotate * 90)); 318 pDict->SetAt("Rotate", new CPDF_Number(rotate * 90));
320 } 319 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_render/fpdf_render.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698