| 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/fwl/core/cfwl_widgetmgr.h" | 7 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "third_party/base/ptr_util.h" | 11 #include "third_party/base/ptr_util.h" |
| 12 #include "xfa/fwl/core/cfwl_app.h" |
| 12 #include "xfa/fwl/core/cfwl_notedriver.h" | 13 #include "xfa/fwl/core/cfwl_notedriver.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/xfa_ffapp.h" | 16 #include "xfa/fxfa/xfa_ffapp.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 const int kNeedRepaintHitPoints = 12; | 20 const int kNeedRepaintHitPoints = 12; |
| 21 const int kNeedRepaintHitPiece = 3; | 21 const int kNeedRepaintHitPiece = 3; |
| 22 | 22 |
| 23 struct FWL_NEEDREPAINTHITDATA { | 23 struct FWL_NEEDREPAINTHITDATA { |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 m_dwCapability = dwCapability; | 465 m_dwCapability = dwCapability; |
| 466 } | 466 } |
| 467 | 467 |
| 468 void CFWL_WidgetMgr::OnProcessMessageToForm(CFWL_Message* pMessage) { | 468 void CFWL_WidgetMgr::OnProcessMessageToForm(CFWL_Message* pMessage) { |
| 469 if (!pMessage) | 469 if (!pMessage) |
| 470 return; | 470 return; |
| 471 if (!pMessage->m_pDstTarget) | 471 if (!pMessage->m_pDstTarget) |
| 472 return; | 472 return; |
| 473 | 473 |
| 474 IFWL_Widget* pDstWidget = pMessage->m_pDstTarget; | 474 IFWL_Widget* pDstWidget = pMessage->m_pDstTarget; |
| 475 const IFWL_App* pApp = pDstWidget->GetOwnerApp(); | 475 const CFWL_App* pApp = pDstWidget->GetOwnerApp(); |
| 476 if (!pApp) | 476 if (!pApp) |
| 477 return; | 477 return; |
| 478 | 478 |
| 479 CFWL_NoteDriver* pNoteDriver = | 479 CFWL_NoteDriver* pNoteDriver = |
| 480 static_cast<CFWL_NoteDriver*>(pApp->GetNoteDriver()); | 480 static_cast<CFWL_NoteDriver*>(pApp->GetNoteDriver()); |
| 481 if (!pNoteDriver) | 481 if (!pNoteDriver) |
| 482 return; | 482 return; |
| 483 | 483 |
| 484 std::unique_ptr<CFWL_Message> pClonedMessage = pMessage->Clone(); | 484 std::unique_ptr<CFWL_Message> pClonedMessage = pMessage->Clone(); |
| 485 if (IsFormDisabled()) | 485 if (IsFormDisabled()) |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 pWidget(widget), | 759 pWidget(widget), |
| 760 iRedrawCounter(0) | 760 iRedrawCounter(0) |
| 761 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) | 761 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) |
| 762 , | 762 , |
| 763 bOutsideChanged(false) | 763 bOutsideChanged(false) |
| 764 #endif | 764 #endif |
| 765 { | 765 { |
| 766 } | 766 } |
| 767 | 767 |
| 768 CFWL_WidgetMgr::Item::~Item() {} | 768 CFWL_WidgetMgr::Item::~Item() {} |
| OLD | NEW |