| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 4103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4114 return false; | 4114 return false; |
| 4115 | 4115 |
| 4116 bool blocked = true; | 4116 bool blocked = true; |
| 4117 Send(new FrameHostMsg_Are3DAPIsBlocked( | 4117 Send(new FrameHostMsg_Are3DAPIsBlocked( |
| 4118 routing_id_, | 4118 routing_id_, |
| 4119 blink::WebStringToGURL(frame_->top()->getSecurityOrigin().toString()), | 4119 blink::WebStringToGURL(frame_->top()->getSecurityOrigin().toString()), |
| 4120 THREE_D_API_TYPE_WEBGL, &blocked)); | 4120 THREE_D_API_TYPE_WEBGL, &blocked)); |
| 4121 return !blocked; | 4121 return !blocked; |
| 4122 } | 4122 } |
| 4123 | 4123 |
| 4124 void RenderFrameImpl::didLoseWebGLContext(int arb_robustness_status_code) { | |
| 4125 Send(new FrameHostMsg_DidLose3DContext( | |
| 4126 blink::WebStringToGURL(frame_->top()->getSecurityOrigin().toString()), | |
| 4127 THREE_D_API_TYPE_WEBGL, arb_robustness_status_code)); | |
| 4128 } | |
| 4129 | |
| 4130 blink::WebScreenOrientationClient* | 4124 blink::WebScreenOrientationClient* |
| 4131 RenderFrameImpl::webScreenOrientationClient() { | 4125 RenderFrameImpl::webScreenOrientationClient() { |
| 4132 if (!screen_orientation_dispatcher_) | 4126 if (!screen_orientation_dispatcher_) |
| 4133 screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this); | 4127 screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this); |
| 4134 return screen_orientation_dispatcher_; | 4128 return screen_orientation_dispatcher_; |
| 4135 } | 4129 } |
| 4136 | 4130 |
| 4137 bool RenderFrameImpl::isControlledByServiceWorker(WebDataSource& data_source) { | 4131 bool RenderFrameImpl::isControlledByServiceWorker(WebDataSource& data_source) { |
| 4138 ServiceWorkerNetworkProvider* provider = | 4132 ServiceWorkerNetworkProvider* provider = |
| 4139 ServiceWorkerNetworkProvider::FromDocumentState( | 4133 ServiceWorkerNetworkProvider::FromDocumentState( |
| (...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5975 int match_count, | 5969 int match_count, |
| 5976 int ordinal, | 5970 int ordinal, |
| 5977 const WebRect& selection_rect, | 5971 const WebRect& selection_rect, |
| 5978 bool final_status_update) { | 5972 bool final_status_update) { |
| 5979 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 5973 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 5980 selection_rect, ordinal, | 5974 selection_rect, ordinal, |
| 5981 final_status_update)); | 5975 final_status_update)); |
| 5982 } | 5976 } |
| 5983 | 5977 |
| 5984 } // namespace content | 5978 } // namespace content |
| OLD | NEW |