X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Fframe%2FSmartClip.cpp;h=329412cfadb267bb51913f1a82fa351a6c6f4c5e;hb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;hp=40c773edf13f4188cea60d2ce62e5b46ff0e1de5;hpb=490a4587e7e356282cb1453efaf36de4acc9762f;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/frame/SmartClip.cpp b/src/third_party/WebKit/Source/core/frame/SmartClip.cpp index 40c773e..329412c 100644 --- a/src/third_party/WebKit/Source/core/frame/SmartClip.cpp +++ b/src/third_party/WebKit/Source/core/frame/SmartClip.cpp @@ -61,33 +61,14 @@ static Node* nodeInsideFrame(Node* node) return 0; } -// FIXME: SmartClipData is eventually returned via -// SLookSmartClip.DataExtractionListener: -// http://img-developer.samsung.com/onlinedocs/sms/com/samsung/android/sdk/look/... -// however the original author of this change chose to use a string-serialization -// format (presumably to make IPC easy?). -// If we're going to use this as a Pickle format, we should at least have the -// read/write code in one place! -String SmartClipData::toString() +IntRect SmartClipData::rect() const { - if (m_isEmpty) - return emptyString(); - - const UChar fieldSeparator = 0xFFFE; - const UChar rowSeparator = 0xFFFF; + return m_rect; +} - StringBuilder result; - result.append(String::number(m_rect.x())); - result.append(fieldSeparator); - result.append(String::number(m_rect.y())); - result.append(fieldSeparator); - result.append(String::number(m_rect.width())); - result.append(fieldSeparator); - result.append(String::number(m_rect.height())); - result.append(fieldSeparator); - result.append(m_string); - result.append(rowSeparator); - return result.toString(); +const String& SmartClipData::clipData() const +{ + return m_string; } SmartClip::SmartClip(PassRefPtr frame)