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

Side by Side Diff: third_party/WebKit/Source/core/events/CompositionEvent.cpp

Issue 2542693002: Use WTF::TimeTicks to represent timestamp in Platform/Core event types (Closed)
Patch Set: rebase Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/DragEvent.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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 20 matching lines...) Expand all
31 CompositionEvent::CompositionEvent() {} 31 CompositionEvent::CompositionEvent() {}
32 32
33 CompositionEvent::CompositionEvent(const AtomicString& type, 33 CompositionEvent::CompositionEvent(const AtomicString& type,
34 AbstractView* view, 34 AbstractView* view,
35 const String& data) 35 const String& data)
36 : UIEvent( 36 : UIEvent(
37 type, 37 type,
38 true, 38 true,
39 true, 39 true,
40 ComposedMode::Composed, 40 ComposedMode::Composed,
41 WTF::monotonicallyIncreasingTime(), 41 TimeTicks::Now(),
42 view, 42 view,
43 0, 43 0,
44 InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities()), 44 InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities()),
45 m_data(data) {} 45 m_data(data) {}
46 46
47 CompositionEvent::CompositionEvent(const AtomicString& type, 47 CompositionEvent::CompositionEvent(const AtomicString& type,
48 const CompositionEventInit& initializer) 48 const CompositionEventInit& initializer)
49 : UIEvent(type, initializer) { 49 : UIEvent(type, initializer) {
50 if (initializer.hasData()) 50 if (initializer.hasData())
51 m_data = initializer.data(); 51 m_data = initializer.data();
(...skipping 16 matching lines...) Expand all
68 68
69 const AtomicString& CompositionEvent::interfaceName() const { 69 const AtomicString& CompositionEvent::interfaceName() const {
70 return EventNames::CompositionEvent; 70 return EventNames::CompositionEvent;
71 } 71 }
72 72
73 DEFINE_TRACE(CompositionEvent) { 73 DEFINE_TRACE(CompositionEvent) {
74 UIEvent::trace(visitor); 74 UIEvent::trace(visitor);
75 } 75 }
76 76
77 } // namespace blink 77 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/DragEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698