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

Side by Side Diff: ui/aura/event.h

Issue 8907005: Add support for new scroll valuators coming from CMT (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/web_input_event_aurax11.cc ('k') | ui/aura/event.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium 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 #ifndef UI_AURA_EVENT_H_ 5 #ifndef UI_AURA_EVENT_H_
6 #define UI_AURA_EVENT_H_ 6 #define UI_AURA_EVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/event_types.h" 10 #include "base/event_types.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 private: 197 private:
198 // Data associated with the drag/drop session. 198 // Data associated with the drag/drop session.
199 const ui::OSExchangeData& data_; 199 const ui::OSExchangeData& data_;
200 200
201 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. 201 // Bitmask of supported ui::DragDropTypes::DragOperation by the source.
202 int source_operations_; 202 int source_operations_;
203 203
204 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); 204 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
205 }; 205 };
206 206
207 class AURA_EXPORT ScrollEvent : public MouseEvent {
208 public:
209 ScrollEvent(const base::NativeEvent& native_event);
210 ScrollEvent(const ScrollEvent& model,
211 Window* source,
212 Window* target,
213 ui::EventType type,
214 int flags)
215 : MouseEvent(model, source, target, type, flags),
216 x_offset_(model.x_offset_),
217 y_offset_(model.y_offset_) {
218 }
219
220 float x_offset() const { return x_offset_; }
221 float y_offset() const { return y_offset_; }
222
223 private:
224 float x_offset_;
225 float y_offset_;
226
227 DISALLOW_COPY_AND_ASSIGN(ScrollEvent);
228 };
229
207 } // namespace aura 230 } // namespace aura
208 231
209 #endif // UI_AURA_EVENT_H_ 232 #endif // UI_AURA_EVENT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/web_input_event_aurax11.cc ('k') | ui/aura/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698