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 |