| 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 4155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4166 return false; | 4166 return false; |
| 4167 | 4167 |
| 4168 bool blocked = true; | 4168 bool blocked = true; |
| 4169 Send(new FrameHostMsg_Are3DAPIsBlocked( | 4169 Send(new FrameHostMsg_Are3DAPIsBlocked( |
| 4170 routing_id_, | 4170 routing_id_, |
| 4171 blink::WebStringToGURL(frame_->top()->getSecurityOrigin().toString()), | 4171 blink::WebStringToGURL(frame_->top()->getSecurityOrigin().toString()), |
| 4172 THREE_D_API_TYPE_WEBGL, &blocked)); | 4172 THREE_D_API_TYPE_WEBGL, &blocked)); |
| 4173 return !blocked; | 4173 return !blocked; |
| 4174 } | 4174 } |
| 4175 | 4175 |
| 4176 void RenderFrameImpl::didLoseWebGLContext(int arb_robustness_status_code) { | |
| 4177 Send(new FrameHostMsg_DidLose3DContext( | |
| 4178 blink::WebStringToGURL(frame_->top()->getSecurityOrigin().toString()), | |
| 4179 THREE_D_API_TYPE_WEBGL, arb_robustness_status_code)); | |
| 4180 } | |
| 4181 | |
| 4182 blink::WebScreenOrientationClient* | 4176 blink::WebScreenOrientationClient* |
| 4183 RenderFrameImpl::webScreenOrientationClient() { | 4177 RenderFrameImpl::webScreenOrientationClient() { |
| 4184 if (!screen_orientation_dispatcher_) | 4178 if (!screen_orientation_dispatcher_) |
| 4185 screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this); | 4179 screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this); |
| 4186 return screen_orientation_dispatcher_; | 4180 return screen_orientation_dispatcher_; |
| 4187 } | 4181 } |
| 4188 | 4182 |
| 4189 bool RenderFrameImpl::isControlledByServiceWorker(WebDataSource& data_source) { | 4183 bool RenderFrameImpl::isControlledByServiceWorker(WebDataSource& data_source) { |
| 4190 ServiceWorkerNetworkProvider* provider = | 4184 ServiceWorkerNetworkProvider* provider = |
| 4191 ServiceWorkerNetworkProvider::FromDocumentState( | 4185 ServiceWorkerNetworkProvider::FromDocumentState( |
| (...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6027 int match_count, | 6021 int match_count, |
| 6028 int ordinal, | 6022 int ordinal, |
| 6029 const WebRect& selection_rect, | 6023 const WebRect& selection_rect, |
| 6030 bool final_status_update) { | 6024 bool final_status_update) { |
| 6031 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6025 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 6032 selection_rect, ordinal, | 6026 selection_rect, ordinal, |
| 6033 final_status_update)); | 6027 final_status_update)); |
| 6034 } | 6028 } |
| 6035 | 6029 |
| 6036 } // namespace content | 6030 } // namespace content |
| OLD | NEW |