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 "xfa/fxfa/app/xfa_fftextedit.h" | 7 #include "xfa/fxfa/app/xfa_fftextedit.h" |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 FWLToClient(ms.m_fx, ms.m_fy); | 139 FWLToClient(ms.m_fx, ms.m_fy); |
140 TranslateFWLMessage(&ms); | 140 TranslateFWLMessage(&ms); |
141 return TRUE; | 141 return TRUE; |
142 } | 142 } |
143 FX_BOOL CXFA_FFTextEdit::OnRButtonUp(uint32_t dwFlags, | 143 FX_BOOL CXFA_FFTextEdit::OnRButtonUp(uint32_t dwFlags, |
144 FX_FLOAT fx, | 144 FX_FLOAT fx, |
145 FX_FLOAT fy) { | 145 FX_FLOAT fy) { |
146 if (!CXFA_FFField::OnRButtonUp(dwFlags, fx, fy)) | 146 if (!CXFA_FFField::OnRButtonUp(dwFlags, fx, fy)) |
147 return FALSE; | 147 return FALSE; |
148 | 148 |
149 GetDoc()->GetDocProvider()->PopupMenu(this, CFX_PointF(fx, fy), nullptr); | 149 GetDoc()->GetDocProvider()->PopupMenu(this, CFX_PointF(fx, fy)); |
150 return TRUE; | 150 return TRUE; |
151 } | 151 } |
152 FX_BOOL CXFA_FFTextEdit::OnSetFocus(CXFA_FFWidget* pOldWidget) { | 152 FX_BOOL CXFA_FFTextEdit::OnSetFocus(CXFA_FFWidget* pOldWidget) { |
153 m_dwStatus &= ~XFA_WidgetStatus_TextEditValueChanged; | 153 m_dwStatus &= ~XFA_WidgetStatus_TextEditValueChanged; |
154 if (!IsFocused()) { | 154 if (!IsFocused()) { |
155 m_dwStatus |= XFA_WidgetStatus_Focused; | 155 m_dwStatus |= XFA_WidgetStatus_Focused; |
156 UpdateFWLData(); | 156 UpdateFWLData(); |
157 AddInvalidateRect(); | 157 AddInvalidateRect(); |
158 } | 158 } |
159 CXFA_FFWidget::OnSetFocus(pOldWidget); | 159 CXFA_FFWidget::OnSetFocus(pOldWidget); |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 | 782 |
783 void CXFA_FFDateTimeEdit::OnProcessEvent(CFWL_Event* pEvent) { | 783 void CXFA_FFDateTimeEdit::OnProcessEvent(CFWL_Event* pEvent) { |
784 if (pEvent->GetClassID() == CFWL_EventType::SelectChanged) { | 784 if (pEvent->GetClassID() == CFWL_EventType::SelectChanged) { |
785 CFWL_Event_DtpSelectChanged* event = (CFWL_Event_DtpSelectChanged*)pEvent; | 785 CFWL_Event_DtpSelectChanged* event = (CFWL_Event_DtpSelectChanged*)pEvent; |
786 OnSelectChanged(m_pNormalWidget->GetWidget(), event->iYear, event->iMonth, | 786 OnSelectChanged(m_pNormalWidget->GetWidget(), event->iYear, event->iMonth, |
787 event->iDay); | 787 event->iDay); |
788 return; | 788 return; |
789 } | 789 } |
790 CXFA_FFTextEdit::OnProcessEvent(pEvent); | 790 CXFA_FFTextEdit::OnProcessEvent(pEvent); |
791 } | 791 } |
OLD | NEW |