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

Side by Side Diff: views/event.cc

Issue 3337006: Revert 58388 - Revert 58215 - Revert 58186 - Move the keyboard files from bas... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 months 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 | « views/event.h ('k') | views/event_gtk.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "views/event.h" 5 #include "views/event.h"
6 6
7 #include "views/view.h" 7 #include "views/view.h"
8 8
9 namespace views { 9 namespace views {
10 10
11 Event::Event(EventType type, int flags) 11 Event::Event(EventType type, int flags)
12 : type_(type), 12 : type_(type),
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 time_stamp_(GetTickCount()), 14 time_stamp_(GetTickCount()),
15 #else 15 #else
16 time_stamp_(0), 16 time_stamp_(0),
17 #endif 17 #endif
18 flags_(flags) { 18 flags_(flags) {
19 } 19 }
20 20
21 LocatedEvent::LocatedEvent(const LocatedEvent& model, View* from, View* to) 21 LocatedEvent::LocatedEvent(const LocatedEvent& model, View* from, View* to)
22 : Event(model), 22 : Event(model),
23 location_(model.location_) { 23 location_(model.location_) {
24 if (to) 24 if (to)
25 View::ConvertPointToView(from, to, &location_); 25 View::ConvertPointToView(from, to, &location_);
26 } 26 }
27 27
28 KeyEvent::KeyEvent(EventType type, app::KeyboardCode key_code, 28 KeyEvent::KeyEvent(EventType type, base::KeyboardCode key_code,
29 int event_flags, int repeat_count, int message_flags) 29 int event_flags, int repeat_count, int message_flags)
30 : Event(type, event_flags), 30 : Event(type, event_flags),
31 key_code_(key_code), 31 key_code_(key_code),
32 repeat_count_(repeat_count), 32 repeat_count_(repeat_count),
33 message_flags_(message_flags) { 33 message_flags_(message_flags) {
34 } 34 }
35 35
36 MouseEvent::MouseEvent(EventType type, 36 MouseEvent::MouseEvent(EventType type,
37 View* from, 37 View* from,
38 View* to, 38 View* to,
(...skipping 27 matching lines...) Expand all
66 touch_id_(touch_id) { 66 touch_id_(touch_id) {
67 } 67 }
68 68
69 TouchEvent::TouchEvent(const TouchEvent& model, View* from, View* to) 69 TouchEvent::TouchEvent(const TouchEvent& model, View* from, View* to)
70 : LocatedEvent(model, from, to), 70 : LocatedEvent(model, from, to),
71 touch_id_(model.touch_id_) { 71 touch_id_(model.touch_id_) {
72 } 72 }
73 #endif 73 #endif
74 74
75 } // namespace views 75 } // namespace views
OLDNEW
« no previous file with comments | « views/event.h ('k') | views/event_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698