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

Side by Side Diff: xfa/fxfa/app/xfa_fffield.cpp

Issue 2082573007: Update GetClassID to GetElementType (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@remove_script_obj_hash
Patch Set: Created 4 years, 6 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 "xfa/fxfa/app/xfa_fffield.h" 7 #include "xfa/fxfa/app/xfa_fffield.h"
8 8
9 #include "xfa/fwl/basewidget/ifwl_edit.h" 9 #include "xfa/fwl/basewidget/ifwl_edit.h"
10 #include "xfa/fwl/core/cfwl_message.h" 10 #include "xfa/fwl/core/cfwl_message.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 } 316 }
317 } 317 }
318 void CXFA_FFField::UpdateFWL() { 318 void CXFA_FFField::UpdateFWL() {
319 if (m_pNormalWidget) { 319 if (m_pNormalWidget) {
320 m_pNormalWidget->Update(); 320 m_pNormalWidget->Update();
321 } 321 }
322 } 322 }
323 uint32_t CXFA_FFField::UpdateUIProperty() { 323 uint32_t CXFA_FFField::UpdateUIProperty() {
324 CXFA_Node* pUiNode = m_pDataAcc->GetUIChild(); 324 CXFA_Node* pUiNode = m_pDataAcc->GetUIChild();
325 uint32_t dwStyle = 0; 325 uint32_t dwStyle = 0;
326 if (pUiNode && pUiNode->GetClassID() == XFA_Element::DefaultUi) { 326 if (pUiNode && pUiNode->GetElementType() == XFA_Element::DefaultUi) {
327 dwStyle = FWL_STYLEEXT_EDT_ReadOnly; 327 dwStyle = FWL_STYLEEXT_EDT_ReadOnly;
328 } 328 }
329 return dwStyle; 329 return dwStyle;
330 } 330 }
331 void CXFA_FFField::SetFWLRect() { 331 void CXFA_FFField::SetFWLRect() {
332 if (!m_pNormalWidget) { 332 if (!m_pNormalWidget) {
333 return; 333 return;
334 } 334 }
335 CFX_RectF rtUi = m_rtUI; 335 CFX_RectF rtUi = m_rtUI;
336 if (rtUi.width < 1.0) 336 if (rtUi.width < 1.0)
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam); 818 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam);
819 break; 819 break;
820 } 820 }
821 default: 821 default:
822 break; 822 break;
823 } 823 }
824 } 824 }
825 825
826 void CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics, 826 void CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics,
827 const CFX_Matrix* pMatrix) {} 827 const CFX_Matrix* pMatrix) {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698