summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 01:51:49 +0000
committergbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 01:51:49 +0000
commit95836bd1b8849a7b525e38b3a5b48e2cda91df80 (patch)
tree9d0fb5b09a3dd69c0ade5f0533fcb7044fe14fbd
parent9f7aef03910ed35b4e90c36607867f805f1ba5b3 (diff)
downloadchromium_src-95836bd1b8849a7b525e38b3a5b48e2cda91df80.zip
chromium_src-95836bd1b8849a7b525e38b3a5b48e2cda91df80.tar.gz
chromium_src-95836bd1b8849a7b525e38b3a5b48e2cda91df80.tar.bz2
Add return logic calling WebFrame.
R=jhawkins@chromium.org BUG=None TEST=None Review URL: http://codereview.chromium.org/8680024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111475 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/renderer/intents_dispatcher.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/renderer/intents_dispatcher.cc b/content/renderer/intents_dispatcher.cc
index 1c8abaf..adcb2e4b4 100644
--- a/content/renderer/intents_dispatcher.cc
+++ b/content/renderer/intents_dispatcher.cc
@@ -11,6 +11,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptValue.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
#include "v8/include/v8.h"
#include "webkit/glue/cpp_bound_class.h"
@@ -147,6 +148,14 @@ void IntentsDispatcher::OnWebIntentReply(
const WebKit::WebString& data,
int intent_id) {
LOG(INFO) << "RenderView got reply to intent type " << reply_type;
+
+ if (reply_type == webkit_glue::WEB_INTENT_REPLY_SUCCESS) {
+ render_view()->GetWebView()->mainFrame()->handleIntentResult(
+ intent_id, data);
+ } else {
+ render_view()->GetWebView()->mainFrame()->handleIntentFailure(
+ intent_id, data);
+ }
}
void IntentsDispatcher::OnResult(const WebKit::WebString& data) {