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

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: CR feedback - accumulate LayoutRects instead of IntRects, disable when page isn't composited. Also… 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
« no previous file with comments | « Source/core/testing/LayerRect.idl ('k') | Source/core/testing/LayerRectList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/LayerRectList.h
diff --git a/Source/core/html/ime/Composition.h b/Source/core/testing/LayerRectList.h
similarity index 76%
copy from Source/core/html/ime/Composition.h
copy to Source/core/testing/LayerRectList.h
index 6562b5f75fd19cc8e80409327f7f8a5881bcf1df..d46d1dc78b860fb94990d7c74a22df42873e602f 100644
--- a/Source/core/html/ime/Composition.h
+++ b/Source/core/testing/LayerRectList.h
@@ -28,34 +28,36 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Composition_h
-#define Composition_h
+#ifndef LayerRectList_h
+#define LayerRectList_h
#include "bindings/v8/ScriptWrappable.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
-#include "wtf/RefPtr.h"
+#include "wtf/Vector.h"
namespace WebCore {
+class ClientRect;
+class ClientRectList;
+class LayerRect;
class Node;
-class Range;
-class Composition : public RefCounted<Composition>, public ScriptWrappable {
+class LayerRectList : public RefCounted<LayerRectList> {
public:
- static PassRefPtr<Composition> create(Node*, Range*);
- ~Composition();
+ static PassRefPtr<LayerRectList> create() { return adoptRef(new LayerRectList); }
+ ~LayerRectList();
- Node* text() const { return m_text.get(); }
- Range* caret() const { return m_caret.get(); }
+ unsigned length() const;
+ LayerRect* item(unsigned index);
+ void append(PassRefPtr<Node> layerRootNode, PassRefPtr<ClientRect> layerRelativeRect);
private:
- Composition(Node*, Range*);
+ LayerRectList();
- RefPtr<Node> m_text;
- RefPtr<Range> m_caret;
+ Vector<RefPtr<LayerRect> > m_list;
};
} // namespace WebCore
-#endif // Composition_h
+#endif // ClientRectList_h
« no previous file with comments | « Source/core/testing/LayerRect.idl ('k') | Source/core/testing/LayerRectList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698