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

Side by Side Diff: xfa/fwl/core/cfwl_widgetmgr.cpp

Issue 2004293004: Rename fwl_widgetmgrimp.{cpp,h} to cfwl_widgetmgr.{cpp,h} (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Explicit ctor Created 4 years, 7 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
« no previous file with comments | « xfa/fwl/core/cfwl_widgetmgr.h ('k') | xfa/fwl/core/fwl_appimp.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 "xfa/fwl/core/fwl_widgetmgrimp.h" 7 #include "xfa/fwl/core/cfwl_widgetmgr.h"
8 8
9 #include "xfa/fwl/core/cfwl_message.h" 9 #include "xfa/fwl/core/cfwl_message.h"
10 #include "xfa/fwl/core/fwl_appimp.h" 10 #include "xfa/fwl/core/fwl_appimp.h"
11 #include "xfa/fwl/core/fwl_noteimp.h" 11 #include "xfa/fwl/core/fwl_noteimp.h"
12 #include "xfa/fwl/core/fwl_widgetimp.h" 12 #include "xfa/fwl/core/fwl_widgetimp.h"
13 #include "xfa/fwl/core/ifwl_app.h" 13 #include "xfa/fwl/core/ifwl_app.h"
14 #include "xfa/fwl/core/ifwl_form.h" 14 #include "xfa/fwl/core/ifwl_form.h"
15 #include "xfa/fxfa/app/xfa_fwladapter.h" 15 #include "xfa/fxfa/app/xfa_fwladapter.h"
16 #include "xfa/fxfa/include/xfa_ffapp.h" 16 #include "xfa/fxfa/include/xfa_ffapp.h"
17 17
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 CFX_Graphics* pTemp = DrawWidgetBefore(pWidget, pGraphics, pMatrix); 612 CFX_Graphics* pTemp = DrawWidgetBefore(pWidget, pGraphics, pMatrix);
613 CFX_RectF clipCopy; 613 CFX_RectF clipCopy;
614 pWidget->GetWidgetRect(clipCopy); 614 pWidget->GetWidgetRect(clipCopy);
615 clipCopy.left = clipCopy.top = 0; 615 clipCopy.left = clipCopy.top = 0;
616 if (bUseOffscreenDirect(pWidget)) { 616 if (bUseOffscreenDirect(pWidget)) {
617 DrawWidgetAfter(pWidget, pGraphics, clipCopy, pMatrix); 617 DrawWidgetAfter(pWidget, pGraphics, clipCopy, pMatrix);
618 return; 618 return;
619 } 619 }
620 CFX_RectF clipBounds; 620 CFX_RectF clipBounds;
621 621
622 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) || \ 622 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_ || \
623 (_FX_OS_ == _FX_LINUX_DESKTOP_) || (_FX_OS_ == _FX_ANDROID_) 623 _FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_
624 IFWL_WidgetDelegate* pDelegate = pWidget->SetDelegate(NULL); 624 IFWL_WidgetDelegate* pDelegate = pWidget->SetDelegate(NULL);
625 pDelegate->OnDrawWidget(pTemp, pMatrix); 625 pDelegate->OnDrawWidget(pTemp, pMatrix);
626 pGraphics->GetClipRect(clipBounds); 626 pGraphics->GetClipRect(clipBounds);
627 clipCopy = clipBounds; 627 clipCopy = clipBounds;
628 #elif(_FX_OS_ == _FX_MACOSX_) 628 #elif _FX_OS_ == _FX_MACOSX_
629 if (m_pWidgetMgr->IsFormDisabled()) { 629 if (m_pWidgetMgr->IsFormDisabled()) {
630 IFWL_WidgetDelegate* pDelegate = pWidget->SetDelegate(NULL); 630 IFWL_WidgetDelegate* pDelegate = pWidget->SetDelegate(NULL);
631 pDelegate->OnDrawWidget(pTemp, pMatrix); 631 pDelegate->OnDrawWidget(pTemp, pMatrix);
632 pGraphics->GetClipRect(clipBounds); 632 pGraphics->GetClipRect(clipBounds);
633 clipCopy = clipBounds; 633 clipCopy = clipBounds;
634 } else { 634 } else {
635 clipBounds.Set(pMatrix->a, pMatrix->b, pMatrix->c, pMatrix->d); 635 clipBounds.Set(pMatrix->a, pMatrix->b, pMatrix->c, pMatrix->d);
636 const_cast<CFX_Matrix*>(pMatrix)->SetIdentity(); // FIXME: const cast. 636 const_cast<CFX_Matrix*>(pMatrix)->SetIdentity(); // FIXME: const cast.
637 IFWL_WidgetDelegate* pDelegate = pWidget->SetDelegate(NULL); 637 IFWL_WidgetDelegate* pDelegate = pWidget->SetDelegate(NULL);
638 pDelegate->OnDrawWidget(pTemp, pMatrix); 638 pDelegate->OnDrawWidget(pTemp, pMatrix);
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 temp.Deflate(50, 50); 853 temp.Deflate(50, 50);
854 if (!temp.Contains(r)) 854 if (!temp.Contains(r))
855 return FALSE; 855 return FALSE;
856 856
857 pItem->bOutsideChanged = FALSE; 857 pItem->bOutsideChanged = FALSE;
858 } 858 }
859 #endif 859 #endif
860 860
861 return pItem->iRedrawCounter == 0; 861 return pItem->iRedrawCounter == 0;
862 } 862 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_widgetmgr.h ('k') | xfa/fwl/core/fwl_appimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698