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

Side by Side Diff: fpdfsdk/src/fsdk_annothandler.cpp

Issue 1277043002: XFA: clang-format all pdfium code, again. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 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 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/fsdk_define.h" 7 #include "../include/fsdk_define.h"
8 #include "../include/fpdfxfa/fpdfxfa_doc.h" 8 #include "../include/fpdfxfa/fpdfxfa_doc.h"
9 #include "../include/fpdfxfa/fpdfxfa_util.h" 9 #include "../include/fpdfxfa/fpdfxfa_util.h"
10 #include "../include/fsdk_mgr.h" 10 #include "../include/fsdk_mgr.h"
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 ASSERT(pPageView); 735 ASSERT(pPageView);
736 ASSERT(pAnnot); 736 ASSERT(pAnnot);
737 737
738 CPDF_Rect rect = GetViewBBox(pPageView, pAnnot); 738 CPDF_Rect rect = GetViewBBox(pPageView, pAnnot);
739 return rect.Contains(point.x, point.y); 739 return rect.Contains(point.x, point.y);
740 } 740 }
741 741
742 // CPDFSDK_XFAAnnotHandler 742 // CPDFSDK_XFAAnnotHandler
743 743
744 #define FWL_WGTHITTEST_Unknown 0 744 #define FWL_WGTHITTEST_Unknown 0
745 #define FWL_WGTHITTEST_Client 1 // arrow 745 #define FWL_WGTHITTEST_Client 1 // arrow
746 #define FWL_WGTHITTEST_Titlebar 11 // caption 746 #define FWL_WGTHITTEST_Titlebar 11 // caption
747 #define FWL_WGTHITTEST_HScrollBar 15 747 #define FWL_WGTHITTEST_HScrollBar 15
748 #define FWL_WGTHITTEST_VScrollBar 16 748 #define FWL_WGTHITTEST_VScrollBar 16
749 #define FWL_WGTHITTEST_Border 17 749 #define FWL_WGTHITTEST_Border 17
750 #define FWL_WGTHITTEST_Edit 19 750 #define FWL_WGTHITTEST_Edit 19
751 #define FWL_WGTHITTEST_HyperLink 20 751 #define FWL_WGTHITTEST_HyperLink 20
752 752
753 CPDFSDK_XFAAnnotHandler::CPDFSDK_XFAAnnotHandler(CPDFDoc_Environment* pApp) 753 CPDFSDK_XFAAnnotHandler::CPDFSDK_XFAAnnotHandler(CPDFDoc_Environment* pApp)
754 : m_pApp(pApp) {} 754 : m_pApp(pApp) {}
755 755
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 if (pReaderAnnot == pTopMostAnnot) { 1311 if (pReaderAnnot == pTopMostAnnot) {
1312 m_pIteratorAnnotList.RemoveAt(i); 1312 m_pIteratorAnnotList.RemoveAt(i);
1313 m_pIteratorAnnotList.InsertAt(0, pReaderAnnot); 1313 m_pIteratorAnnotList.InsertAt(0, pReaderAnnot);
1314 break; 1314 break;
1315 } 1315 }
1316 } 1316 }
1317 } 1317 }
1318 1318
1319 return TRUE; 1319 return TRUE;
1320 } 1320 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698