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

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

Issue 2071683002: Make code compile with clang_use_chrome_plugin (part V) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: clean up Created 4 years, 6 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_fftextedit.cpp ('k') | xfa/fxfa/app/xfa_ffwidgetacc.h » ('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 #include <memory> 10 #include <memory>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 if (bDrawFocus) 88 if (bDrawFocus)
89 return FALSE; 89 return FALSE;
90 if (m_pPageView) 90 if (m_pPageView)
91 m_pPageView->GetPageViewRect(rtBox); 91 m_pPageView->GetPageViewRect(rtBox);
92 return TRUE; 92 return TRUE;
93 } 93 }
94 94
95 CXFA_WidgetAcc* CXFA_FFWidget::GetDataAcc() { 95 CXFA_WidgetAcc* CXFA_FFWidget::GetDataAcc() {
96 return m_pDataAcc; 96 return m_pDataAcc;
97 } 97 }
98
98 FX_BOOL CXFA_FFWidget::GetToolTip(CFX_WideString& wsToolTip) { 99 FX_BOOL CXFA_FFWidget::GetToolTip(CFX_WideString& wsToolTip) {
99 if (CXFA_Assist assist = m_pDataAcc->GetAssist()) { 100 if (CXFA_Assist assist = m_pDataAcc->GetAssist()) {
100 if (CXFA_ToolTip toolTip = assist.GetToolTip()) { 101 if (CXFA_ToolTip toolTip = assist.GetToolTip()) {
101 return toolTip.GetTip(wsToolTip); 102 return toolTip.GetTip(wsToolTip);
102 } 103 }
103 } 104 }
104 return GetCaptionText(wsToolTip); 105 return GetCaptionText(wsToolTip);
105 } 106 }
106 void CXFA_FFWidget::RenderWidget(CFX_Graphics* pGS, 107 void CXFA_FFWidget::RenderWidget(CFX_Graphics* pGS,
107 CFX_Matrix* pMatrix, 108 CFX_Matrix* pMatrix,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } 254 }
254 FX_BOOL CXFA_FFWidget::OnChar(uint32_t dwChar, uint32_t dwFlags) { 255 FX_BOOL CXFA_FFWidget::OnChar(uint32_t dwChar, uint32_t dwFlags) {
255 return FALSE; 256 return FALSE;
256 } 257 }
257 FWL_WidgetHit CXFA_FFWidget::OnHitTest(FX_FLOAT fx, FX_FLOAT fy) { 258 FWL_WidgetHit CXFA_FFWidget::OnHitTest(FX_FLOAT fx, FX_FLOAT fy) {
258 return FWL_WidgetHit::Unknown; 259 return FWL_WidgetHit::Unknown;
259 } 260 }
260 FX_BOOL CXFA_FFWidget::OnSetCursor(FX_FLOAT fx, FX_FLOAT fy) { 261 FX_BOOL CXFA_FFWidget::OnSetCursor(FX_FLOAT fx, FX_FLOAT fy) {
261 return FALSE; 262 return FALSE;
262 } 263 }
264 FX_BOOL CXFA_FFWidget::CanUndo() {
265 return FALSE;
266 }
267 FX_BOOL CXFA_FFWidget::CanRedo() {
268 return FALSE;
269 }
270 FX_BOOL CXFA_FFWidget::Undo() {
271 return FALSE;
272 }
273 FX_BOOL CXFA_FFWidget::Redo() {
274 return FALSE;
275 }
276 FX_BOOL CXFA_FFWidget::CanCopy() {
277 return FALSE;
278 }
279 FX_BOOL CXFA_FFWidget::CanCut() {
280 return FALSE;
281 }
282 FX_BOOL CXFA_FFWidget::CanPaste() {
283 return FALSE;
284 }
285 FX_BOOL CXFA_FFWidget::CanSelectAll() {
286 return FALSE;
287 }
288 FX_BOOL CXFA_FFWidget::CanDelete() {
289 return CanCut();
290 }
291 FX_BOOL CXFA_FFWidget::CanDeSelect() {
292 return CanCopy();
293 }
294 FX_BOOL CXFA_FFWidget::Copy(CFX_WideString& wsCopy) {
295 return FALSE;
296 }
297 FX_BOOL CXFA_FFWidget::Cut(CFX_WideString& wsCut) {
298 return FALSE;
299 }
300 FX_BOOL CXFA_FFWidget::Paste(const CFX_WideString& wsPaste) {
301 return FALSE;
302 }
303 FX_BOOL CXFA_FFWidget::SelectAll() {
304 return FALSE;
305 }
306 FX_BOOL CXFA_FFWidget::Delete() {
307 return FALSE;
308 }
309 FX_BOOL CXFA_FFWidget::DeSelect() {
310 return FALSE;
311 }
312 FX_BOOL CXFA_FFWidget::GetSuggestWords(CFX_PointF pointf,
313 std::vector<CFX_ByteString>& sSuggest) {
314 return FALSE;
315 }
316 FX_BOOL CXFA_FFWidget::ReplaceSpellCheckWord(CFX_PointF pointf,
317 const CFX_ByteStringC& bsReplace) {
318 return FALSE;
319 }
263 void CXFA_FFWidget::Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy) { 320 void CXFA_FFWidget::Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy) {
264 CFX_Matrix mt; 321 CFX_Matrix mt;
265 GetRotateMatrix(mt); 322 GetRotateMatrix(mt);
266 if (mt.IsIdentity()) { 323 if (mt.IsIdentity()) {
267 return; 324 return;
268 } 325 }
269 CFX_Matrix mtReverse; 326 CFX_Matrix mtReverse;
270 mtReverse.SetReverse(mt); 327 mtReverse.SetReverse(mt);
271 mtReverse.TransformPoint(fx, fy); 328 mtReverse.TransformPoint(fx, fy);
272 } 329 }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 CFX_RectF rtWidget; 429 CFX_RectF rtWidget;
373 GetWidgetRect(rtWidget); 430 GetWidgetRect(rtWidget);
374 if (rtWidget.Contains(fx, fy)) { 431 if (rtWidget.Contains(fx, fy)) {
375 return TRUE; 432 return TRUE;
376 } 433 }
377 return FALSE; 434 return FALSE;
378 } 435 }
379 CXFA_FFDocView* CXFA_FFWidget::GetDocView() { 436 CXFA_FFDocView* CXFA_FFWidget::GetDocView() {
380 return m_pDocView; 437 return m_pDocView;
381 } 438 }
439 void CXFA_FFWidget::SetDocView(CXFA_FFDocView* pDocView) {
440 m_pDocView = pDocView;
441 }
382 CXFA_FFDoc* CXFA_FFWidget::GetDoc() { 442 CXFA_FFDoc* CXFA_FFWidget::GetDoc() {
383 return m_pDocView->GetDoc(); 443 return m_pDocView->GetDoc();
384 } 444 }
385 CXFA_FFApp* CXFA_FFWidget::GetApp() { 445 CXFA_FFApp* CXFA_FFWidget::GetApp() {
386 return GetDoc()->GetApp(); 446 return GetDoc()->GetApp();
387 } 447 }
388 IXFA_AppProvider* CXFA_FFWidget::GetAppProvider() { 448 IXFA_AppProvider* CXFA_FFWidget::GetAppProvider() {
389 return GetApp()->GetAppProvider(); 449 return GetApp()->GetAppProvider();
390 } 450 }
391 void CXFA_FFWidget::GetMinMaxWidth(FX_FLOAT fMinWidth, FX_FLOAT fMaxWidth) { 451 void CXFA_FFWidget::GetMinMaxWidth(FX_FLOAT fMinWidth, FX_FLOAT fMaxWidth) {
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 iType != XFA_ELEMENT_Rectangle) { 2039 iType != XFA_ELEMENT_Rectangle) {
1980 return; 2040 return;
1981 } 2041 }
1982 CXFA_StrokeArray strokes; 2042 CXFA_StrokeArray strokes;
1983 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { 2043 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) {
1984 box.GetStrokes(strokes); 2044 box.GetStrokes(strokes);
1985 } 2045 }
1986 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); 2046 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags);
1987 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); 2047 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags);
1988 } 2048 }
2049
2050 CXFA_CalcData::CXFA_CalcData() : m_iRefCount(0) {}
2051
2052 CXFA_CalcData::~CXFA_CalcData() {
2053 m_Globals.RemoveAll();
2054 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_fftextedit.cpp ('k') | xfa/fxfa/app/xfa_ffwidgetacc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698