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

Side by Side Diff: xfa/fwl/cfwl_widget.h

Issue 2569663006: Remove widget offscreen code. (Closed)
Patch Set: Rebase to master Created 4 years 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 | « no previous file | xfa/fwl/cfwl_widget.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 #ifndef XFA_FWL_CFWL_WIDGET_H_ 7 #ifndef XFA_FWL_CFWL_WIDGET_H_
8 #define XFA_FWL_CFWL_WIDGET_H_ 8 #define XFA_FWL_CFWL_WIDGET_H_
9 #include <memory> 9 #include <memory>
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 int32_t m_iLock; 154 int32_t m_iLock;
155 155
156 private: 156 private:
157 CFWL_Widget* GetParent() { return m_pWidgetMgr->GetParentWidget(this); } 157 CFWL_Widget* GetParent() { return m_pWidgetMgr->GetParentWidget(this); }
158 CFX_SizeF GetOffsetFromParent(CFWL_Widget* pParent); 158 CFX_SizeF GetOffsetFromParent(CFWL_Widget* pParent);
159 159
160 bool IsVisible() const; 160 bool IsVisible() const;
161 bool IsOverLapper() const; 161 bool IsOverLapper() const;
162 bool IsPopup() const; 162 bool IsPopup() const;
163 bool IsChild() const; 163 bool IsChild() const;
164 bool IsOffscreen() const;
165 CFWL_Widget* GetRootOuter(); 164 CFWL_Widget* GetRootOuter();
166 bool GetPopupPosMenu(FX_FLOAT fMinHeight, 165 bool GetPopupPosMenu(FX_FLOAT fMinHeight,
167 FX_FLOAT fMaxHeight, 166 FX_FLOAT fMaxHeight,
168 const CFX_RectF& rtAnchor, 167 const CFX_RectF& rtAnchor,
169 CFX_RectF& rtPopup); 168 CFX_RectF& rtPopup);
170 bool GetPopupPosComboBox(FX_FLOAT fMinHeight, 169 bool GetPopupPosComboBox(FX_FLOAT fMinHeight,
171 FX_FLOAT fMaxHeight, 170 FX_FLOAT fMaxHeight,
172 const CFX_RectF& rtAnchor, 171 const CFX_RectF& rtAnchor,
173 CFX_RectF& rtPopup); 172 CFX_RectF& rtPopup);
174 bool GetPopupPosGeneral(FX_FLOAT fMinHeight, 173 bool GetPopupPosGeneral(FX_FLOAT fMinHeight,
175 FX_FLOAT fMaxHeight, 174 FX_FLOAT fMaxHeight,
176 const CFX_RectF& rtAnchor, 175 const CFX_RectF& rtAnchor,
177 CFX_RectF& rtPopup); 176 CFX_RectF& rtPopup);
178 bool GetScreenSize(FX_FLOAT& fx, FX_FLOAT& fy); 177 bool GetScreenSize(FX_FLOAT& fx, FX_FLOAT& fy);
179 void DrawBackground(CFX_Graphics* pGraphics, 178 void DrawBackground(CFX_Graphics* pGraphics,
180 CFWL_Part iPartBk, 179 CFWL_Part iPartBk,
181 IFWL_ThemeProvider* pTheme, 180 IFWL_ThemeProvider* pTheme,
182 const CFX_Matrix* pMatrix); 181 const CFX_Matrix* pMatrix);
183 void NotifyDriver(); 182 void NotifyDriver();
184 bool IsParent(CFWL_Widget* pParent); 183 bool IsParent(CFWL_Widget* pParent);
185 184
186 CXFA_FFWidget* m_pLayoutItem; 185 CXFA_FFWidget* m_pLayoutItem;
187 uint32_t m_nEventKey; 186 uint32_t m_nEventKey;
188 IFWL_WidgetDelegate* m_pDelegate; // Not owned. 187 IFWL_WidgetDelegate* m_pDelegate; // Not owned.
189 }; 188 };
190 189
191 #endif // XFA_FWL_CFWL_WIDGET_H_ 190 #endif // XFA_FWL_CFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/cfwl_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698