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

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: Incorporated gyp changes 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
« no previous file with comments | « no previous file | views/test/test_event_utils.h » ('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 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 #if defined(TESTING)
113 void set_native_event(base::NativeEvent event) { native_event_= event; }
114 #endif
112 115
113 private: 116 private:
114 void operator=(const Event&); 117 void operator=(const Event&);
115 118
116 NativeEvent native_event_; 119 NativeEvent native_event_;
117 #if defined(TOOLKIT_USES_GTK) 120 #if defined(TOOLKIT_USES_GTK)
118 GdkEvent* gdk_event_; 121 GdkEvent* gdk_event_;
119 #endif 122 #endif
120 ui::EventType type_; 123 ui::EventType type_;
121 base::Time time_stamp_; 124 base::Time time_stamp_;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 433
431 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. 434 // Bitmask of supported ui::DragDropTypes::DragOperation by the source.
432 int source_operations_; 435 int source_operations_;
433 436
434 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); 437 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
435 }; 438 };
436 439
437 } // namespace views 440 } // namespace views
438 441
439 #endif // VIEWS_EVENTS_EVENT_H_ 442 #endif // VIEWS_EVENTS_EVENT_H_
OLDNEW
« no previous file with comments | « no previous file | views/test/test_event_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698