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

Side by Side Diff: third_party/WebKit/Source/core/page/DragController.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Google Inc. 3 * Copyright (C) 2008 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 NOTREACHED(); 116 NOTREACHED();
117 return false; 117 return false;
118 } 118 }
119 #endif // DCHECK_IS_ON() 119 #endif // DCHECK_IS_ON()
120 120
121 static PlatformMouseEvent createMouseEvent(DragData* dragData) { 121 static PlatformMouseEvent createMouseEvent(DragData* dragData) {
122 return PlatformMouseEvent( 122 return PlatformMouseEvent(
123 dragData->clientPosition(), dragData->globalPosition(), 123 dragData->clientPosition(), dragData->globalPosition(),
124 WebPointerProperties::Button::Left, PlatformEvent::MouseMoved, 0, 124 WebPointerProperties::Button::Left, PlatformEvent::MouseMoved, 0,
125 static_cast<PlatformEvent::Modifiers>(dragData->modifiers()), 125 static_cast<PlatformEvent::Modifiers>(dragData->modifiers()),
126 PlatformMouseEvent::RealOrIndistinguishable, 126 PlatformMouseEvent::RealOrIndistinguishable, TimeTicks::Now());
127 monotonicallyIncreasingTime());
128 } 127 }
129 128
130 static DataTransfer* createDraggingDataTransfer(DataTransferAccessPolicy policy, 129 static DataTransfer* createDraggingDataTransfer(DataTransferAccessPolicy policy,
131 DragData* dragData) { 130 DragData* dragData) {
132 return DataTransfer::create(DataTransfer::DragAndDrop, policy, 131 return DataTransfer::create(DataTransfer::DragAndDrop, policy,
133 dragData->platformData()); 132 dragData->platformData());
134 } 133 }
135 134
136 DragController::DragController(Page* page) 135 DragController::DragController(Page* page)
137 : m_page(page), 136 : m_page(page),
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 } 1231 }
1233 1232
1234 DEFINE_TRACE(DragController) { 1233 DEFINE_TRACE(DragController) {
1235 visitor->trace(m_page); 1234 visitor->trace(m_page);
1236 visitor->trace(m_documentUnderMouse); 1235 visitor->trace(m_documentUnderMouse);
1237 visitor->trace(m_dragInitiator); 1236 visitor->trace(m_dragInitiator);
1238 visitor->trace(m_fileInputElementUnderMouse); 1237 visitor->trace(m_fileInputElementUnderMouse);
1239 } 1238 }
1240 1239
1241 } // namespace blink 1240 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698