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

Side by Side Diff: content/renderer/render_view.cc

Issue 7930002: Rename WebIntentData for backend storage to WebIntentServiceData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix class/struct decl Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/view_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view.h" 5 #include "content/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 4502 matching lines...) Expand 10 before | Expand all | Expand 10 after
4513 ShouldOverridePageVisibilityState(this, 4513 ShouldOverridePageVisibilityState(this,
4514 &override_state)) 4514 &override_state))
4515 return override_state; 4515 return override_state;
4516 return current_state; 4516 return current_state;
4517 } 4517 }
4518 4518
4519 void RenderView::startActivity(const WebKit::WebString& action, 4519 void RenderView::startActivity(const WebKit::WebString& action,
4520 const WebKit::WebString& type, 4520 const WebKit::WebString& type,
4521 const WebKit::WebString& data, 4521 const WebKit::WebString& data,
4522 int intent_id) { 4522 int intent_id) {
4523 RenderThread::current()->Send(new ViewHostMsg_WebIntentDispatch( 4523 webkit_glue::WebIntentData intent_data;
4524 routing_id_, action, type, data, intent_id)); 4524 intent_data.action = action;
4525 intent_data.type = type;
4526 intent_data.data = data;
4527 Send(new IntentsHostMsg_WebIntentDispatch(
4528 routing_id_, intent_data, intent_id));
4525 } 4529 }
4526 4530
4527 void RenderView::OnWebIntentReply( 4531 void RenderView::OnWebIntentReply(
4528 IntentsMsg_WebIntentReply_Type::Value reply_type, 4532 IntentsMsg_WebIntentReply_Type::Value reply_type,
4529 const WebKit::WebString& data, 4533 const WebKit::WebString& data,
4530 int intent_id) { 4534 int intent_id) {
4531 // TODO(gbillock): Implement once the webkit side lands. 4535 // TODO(gbillock): Implement once the webkit side lands.
4532 LOG(INFO) << "RenderView got reply to intent type " << reply_type; 4536 LOG(INFO) << "RenderView got reply to intent type " << reply_type;
4533 } 4537 }
4534 4538
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
4623 } 4627 }
4624 4628
4625 void RenderView::OnEnableViewSourceMode() { 4629 void RenderView::OnEnableViewSourceMode() {
4626 if (!webview()) 4630 if (!webview())
4627 return; 4631 return;
4628 WebFrame* main_frame = webview()->mainFrame(); 4632 WebFrame* main_frame = webview()->mainFrame();
4629 if (!main_frame) 4633 if (!main_frame)
4630 return; 4634 return;
4631 main_frame->enableViewSourceMode(true); 4635 main_frame->enableViewSourceMode(true);
4632 } 4636 }
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698