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/fwl_gridimp.h" | 7 #include "xfa/fwl/core/fwl_gridimp.h" |
8 | 8 |
| 9 #include "xfa/fwl/core/cfwl_message.h" |
| 10 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
9 #include "xfa/fwl/core/fwl_contentimp.h" | 11 #include "xfa/fwl/core/fwl_contentimp.h" |
10 #include "xfa/fwl/core/fwl_noteimp.h" | 12 #include "xfa/fwl/core/fwl_noteimp.h" |
11 #include "xfa/fwl/core/fwl_targetimp.h" | 13 #include "xfa/fwl/core/fwl_targetimp.h" |
12 #include "xfa/fwl/core/fwl_threadimp.h" | 14 #include "xfa/fwl/core/fwl_threadimp.h" |
13 #include "xfa/fwl/core/fwl_widgetimp.h" | 15 #include "xfa/fwl/core/fwl_widgetimp.h" |
14 #include "xfa/fxgraphics/cfx_color.h" | 16 #include "xfa/fxgraphics/cfx_color.h" |
15 #include "xfa/fxgraphics/cfx_path.h" | 17 #include "xfa/fxgraphics/cfx_path.h" |
16 | 18 |
17 // static | 19 // static |
18 IFWL_Grid* IFWL_Grid::Create(const CFWL_WidgetImpProperties& properties) { | 20 IFWL_Grid* IFWL_Grid::Create(const CFWL_WidgetImpProperties& properties) { |
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1371 CFWL_MsgMouse* pMsg = static_cast<CFWL_MsgMouse*>(pMessage); | 1373 CFWL_MsgMouse* pMsg = static_cast<CFWL_MsgMouse*>(pMessage); |
1372 if (pMsg->m_dwCmd != FWL_MSGMOUSECMD_LButtonDown) { | 1374 if (pMsg->m_dwCmd != FWL_MSGMOUSECMD_LButtonDown) { |
1373 return 0; | 1375 return 0; |
1374 } | 1376 } |
1375 return 1; | 1377 return 1; |
1376 } | 1378 } |
1377 FWL_ERR CFWL_GridImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, | 1379 FWL_ERR CFWL_GridImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, |
1378 const CFX_Matrix* pMatrix) { | 1380 const CFX_Matrix* pMatrix) { |
1379 return m_pOwner->DrawWidget(pGraphics, pMatrix); | 1381 return m_pOwner->DrawWidget(pGraphics, pMatrix); |
1380 } | 1382 } |
OLD | NEW |