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

Side by Side Diff: xfa/fwl/core/fwl_widgetimp.cpp

Issue 2017773002: Test CL. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: 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
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/fwl/core/fwl_widgetimp.h" 7 #include "xfa/fwl/core/fwl_widgetimp.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 uint32_t IFWL_Widget::GetEventKey() const { 98 uint32_t IFWL_Widget::GetEventKey() const {
99 return GetImpl()->GetEventKey(); 99 return GetImpl()->GetEventKey();
100 } 100 }
101 101
102 void IFWL_Widget::SetEventKey(uint32_t key) { 102 void IFWL_Widget::SetEventKey(uint32_t key) {
103 GetImpl()->SetEventKey(key); 103 GetImpl()->SetEventKey(key);
104 } 104 }
105 105
106 void* IFWL_Widget::GetLayoutItem() const { 106 CXFA_FFWidget* IFWL_Widget::GetLayoutItem() const {
107 return GetImpl()->GetLayoutItem(); 107 return GetImpl()->GetLayoutItem();
108 } 108 }
109 109
110 void IFWL_Widget::SetLayoutItem(void* pItem) { 110 void IFWL_Widget::SetLayoutItem(CXFA_FFWidget* pItem) {
111 GetImpl()->SetLayoutItem(pItem); 111 GetImpl()->SetLayoutItem(pItem);
112 } 112 }
113 113
114 FWL_Error IFWL_Widget::SetPrivateData(void* module_id, 114 FWL_Error IFWL_Widget::SetPrivateData(void* module_id,
115 void* pData, 115 void* pData,
116 PD_CALLBACK_FREEDATA callback) { 116 PD_CALLBACK_FREEDATA callback) {
117 return GetImpl()->SetPrivateData(module_id, pData, callback); 117 return GetImpl()->SetPrivateData(module_id, pData, callback);
118 } 118 }
119 void* IFWL_Widget::GetPrivateData(void* module_id) { 119 void* IFWL_Widget::GetPrivateData(void* module_id) {
120 return GetImpl()->GetPrivateData(module_id); 120 return GetImpl()->GetPrivateData(module_id);
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 } 518 }
519 519
520 uint32_t CFWL_WidgetImp::GetEventKey() const { 520 uint32_t CFWL_WidgetImp::GetEventKey() const {
521 return m_nEventKey; 521 return m_nEventKey;
522 } 522 }
523 523
524 void CFWL_WidgetImp::SetEventKey(uint32_t key) { 524 void CFWL_WidgetImp::SetEventKey(uint32_t key) {
525 m_nEventKey = key; 525 m_nEventKey = key;
526 } 526 }
527 527
528 void* CFWL_WidgetImp::GetLayoutItem() const { 528 CXFA_FFWidget* CFWL_WidgetImp::GetLayoutItem() const {
529 return m_pLayoutItem; 529 return m_pLayoutItem;
530 } 530 }
531 531
532 void CFWL_WidgetImp::SetLayoutItem(void* pItem) { 532 void CFWL_WidgetImp::SetLayoutItem(CXFA_FFWidget* pItem) {
533 m_pLayoutItem = pItem; 533 m_pLayoutItem = pItem;
534 } 534 }
535 535
536 CFWL_WidgetImp::CFWL_WidgetImp(const CFWL_WidgetImpProperties& properties, 536 CFWL_WidgetImp::CFWL_WidgetImp(const CFWL_WidgetImpProperties& properties,
537 IFWL_Widget* pOuter) 537 IFWL_Widget* pOuter)
538 : m_pProperties(new CFWL_WidgetImpProperties), 538 : m_pProperties(new CFWL_WidgetImpProperties),
539 m_pPrivateData(nullptr), 539 m_pPrivateData(nullptr),
540 m_pDelegate(nullptr), 540 m_pDelegate(nullptr),
541 m_pCurDelegate(nullptr), 541 m_pCurDelegate(nullptr),
542 m_pOuter(pOuter), 542 m_pOuter(pOuter),
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 } 1048 }
1049 } 1049 }
1050 1050
1051 void CFWL_WidgetImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {} 1051 void CFWL_WidgetImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {}
1052 1052
1053 void CFWL_WidgetImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, 1053 void CFWL_WidgetImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics,
1054 const CFX_Matrix* pMatrix) { 1054 const CFX_Matrix* pMatrix) {
1055 CFWL_EvtDraw evt; 1055 CFWL_EvtDraw evt;
1056 evt.m_pGraphics = pGraphics; 1056 evt.m_pGraphics = pGraphics;
1057 } 1057 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698