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

Side by Side Diff: third_party/WebKit/Source/core/frame/Deprecation.cpp

Issue 1996143002: Deprecate use of user gestures during scroll-related touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk Created 4 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "core/frame/Deprecation.h" 5 #include "core/frame/Deprecation.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "core/frame/FrameConsole.h" 9 #include "core/frame/FrameConsole.h"
10 #include "core/frame/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 case UseCounter::MediaStreamOnEnded: 387 case UseCounter::MediaStreamOnEnded:
388 return replacedWillBeRemoved("The MediaStream 'ended' event", "the Media Stream 'inactive' event", 53, "5730404371791872"); 388 return replacedWillBeRemoved("The MediaStream 'ended' event", "the Media Stream 'inactive' event", 53, "5730404371791872");
389 389
390 case UseCounter::UntrustedEventDefaultHandled: 390 case UseCounter::UntrustedEventDefaultHandled:
391 return String::format("A DOM event generated from JavaScript has trigger ed a default action inside the browser. This behavior is non-standard and will b e removed in %s. See https://www.chromestatus.com/features/5718803933560832 for more details.", milestoneString(53)); 391 return String::format("A DOM event generated from JavaScript has trigger ed a default action inside the browser. This behavior is non-standard and will b e removed in %s. See https://www.chromestatus.com/features/5718803933560832 for more details.", milestoneString(53));
392 392
393 case UseCounter::UnloadHandler_Navigation: 393 case UseCounter::UnloadHandler_Navigation:
394 return "Navigating in the unload handler is deprecated and will be remov ed."; 394 return "Navigating in the unload handler is deprecated and will be remov ed.";
395 395
396 case UseCounter::TouchStartUserGestureUtilized:
397 return willBeRemoved("Performing operations that require explicit user i nteraction on touchstart events", 54, "5649871251963904");
398
399 case UseCounter::TouchMoveUserGestureUtilized:
400 return willBeRemoved("Performing operations that require explicit user i nteraction on touchmove events", 54, "5649871251963904");
401
402 case UseCounter::TouchEndDuringScrollUserGestureUtilized:
403 return willBeRemoved("Performing operations that require explicit user i nteraction on touchend events that occur as part of a scroll", 54, "564987125196 3904");
404
396 // Features that aren't deprecated don't have a deprecation message. 405 // Features that aren't deprecated don't have a deprecation message.
397 default: 406 default:
398 return String(); 407 return String();
399 } 408 }
400 } 409 }
401 410
402 } // namespace blink 411 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698