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

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

Issue 1948583002: Remove FWL_WGTHITTEST_* defines in favour of enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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/fxfa/app/xfa_fftext.cpp ('k') | xfa/fxfa/app/xfa_ffwidgethandler.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/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
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
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 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_fftext.cpp ('k') | xfa/fxfa/app/xfa_ffwidgethandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698