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

Side by Side Diff: Source/core/rendering/RenderView.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 19 matching lines...) Expand all
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class CustomFilterGlobalContext; 33 class CustomFilterGlobalContext;
34 class FlowThreadController; 34 class FlowThreadController;
35 class RenderLayerCompositor; 35 class RenderLayerCompositor;
36 class RenderLazyBlock; 36 class RenderLazyBlock;
37 class RenderQuote; 37 class RenderQuote;
38 class RenderWidget; 38 class RenderWidget;
39 39
40 // The root of the render tree, corresponding to the CSS initial containing bloc k.
41 // It's dimensions match that of the viewport, and it is always at position (0,0 )
42 // relative to the document (and so isn't necessarily in view).
40 class RenderView FINAL : public RenderBlock { 43 class RenderView FINAL : public RenderBlock {
41 public: 44 public:
42 explicit RenderView(Document*); 45 explicit RenderView(Document*);
43 virtual ~RenderView(); 46 virtual ~RenderView();
44 47
45 bool hitTest(const HitTestRequest&, HitTestResult&); 48 bool hitTest(const HitTestRequest&, HitTestResult&);
46 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); 49 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&);
47 50
48 virtual const char* renderName() const OVERRIDE { return "RenderView"; } 51 virtual const char* renderName() const OVERRIDE { return "RenderView"; }
49 52
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 199
197 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) OVERRIDE; 200 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) OVERRIDE;
198 201
199 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE FINAL; 202 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE FINAL;
200 203
201 protected: 204 protected:
202 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 205 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
203 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; 206 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE;
204 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; 207 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst;
205 virtual bool requiresColumns(int desiredColumnCount) const OVERRIDE; 208 virtual bool requiresColumns(int desiredColumnCount) const OVERRIDE;
209 virtual void computeOwnHitTestRects(Vector<IntRect>&, const LayoutPoint& lay erOffset) const OVERRIDE;
206 210
207 private: 211 private:
208 bool initializeLayoutState(LayoutState&); 212 bool initializeLayoutState(LayoutState&);
209 213
210 virtual void calcColumnWidth() OVERRIDE; 214 virtual void calcColumnWidth() OVERRIDE;
211 virtual ColumnInfo::PaginationUnit paginationUnit() const OVERRIDE; 215 virtual ColumnInfo::PaginationUnit paginationUnit() const OVERRIDE;
212 216
213 bool shouldRepaint(const LayoutRect&) const; 217 bool shouldRepaint(const LayoutRect&) const;
214 218
215 // These functions may only be accessed by LayoutStateMaintainer. 219 // These functions may only be accessed by LayoutStateMaintainer.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 RenderObject::FlowThreadState m_flowThreadState; 403 RenderObject::FlowThreadState m_flowThreadState;
400 bool m_fragmenting; 404 bool m_fragmenting;
401 #ifndef NDEBUG 405 #ifndef NDEBUG
402 LayoutState* m_layoutState; 406 LayoutState* m_layoutState;
403 #endif 407 #endif
404 }; 408 };
405 409
406 } // namespace WebCore 410 } // namespace WebCore
407 411
408 #endif // RenderView_h 412 #endif // RenderView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698