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

Side by Side Diff: Source/core/inspector/InspectorInputAgent.cpp

Issue 453493002: Improve detection of touch events when hiding media controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@autoHideControls
Patch Set: Revert Patch Set 8 Created 6 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
« no previous file with comments | « Source/core/html/shadow/MediaControls.cpp ('k') | Source/core/page/DragController.cpp » ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 PlatformMouseEvent event( 168 PlatformMouseEvent event(
169 convertedPoint, 169 convertedPoint,
170 globalPoint, 170 globalPoint,
171 convertedButton, 171 convertedButton,
172 convertedType, 172 convertedType,
173 clickCount ? *clickCount : 0, 173 clickCount ? *clickCount : 0,
174 convertedModifiers & PlatformEvent::ShiftKey, 174 convertedModifiers & PlatformEvent::ShiftKey,
175 convertedModifiers & PlatformEvent::CtrlKey, 175 convertedModifiers & PlatformEvent::CtrlKey,
176 convertedModifiers & PlatformEvent::AltKey, 176 convertedModifiers & PlatformEvent::AltKey,
177 convertedModifiers & PlatformEvent::MetaKey, 177 convertedModifiers & PlatformEvent::MetaKey,
178 PlatformMouseEvent::RealOrIndistinguishable,
178 timestamp ? *timestamp : currentTime()); 179 timestamp ? *timestamp : currentTime());
179 180
180 m_client->dispatchMouseEvent(event); 181 m_client->dispatchMouseEvent(event);
181 } 182 }
182 183
183 void InspectorInputAgent::dispatchTouchEvent(ErrorString* error, const String& t ype, const RefPtr<JSONArray>& touchPoints, const int* modifiers, const double* t imestamp) 184 void InspectorInputAgent::dispatchTouchEvent(ErrorString* error, const String& t ype, const RefPtr<JSONArray>& touchPoints, const int* modifiers, const double* t imestamp)
184 { 185 {
185 PlatformEvent::Type convertedType; 186 PlatformEvent::Type convertedType;
186 if (type == "touchStart") { 187 if (type == "touchStart") {
187 convertedType = PlatformEvent::TouchStart; 188 convertedType = PlatformEvent::TouchStart;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 } 268 }
268 269
269 void InspectorInputAgent::trace(Visitor* visitor) 270 void InspectorInputAgent::trace(Visitor* visitor)
270 { 271 {
271 visitor->trace(m_page); 272 visitor->trace(m_page);
272 InspectorBaseAgent::trace(visitor); 273 InspectorBaseAgent::trace(visitor);
273 } 274 }
274 275
275 } // namespace blink 276 } // namespace blink
276 277
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControls.cpp ('k') | Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698