diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 17:52:02 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 17:52:02 +0000 |
commit | aca200e532f35181e8ae0d66e7f27ca7c6966bd1 (patch) | |
tree | 299d4785d08390f53efb91ac31c1c6d80d6dc130 /ui/aura/event.h | |
parent | 112f03ff93d980249601674796f12f5bab4ee839 (diff) | |
download | chromium_src-aca200e532f35181e8ae0d66e7f27ca7c6966bd1.zip chromium_src-aca200e532f35181e8ae0d66e7f27ca7c6966bd1.tar.gz chromium_src-aca200e532f35181e8ae0d66e7f27ca7c6966bd1.tar.bz2 |
CMT can now generate motion events w/ valuators instead of a sequence of button events. This supports them
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8907005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114660 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/event.h')
-rw-r--r-- | ui/aura/event.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/aura/event.h b/ui/aura/event.h index 5dcb726..f4478f8 100644 --- a/ui/aura/event.h +++ b/ui/aura/event.h @@ -204,6 +204,29 @@ class AURA_EXPORT DropTargetEvent : public LocatedEvent { DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); }; +class AURA_EXPORT ScrollEvent : public MouseEvent { + public: + ScrollEvent(const base::NativeEvent& native_event); + ScrollEvent(const ScrollEvent& model, + Window* source, + Window* target, + ui::EventType type, + int flags) + : MouseEvent(model, source, target, type, flags), + x_offset_(model.x_offset_), + y_offset_(model.y_offset_) { + } + + float x_offset() const { return x_offset_; } + float y_offset() const { return y_offset_; } + + private: + float x_offset_; + float y_offset_; + + DISALLOW_COPY_AND_ASSIGN(ScrollEvent); +}; + } // namespace aura #endif // UI_AURA_EVENT_H_ |