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/include/xfa_ffwidget.h" | 7 #include "xfa/fxfa/include/xfa_ffwidget.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 } | 242 } |
243 FX_BOOL CXFA_FFWidget::OnKeyDown(uint32_t dwKeyCode, uint32_t dwFlags) { | 243 FX_BOOL CXFA_FFWidget::OnKeyDown(uint32_t dwKeyCode, uint32_t dwFlags) { |
244 return FALSE; | 244 return FALSE; |
245 } | 245 } |
246 FX_BOOL CXFA_FFWidget::OnKeyUp(uint32_t dwKeyCode, uint32_t dwFlags) { | 246 FX_BOOL CXFA_FFWidget::OnKeyUp(uint32_t dwKeyCode, uint32_t dwFlags) { |
247 return FALSE; | 247 return FALSE; |
248 } | 248 } |
249 FX_BOOL CXFA_FFWidget::OnChar(uint32_t dwChar, uint32_t dwFlags) { | 249 FX_BOOL CXFA_FFWidget::OnChar(uint32_t dwChar, uint32_t dwFlags) { |
250 return FALSE; | 250 return FALSE; |
251 } | 251 } |
252 uint32_t CXFA_FFWidget::OnHitTest(FX_FLOAT fx, FX_FLOAT fy) { | 252 FWL_WidgetHit CXFA_FFWidget::OnHitTest(FX_FLOAT fx, FX_FLOAT fy) { |
253 return FALSE; | 253 return FWL_WidgetHit::Unknown; |
254 } | 254 } |
255 FX_BOOL CXFA_FFWidget::OnSetCursor(FX_FLOAT fx, FX_FLOAT fy) { | 255 FX_BOOL CXFA_FFWidget::OnSetCursor(FX_FLOAT fx, FX_FLOAT fy) { |
256 return FALSE; | 256 return FALSE; |
257 } | 257 } |
258 void CXFA_FFWidget::Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy) { | 258 void CXFA_FFWidget::Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy) { |
259 CFX_Matrix mt; | 259 CFX_Matrix mt; |
260 GetRotateMatrix(mt); | 260 GetRotateMatrix(mt); |
261 if (mt.IsIdentity()) { | 261 if (mt.IsIdentity()) { |
262 return; | 262 return; |
263 } | 263 } |
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1955 iType != XFA_ELEMENT_Rectangle) { | 1955 iType != XFA_ELEMENT_Rectangle) { |
1956 return; | 1956 return; |
1957 } | 1957 } |
1958 CXFA_StrokeArray strokes; | 1958 CXFA_StrokeArray strokes; |
1959 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { | 1959 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { |
1960 box.GetStrokes(strokes); | 1960 box.GetStrokes(strokes); |
1961 } | 1961 } |
1962 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 1962 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
1963 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 1963 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
1964 } | 1964 } |
OLD | NEW |