OLD | NEW |
---|---|
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 4486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4497 ShouldOverridePageVisibilityState(this, | 4497 ShouldOverridePageVisibilityState(this, |
4498 &override_state)) | 4498 &override_state)) |
4499 return override_state; | 4499 return override_state; |
4500 return current_state; | 4500 return current_state; |
4501 } | 4501 } |
4502 | 4502 |
4503 void RenderView::startActivity(const WebKit::WebString& action, | 4503 void RenderView::startActivity(const WebKit::WebString& action, |
4504 const WebKit::WebString& type, | 4504 const WebKit::WebString& type, |
4505 const WebKit::WebString& data, | 4505 const WebKit::WebString& data, |
4506 int intent_id) { | 4506 int intent_id) { |
4507 RenderThread::current()->Send(new ViewHostMsg_WebIntentDispatch( | 4507 webkit_glue::WebIntentData intent_data; |
4508 routing_id_, action, type, data, intent_id)); | 4508 intent_data.action = action; |
4509 intent_data.type = type; | |
4510 intent_data.data = data; | |
4511 RenderThread::current()->Send(new IntentsHostMsg_WebIntentDispatch( | |
jam
2011/09/20 23:42:16
nit: no need for "RenderThread::current()->"
Greg Billock
2011/09/21 00:25:57
Done.
| |
4512 routing_id_, intent_data, intent_id)); | |
4509 } | 4513 } |
4510 | 4514 |
4511 void RenderView::OnWebIntentReply( | 4515 void RenderView::OnWebIntentReply( |
4512 IntentsMsg_WebIntentReply_Type::Value reply_type, | 4516 IntentsMsg_WebIntentReply_Type::Value reply_type, |
4513 const WebKit::WebString& data, | 4517 const WebKit::WebString& data, |
4514 int intent_id) { | 4518 int intent_id) { |
4515 // TODO(gbillock): Implement once the webkit side lands. | 4519 // TODO(gbillock): Implement once the webkit side lands. |
4516 LOG(INFO) << "RenderView got reply to intent type " << reply_type; | 4520 LOG(INFO) << "RenderView got reply to intent type " << reply_type; |
4517 } | 4521 } |
4518 | 4522 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4607 } | 4611 } |
4608 | 4612 |
4609 void RenderView::OnEnableViewSourceMode() { | 4613 void RenderView::OnEnableViewSourceMode() { |
4610 if (!webview()) | 4614 if (!webview()) |
4611 return; | 4615 return; |
4612 WebFrame* main_frame = webview()->mainFrame(); | 4616 WebFrame* main_frame = webview()->mainFrame(); |
4613 if (!main_frame) | 4617 if (!main_frame) |
4614 return; | 4618 return; |
4615 main_frame->enableViewSourceMode(true); | 4619 main_frame->enableViewSourceMode(true); |
4616 } | 4620 } |
OLD | NEW |