diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-23 07:36:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-23 07:36:00 -0800 |
commit | e36430e530e48d4145f34a554f9891b1989b590d (patch) | |
tree | b8c9bb0b3ab44b9aabb6b3bb3f19dffd7093acb1 /xfa/fwl/core/ifwl_widget.h | |
parent | 43f382c23c24a7b8214f4ea461623f13e25ca02a (diff) | |
download | pdfium-e36430e530e48d4145f34a554f9891b1989b590d.tar.xz |
Make Update and DrawWidget pure virtual
These methods should be in all implementations, make them pure virtual to
make that required.
Review-Url: https://codereview.chromium.org/2525703004
Diffstat (limited to 'xfa/fwl/core/ifwl_widget.h')
-rw-r--r-- | xfa/fwl/core/ifwl_widget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fwl/core/ifwl_widget.h b/xfa/fwl/core/ifwl_widget.h index 230ea666d9..7d2faf00e9 100644 --- a/xfa/fwl/core/ifwl_widget.h +++ b/xfa/fwl/core/ifwl_widget.h @@ -75,10 +75,10 @@ class IFWL_Widget : public IFWL_WidgetDelegate { virtual void ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); virtual void SetStates(uint32_t dwStates, bool bSet = true); - virtual void Update(); + virtual void Update() = 0; virtual FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); virtual void DrawWidget(CFX_Graphics* pGraphics, - const CFX_Matrix* pMatrix = nullptr); + const CFX_Matrix* pMatrix = nullptr) = 0; virtual void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); // IFWL_WidgetDelegate. |