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