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

Side by Side Diff: views/event.cc

Issue 6267002: Implement double/triple click functionality in views textfield. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: refactoring Created 9 years, 11 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') | no next file » | 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 time_stamp_(base::Time::NowFromSystemTime()),
14 time_stamp_(GetTickCount()),
15 #else
16 time_stamp_(0),
17 #endif
18 flags_(flags) { 14 flags_(flags) {
19 } 15 }
20 16
21 LocatedEvent::LocatedEvent(const LocatedEvent& model, View* from, View* to) 17 LocatedEvent::LocatedEvent(const LocatedEvent& model, View* from, View* to)
22 : Event(model), 18 : Event(model),
23 location_(model.location_) { 19 location_(model.location_) {
24 if (to) 20 if (to)
25 View::ConvertPointToView(from, to, &location_); 21 View::ConvertPointToView(from, to, &location_);
26 } 22 }
27 23
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 touch_id_(touch_id) { 62 touch_id_(touch_id) {
67 } 63 }
68 64
69 TouchEvent::TouchEvent(const TouchEvent& model, View* from, View* to) 65 TouchEvent::TouchEvent(const TouchEvent& model, View* from, View* to)
70 : LocatedEvent(model, from, to), 66 : LocatedEvent(model, from, to),
71 touch_id_(model.touch_id_) { 67 touch_id_(model.touch_id_) {
72 } 68 }
73 #endif 69 #endif
74 70
75 } // namespace views 71 } // namespace views
OLDNEW
« no previous file with comments | « views/event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698