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

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

Issue 2486333004: Remove IFWL methods proxied from CFWL classes (Closed)
Patch Set: Rebase to master Created 4 years, 1 month 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/cfwl_widget.h" 7 #include "xfa/fwl/core/cfwl_widget.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fwl/core/cfwl_themetext.h" 10 #include "xfa/fwl/core/cfwl_themetext.h"
(...skipping 25 matching lines...) Expand all
36 36
37 const IFWL_Widget* CFWL_Widget::GetWidget() const { 37 const IFWL_Widget* CFWL_Widget::GetWidget() const {
38 return m_pIface.get(); 38 return m_pIface.get();
39 } 39 }
40 40
41 void CFWL_Widget::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) { 41 void CFWL_Widget::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) {
42 if (m_pIface) 42 if (m_pIface)
43 m_pIface->GetWidgetRect(rect, bAutoSize); 43 m_pIface->GetWidgetRect(rect, bAutoSize);
44 } 44 }
45 45
46 void CFWL_Widget::GetGlobalRect(CFX_RectF& rect) {
47 if (m_pIface)
48 m_pIface->GetGlobalRect(rect);
49 }
50
51 void CFWL_Widget::SetWidgetRect(const CFX_RectF& rect) { 46 void CFWL_Widget::SetWidgetRect(const CFX_RectF& rect) {
52 if (m_pIface) 47 if (m_pIface)
53 m_pIface->SetWidgetRect(rect); 48 m_pIface->SetWidgetRect(rect);
54 } 49 }
55 50
56 void CFWL_Widget::GetClientRect(CFX_RectF& rect) {
57 if (m_pIface)
58 m_pIface->GetClientRect(rect);
59 }
60
61 void CFWL_Widget::ModifyStyles(uint32_t dwStylesAdded, 51 void CFWL_Widget::ModifyStyles(uint32_t dwStylesAdded,
62 uint32_t dwStylesRemoved) { 52 uint32_t dwStylesRemoved) {
63 if (m_pIface) 53 if (m_pIface)
64 m_pIface->ModifyStyles(dwStylesAdded, dwStylesRemoved); 54 m_pIface->ModifyStyles(dwStylesAdded, dwStylesRemoved);
65 } 55 }
66 56
67 uint32_t CFWL_Widget::GetStylesEx() { 57 uint32_t CFWL_Widget::GetStylesEx() {
68 if (!m_pIface) 58 if (!m_pIface)
69 return 0; 59 return 0;
70 return m_pIface->GetStylesEx(); 60 return m_pIface->GetStylesEx();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 110 }
121 111
122 IFWL_WidgetDelegate* CFWL_Widget::GetDelegate() const { 112 IFWL_WidgetDelegate* CFWL_Widget::GetDelegate() const {
123 return m_pIface ? m_pIface->GetDelegate() : nullptr; 113 return m_pIface ? m_pIface->GetDelegate() : nullptr;
124 } 114 }
125 115
126 void CFWL_Widget::SetDelegate(IFWL_WidgetDelegate* pDelegate) { 116 void CFWL_Widget::SetDelegate(IFWL_WidgetDelegate* pDelegate) {
127 if (m_pIface) 117 if (m_pIface)
128 m_pIface->SetDelegate(pDelegate); 118 m_pIface->SetDelegate(pDelegate);
129 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698