Index: webkit/glue/web_intent_service_data.cc |
diff --git a/webkit/glue/web_intent_service_data.cc b/webkit/glue/web_intent_service_data.cc |
index 09933c500a277ca9c13a2179688d517bf68e6af7..267d6300da84f3072a2a76904e623ce1ab296ff5 100644 |
--- a/webkit/glue/web_intent_service_data.cc |
+++ b/webkit/glue/web_intent_service_data.cc |
@@ -7,6 +7,12 @@ |
#include "base/utf_string_conversions.h" |
#include "webkit/glue/web_intent_service_data.h" |
+namespace webkit_glue { |
+ |
+static const char kIntentsInlineDisposition[] = "inline"; |
+ |
+} // namespace webkit_glue |
+ |
WebIntentServiceData::WebIntentServiceData() |
: disposition(WebIntentServiceData::DISPOSITION_WINDOW) { |
} |
@@ -32,6 +38,13 @@ bool WebIntentServiceData::operator==(const WebIntentServiceData& other) const { |
disposition == other.disposition; |
} |
+void WebIntentServiceData::setDisposition(const string16& disp) { |
+ if (disp == ASCIIToUTF16(webkit_glue::kIntentsInlineDisposition)) |
+ disposition = DISPOSITION_INLINE; |
+ else |
+ disposition = DISPOSITION_WINDOW; |
+} |
+ |
std::ostream& operator<<(::std::ostream& os, |
const WebIntentServiceData& intent) { |
return os << |