• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_
8 #define XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_
9 
10 #include "core/fxcrt/fx_coordinates.h"
11 #include "xfa/fwl/cfwl_message.h"
12 
13 namespace pdfium {
14 
15 class CFWL_MessageMouseWheel final : public CFWL_Message {
16  public:
17   CFWL_MessageMouseWheel(CFWL_Widget* destination,
18                          const CFX_PointF& pos,
19                          const CFX_Vector& delta);
20   ~CFWL_MessageMouseWheel() override;
21 
set_pos(const CFX_PointF & pos)22   void set_pos(const CFX_PointF& pos) { pos_ = pos; }
pos()23   const CFX_PointF& pos() const { return pos_; }
24 
delta()25   const CFX_Vector& delta() const { return delta_; }
26 
27  private:
28   CFX_PointF pos_;
29   const CFX_Vector delta_;
30 };
31 
32 }  // namespace pdfium
33 
34 // TODO(crbug.com/42271761): Remove.
35 using pdfium::CFWL_MessageMouseWheel;
36 
37 #endif  // XFA_FWL_CFWL_MESSAGEMOUSEWHEEL_H_
38