Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / inspector / InspectorStyleTextEditor.h
index abad8c8..0736d9c 100644 (file)
 #ifndef InspectorStyleTextEditor_h
 #define InspectorStyleTextEditor_h
 
+#include "platform/heap/Handle.h"
 #include "wtf/Vector.h"
 #include "wtf/text/WTFString.h"
 
-namespace WebCore {
+namespace blink {
 
 
 struct InspectorStyleProperty;
@@ -37,22 +38,22 @@ struct SourceRange;
 typedef std::pair<String, String> NewLineAndWhitespace;
 
 class InspectorStyleTextEditor {
+    STACK_ALLOCATED();
 public:
-    InspectorStyleTextEditor(Vector<InspectorStyleProperty>* allProperties,const String& styleText, const NewLineAndWhitespace& format);
+    InspectorStyleTextEditor(WillBeHeapVector<InspectorStyleProperty>* allProperties, const String& styleText, const NewLineAndWhitespace& format);
     void insertProperty(unsigned index, const String& propertyText, unsigned styleBodyLength);
     void replaceProperty(unsigned index, const String& newText);
-    void removeProperty(unsigned index);
     const String& styleText() const { return m_styleText; }
 
 private:
     void internalReplaceProperty(const InspectorStyleProperty&, const String& newText);
 
-    Vector<InspectorStyleProperty>* m_allProperties;
+    WillBeHeapVector<InspectorStyleProperty>* m_allProperties;
     String m_styleText;
     const std::pair<String, String> m_format;
 };
 
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // !defined(InspectorStyleTextEditor_h)