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

Unified Diff: Source/core/testing/LayerRectList.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/LayerRectList.h
diff --git a/Source/core/dom/ClientRectList.h b/Source/core/testing/LayerRectList.h
similarity index 73%
copy from Source/core/dom/ClientRectList.h
copy to Source/core/testing/LayerRectList.h
index 33f54c79aa4688c762f21f9f91a3027150b8a954..9d5ea8f329637348df46c989d653ea1ff7fbe2af 100644
--- a/Source/core/dom/ClientRectList.h
+++ b/Source/core/testing/LayerRectList.h
@@ -20,15 +20,14 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
-#ifndef ClientRectList_h
-#define ClientRectList_h
+#ifndef LayerRectList_h
+#define LayerRectList_h
#include "bindings/v8/ScriptWrappable.h"
-#include "core/platform/graphics/FloatQuad.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
@@ -36,21 +35,23 @@
namespace WebCore {
class ClientRect;
+class ClientRectList;
+class LayerRect;
+class Node;
-class ClientRectList : public RefCounted<ClientRectList>, public ScriptWrappable {
+class LayerRectList : public RefCounted<LayerRectList> {
public:
- static PassRefPtr<ClientRectList> create() { return adoptRef(new ClientRectList); }
- static PassRefPtr<ClientRectList> create(const Vector<FloatQuad>& quads) { return adoptRef(new ClientRectList(quads)); }
- ~ClientRectList();
+ static PassRefPtr<LayerRectList> create() { return adoptRef(new LayerRectList); }
+ ~LayerRectList();
unsigned length() const;
- ClientRect* item(unsigned index);
+ LayerRect* item(unsigned index);
+ void append(PassRefPtr<Node> layerRootNode, PassRefPtr<ClientRect> layerRelativeRect);
private:
- ClientRectList();
- explicit ClientRectList(const Vector<FloatQuad>&);
+ LayerRectList();
- Vector<RefPtr<ClientRect> > m_list;
+ Vector<RefPtr<LayerRect> > m_list;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698