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

Side by Side Diff: views/events/event.h

Issue 8521001: Touch to Mouse conversion validation of views::GestureManager (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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 VIEWS_EVENTS_EVENT_H_ 5 #ifndef VIEWS_EVENTS_EVENT_H_
6 #define VIEWS_EVENTS_EVENT_H_ 6 #define 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 : native_event_(model.native_event()), 102 : native_event_(model.native_event()),
103 #if defined(TOOLKIT_USES_GTK) 103 #if defined(TOOLKIT_USES_GTK)
104 gdk_event_(model.gdk_event_), 104 gdk_event_(model.gdk_event_),
105 #endif 105 #endif
106 type_(model.type()), 106 type_(model.type()),
107 time_stamp_(model.time_stamp()), 107 time_stamp_(model.time_stamp()),
108 flags_(model.flags()) { 108 flags_(model.flags()) {
109 } 109 }
110 110
111 void set_type(ui::EventType type) { type_ = type; } 111 void set_type(ui::EventType type) { type_ = type; }
112 void set_native_event(base::NativeEvent event) { native_event_= event; }
rjkroege 2011/11/10 16:34:40 Please wrap in a #if defined(TESTING)
Gajen 2011/11/11 13:39:07 Done.
112 113
113 private: 114 private:
114 void operator=(const Event&); 115 void operator=(const Event&);
115 116
116 NativeEvent native_event_; 117 NativeEvent native_event_;
117 #if defined(TOOLKIT_USES_GTK) 118 #if defined(TOOLKIT_USES_GTK)
118 GdkEvent* gdk_event_; 119 GdkEvent* gdk_event_;
119 #endif 120 #endif
120 ui::EventType type_; 121 ui::EventType type_;
121 base::Time time_stamp_; 122 base::Time time_stamp_;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 431
431 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. 432 // Bitmask of supported ui::DragDropTypes::DragOperation by the source.
432 int source_operations_; 433 int source_operations_;
433 434
434 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); 435 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
435 }; 436 };
436 437
437 } // namespace views 438 } // namespace views
438 439
439 #endif // VIEWS_EVENTS_EVENT_H_ 440 #endif // VIEWS_EVENTS_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698