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

Side by Side Diff: core/src/fpdfdoc/doc_formcontrol.cpp

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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/src/fpdfdoc/doc_form.cpp ('k') | core/src/fpdfdoc/doc_formfield.cpp » ('j') | 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 "../../include/fpdfdoc/fpdf_doc.h" 7 #include "core/include/fpdfdoc/fpdf_doc.h"
8
8 CPDF_FormControl::CPDF_FormControl(CPDF_FormField* pField, 9 CPDF_FormControl::CPDF_FormControl(CPDF_FormField* pField,
9 CPDF_Dictionary* pWidgetDict) { 10 CPDF_Dictionary* pWidgetDict) {
10 m_pField = pField; 11 m_pField = pField;
11 m_pWidgetDict = pWidgetDict; 12 m_pWidgetDict = pWidgetDict;
12 m_pForm = m_pField->m_pForm; 13 m_pForm = m_pField->m_pForm;
13 } 14 }
14 CFX_FloatRect CPDF_FormControl::GetRect() const { 15 CFX_FloatRect CPDF_FormControl::GetRect() const {
15 return m_pWidgetDict->GetRect("Rect"); 16 return m_pWidgetDict->GetRect("Rect");
16 } 17 }
17 CFX_ByteString CPDF_FormControl::GetOnStateName() { 18 CFX_ByteString CPDF_FormControl::GetOnStateName() {
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 return NULL; 438 return NULL;
438 } 439 }
439 return m_pDict->GetDict(FX_BSTRC("IF")); 440 return m_pDict->GetDict(FX_BSTRC("IF"));
440 } 441 }
441 int CPDF_ApSettings::GetTextPosition() { 442 int CPDF_ApSettings::GetTextPosition() {
442 if (m_pDict == NULL) { 443 if (m_pDict == NULL) {
443 return TEXTPOS_CAPTION; 444 return TEXTPOS_CAPTION;
444 } 445 }
445 return m_pDict->GetInteger(FX_BSTRC("TP"), TEXTPOS_CAPTION); 446 return m_pDict->GetInteger(FX_BSTRC("TP"), TEXTPOS_CAPTION);
446 } 447 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_form.cpp ('k') | core/src/fpdfdoc/doc_formfield.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698