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

Unified Diff: third_party/WebKit/public/platform/WebScrollStateData.h

Issue 1646663002: Refactor Scroll Customization to share cc::ScrollStateData with blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linking. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebScrollStateData.h
diff --git a/third_party/WebKit/public/platform/WebScrollStateData.h b/third_party/WebKit/public/platform/WebScrollStateData.h
deleted file mode 100644
index f7154bb0e170af75270567fb0bc7f73c5ae0fe6d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/public/platform/WebScrollStateData.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WebScrollStateData_h
-#define WebScrollStateData_h
-
-#include "WebCommon.h"
-
-#include <deque>
-
-namespace blink {
-
-// WebScrollState data contains the data used by blink::ScrollState. This is
-// used by the scroll customization API, detailed here (https://goo.gl/1ipTpP).
-// For the cc equivalent, see cc::ScrollStateData and cc::ScrollState.
-struct BLINK_EXPORT WebScrollStateData {
- WebScrollStateData(double deltaX, double deltaY, double deltaGranularity,
- double velocityX, double velocityY, bool inInertialPhase,
- bool isBeginning = false, bool isEnding = false,
- bool fromUserInput = false, bool shouldPropagate = true,
- bool deltaConsumedForScrollSequence = false)
- : deltaX(deltaX)
- , deltaY(deltaY)
- , deltaGranularity(deltaGranularity)
- , velocityX(velocityX)
- , velocityY(velocityY)
- , inInertialPhase(inInertialPhase)
- , isBeginning(isBeginning)
- , isEnding(isEnding)
- , fromUserInput(fromUserInput)
- , shouldPropagate(shouldPropagate)
- , currentNativeScrollingElement(0)
- , deltaConsumedForScrollSequence(deltaConsumedForScrollSequence)
- , causedScrollX(false)
- , causedScrollY(false)
- {
- }
-
- WebScrollStateData()
- : WebScrollStateData(0, 0, 0, 0, 0, false)
- {
- }
-
- double deltaX;
- double deltaY;
- double deltaGranularity;
- double velocityX;
- double velocityY;
- bool inInertialPhase;
- bool isBeginning;
- bool isEnding;
-
- bool fromUserInput;
- bool shouldPropagate;
- // The id of the last native element to respond to a scroll, or 0 if none exists.
- int currentNativeScrollingElement;
- // Whether the scroll sequence has had any delta consumed, in the
- // current frame, or any child frames.
- bool deltaConsumedForScrollSequence;
-
- bool causedScrollX;
- bool causedScrollY;
-};
-
-} // namespace blink
-
-#endif // WebScrollStateData_h
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698