OLD | NEW |
---|---|
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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" | 9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" |
10 #include "fpdfsdk/include/fsdk_annothandler.h" | 10 #include "fpdfsdk/include/fsdk_annothandler.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 return pAnnotHandler->OnRButtonUp(pPageView, pAnnot, nFlags, point); | 233 return pAnnotHandler->OnRButtonUp(pPageView, pAnnot, nFlags, point); |
234 } | 234 } |
235 return FALSE; | 235 return FALSE; |
236 } | 236 } |
237 | 237 |
238 void CPDFSDK_AnnotHandlerMgr::Annot_OnMouseEnter(CPDFSDK_PageView* pPageView, | 238 void CPDFSDK_AnnotHandlerMgr::Annot_OnMouseEnter(CPDFSDK_PageView* pPageView, |
239 CPDFSDK_Annot* pAnnot, | 239 CPDFSDK_Annot* pAnnot, |
240 FX_DWORD nFlag) { | 240 FX_DWORD nFlag) { |
241 ASSERT(pAnnot); | 241 ASSERT(pAnnot); |
242 | 242 |
243 if (IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot)) { | 243 if (IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot)) { |
Tom Sepez
2016/01/26 00:15:38
nit: no {}.
Lei Zhang
2016/01/26 00:31:02
Done.
| |
244 pAnnotHandler->OnMouseEnter(pPageView, pAnnot, nFlag); | 244 pAnnotHandler->OnMouseEnter(pPageView, pAnnot, nFlag); |
245 } | 245 } |
246 return; | |
247 } | 246 } |
248 | 247 |
249 void CPDFSDK_AnnotHandlerMgr::Annot_OnMouseExit(CPDFSDK_PageView* pPageView, | 248 void CPDFSDK_AnnotHandlerMgr::Annot_OnMouseExit(CPDFSDK_PageView* pPageView, |
250 CPDFSDK_Annot* pAnnot, | 249 CPDFSDK_Annot* pAnnot, |
251 FX_DWORD nFlag) { | 250 FX_DWORD nFlag) { |
252 ASSERT(pAnnot); | 251 ASSERT(pAnnot); |
253 | 252 |
254 if (IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot)) { | 253 if (IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot)) { |
Tom Sepez
2016/01/26 00:15:38
nit: no {}
Lei Zhang
2016/01/26 00:31:02
Done.
| |
255 pAnnotHandler->OnMouseExit(pPageView, pAnnot, nFlag); | 254 pAnnotHandler->OnMouseExit(pPageView, pAnnot, nFlag); |
256 } | 255 } |
257 return; | |
258 } | 256 } |
259 | 257 |
260 FX_BOOL CPDFSDK_AnnotHandlerMgr::Annot_OnChar(CPDFSDK_Annot* pAnnot, | 258 FX_BOOL CPDFSDK_AnnotHandlerMgr::Annot_OnChar(CPDFSDK_Annot* pAnnot, |
261 FX_DWORD nChar, | 259 FX_DWORD nChar, |
262 FX_DWORD nFlags) { | 260 FX_DWORD nFlags) { |
263 if (IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot)) { | 261 if (IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot)) { |
264 return pAnnotHandler->OnChar(pAnnot, nChar, nFlags); | 262 return pAnnotHandler->OnChar(pAnnot, nChar, nFlags); |
265 } | 263 } |
266 return FALSE; | 264 return FALSE; |
267 } | 265 } |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1171 | 1169 |
1172 CPDFSDK_Annot* CPDFSDK_AnnotIterator::PrevAnnot() { | 1170 CPDFSDK_Annot* CPDFSDK_AnnotIterator::PrevAnnot() { |
1173 if (m_pos < m_iteratorAnnotList.size()) | 1171 if (m_pos < m_iteratorAnnotList.size()) |
1174 return m_iteratorAnnotList[m_iteratorAnnotList.size() - ++m_pos]; | 1172 return m_iteratorAnnotList[m_iteratorAnnotList.size() - ++m_pos]; |
1175 return nullptr; | 1173 return nullptr; |
1176 } | 1174 } |
1177 | 1175 |
1178 CPDFSDK_Annot* CPDFSDK_AnnotIterator::Next() { | 1176 CPDFSDK_Annot* CPDFSDK_AnnotIterator::Next() { |
1179 return m_bReverse ? PrevAnnot() : NextAnnot(); | 1177 return m_bReverse ? PrevAnnot() : NextAnnot(); |
1180 } | 1178 } |
OLD | NEW |