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

Side by Side Diff: ui/views/events/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: Removed comment 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
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_VIEWS_EVENTS_EVENT_H_ 5 #ifndef UI_VIEWS_EVENTS_EVENT_H_
6 #define UI_VIEWS_EVENTS_EVENT_H_ 6 #define UI_VIEWS_EVENTS_EVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 private: 403 private:
404 // Data associated with the drag/drop session. 404 // Data associated with the drag/drop session.
405 const ui::OSExchangeData& data_; 405 const ui::OSExchangeData& data_;
406 406
407 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. 407 // Bitmask of supported ui::DragDropTypes::DragOperation by the source.
408 int source_operations_; 408 int source_operations_;
409 409
410 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); 410 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
411 }; 411 };
412 412
413 class VIEWS_EXPORT ScrollEvent : public MouseEvent {
414 public:
415 explicit ScrollEvent(const NativeEvent& native_event);
416 float x_offset() const { return x_offset_; }
417 float y_offset() const { return y_offset_; }
418
419 private:
420 float x_offset_;
421 float y_offset_;
422
423 DISALLOW_COPY_AND_ASSIGN(ScrollEvent);
424 };
425
413 } // namespace views 426 } // namespace views
414 427
415 #endif // UI_VIEWS_EVENTS_EVENT_H_ 428 #endif // UI_VIEWS_EVENTS_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698