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

Unified Diff: webkit/glue/web_intent_service_data.cc

Issue 8343070: Support dispositon attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try again Created 9 years, 2 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 | « webkit/glue/web_intent_service_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <<
« no previous file with comments | « webkit/glue/web_intent_service_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698