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_impl.h" | 5 #include "content/renderer/render_view_impl.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 4499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4510 } | 4510 } |
4511 Send(new ViewHostMsg_RegisterProtocolHandler(routing_id_, | 4511 Send(new ViewHostMsg_RegisterProtocolHandler(routing_id_, |
4512 UTF16ToUTF8(scheme), | 4512 UTF16ToUTF8(scheme), |
4513 absolute_url, | 4513 absolute_url, |
4514 title)); | 4514 title)); |
4515 } | 4515 } |
4516 | 4516 |
4517 void RenderViewImpl::registerIntentHandler(const WebString& action, | 4517 void RenderViewImpl::registerIntentHandler(const WebString& action, |
4518 const WebString& type, | 4518 const WebString& type, |
4519 const WebString& href, | 4519 const WebString& href, |
4520 const WebString& title) { | 4520 const WebString& title, |
4521 Send(new ViewHostMsg_RegisterIntentHandler(routing_id_, | 4521 const WebString& disposition) { |
| 4522 Send(new IntentsHostMsg_RegisterIntentHandler(routing_id_, |
4522 action, | 4523 action, |
4523 type, | 4524 type, |
4524 href, | 4525 href, |
4525 title)); | 4526 title, |
| 4527 disposition)); |
4526 } | 4528 } |
4527 | 4529 |
4528 WebKit::WebPageVisibilityState RenderViewImpl::visibilityState() const { | 4530 WebKit::WebPageVisibilityState RenderViewImpl::visibilityState() const { |
4529 WebKit::WebPageVisibilityState current_state = is_hidden() ? | 4531 WebKit::WebPageVisibilityState current_state = is_hidden() ? |
4530 WebKit::WebPageVisibilityStateHidden : | 4532 WebKit::WebPageVisibilityStateHidden : |
4531 WebKit::WebPageVisibilityStateVisible; | 4533 WebKit::WebPageVisibilityStateVisible; |
4532 WebKit::WebPageVisibilityState override_state = current_state; | 4534 WebKit::WebPageVisibilityState override_state = current_state; |
4533 if (content::GetContentClient()->renderer()-> | 4535 if (content::GetContentClient()->renderer()-> |
4534 ShouldOverridePageVisibilityState(this, | 4536 ShouldOverridePageVisibilityState(this, |
4535 &override_state)) | 4537 &override_state)) |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4670 return webview()->settings()->useThreadedCompositor(); | 4672 return webview()->settings()->useThreadedCompositor(); |
4671 } | 4673 } |
4672 | 4674 |
4673 void RenderViewImpl::OnJavaBridgeInit( | 4675 void RenderViewImpl::OnJavaBridgeInit( |
4674 const IPC::ChannelHandle& channel_handle) { | 4676 const IPC::ChannelHandle& channel_handle) { |
4675 DCHECK(!java_bridge_dispatcher_.get()); | 4677 DCHECK(!java_bridge_dispatcher_.get()); |
4676 #if defined(ENABLE_JAVA_BRIDGE) | 4678 #if defined(ENABLE_JAVA_BRIDGE) |
4677 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle)); | 4679 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle)); |
4678 #endif | 4680 #endif |
4679 } | 4681 } |
OLD | NEW |