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

Unified Diff: Source/core/testing/Internals.h

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Various fixes and test additions Created 7 years, 5 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
Index: Source/core/testing/Internals.h
diff --git a/Source/core/testing/Internals.h b/Source/core/testing/Internals.h
index afd36b9c1d2e70ef133c34618e77e01676074389..cb5b51ecf644a26f3ea865754abaab076f13f436 100644
--- a/Source/core/testing/Internals.h
+++ b/Source/core/testing/Internals.h
@@ -31,6 +31,8 @@
#include "core/dom/ContextLifecycleObserver.h"
#include "core/dom/ExceptionCodePlaceholder.h"
#include "core/dom/NodeList.h"
+#include "core/page/scrolling/ScrollingCoordinator.h"
+#include "core/rendering/RenderObject.h"
#include <wtf/ArrayBuffer.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
@@ -51,6 +53,7 @@ class InspectorFrontendChannelDummy;
class InternalRuntimeFlags;
class InternalProfilers;
class InternalSettings;
+class LayerRectList;
class Node;
class Page;
class PagePopupController;
@@ -63,7 +66,9 @@ class TypeConversions;
typedef int ExceptionCode;
-class Internals : public RefCounted<Internals>, public ContextLifecycleObserver {
+class Internals : public RefCounted<Internals>
+ , public ContextLifecycleObserver
+ , public ScrollingCoordinator::TouchEventTargetRectsObserver {
public:
static PassRefPtr<Internals> create(Document*);
virtual ~Internals();
@@ -175,7 +180,9 @@ public:
unsigned wheelEventHandlerCount(Document*, ExceptionCode&);
unsigned touchEventHandlerCount(Document*, ExceptionCode&);
- PassRefPtr<ClientRectList> touchEventTargetClientRects(Document*, ExceptionCode&);
+ PassRefPtr<LayerRectList> touchEventTargetLayerRects(Document*, ExceptionCode&);
+ unsigned touchEventTargetLayerRectsUpdateCount(Document*, ExceptionCode&);
+ virtual void touchEventTargetRectsChanged(const LayerHitTestRects&);
// This is used to test rect based hit testing like what's done on touch screens.
PassRefPtr<NodeList> nodesFromRect(Document*, int x, int y, unsigned topPadding, unsigned rightPadding,
@@ -294,6 +301,9 @@ private:
RefPtr<DOMWindow> m_frontendWindow;
OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel;
RefPtr<InternalRuntimeFlags> m_runtimeFlags;
+ RefPtr<ScrollingCoordinator> m_scrollingCoordinator;
+ int m_touchEventTargetRectUpdateCount;
+ LayerHitTestRects m_currentTouchEventRects;
RefPtr<InternalProfilers> m_profilers;
};

Powered by Google App Engine
This is Rietveld 408576698