Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 4457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4468 | 4468 |
| 4469 void RenderViewImpl::didLoseWebGLContext( | 4469 void RenderViewImpl::didLoseWebGLContext( |
| 4470 WebKit::WebFrame* frame, | 4470 WebKit::WebFrame* frame, |
| 4471 int arb_robustness_status_code) { | 4471 int arb_robustness_status_code) { |
| 4472 Send(new ViewHostMsg_DidLose3DContext( | 4472 Send(new ViewHostMsg_DidLose3DContext( |
| 4473 GURL(frame->top()->document().securityOrigin().toString()), | 4473 GURL(frame->top()->document().securityOrigin().toString()), |
| 4474 THREE_D_API_TYPE_WEBGL, | 4474 THREE_D_API_TYPE_WEBGL, |
| 4475 arb_robustness_status_code)); | 4475 arb_robustness_status_code)); |
| 4476 } | 4476 } |
| 4477 | 4477 |
| 4478 void RenderViewImpl::willInsertBody(WebKit::WebFrame* frame) { | |
| 4479 if (frame == webview()->mainFrame()) { | |
|
darin (slow to review)
2013/02/07 07:40:41
nit: !frame->parent() is a slightly more compact w
James Simonsen
2013/02/11 22:53:11
Done.
| |
| 4480 Send(new ViewHostMsg_DidParseBody(routing_id())); | |
|
darin (slow to review)
2013/02/07 07:40:41
Maybe the IPC message should also use the term "In
James Simonsen
2013/02/11 22:53:11
Done.
Either name is accurate. There's a delay be
| |
| 4481 } | |
| 4482 } | |
| 4483 | |
| 4478 // WebKit::WebPageSerializerClient implementation ------------------------------ | 4484 // WebKit::WebPageSerializerClient implementation ------------------------------ |
| 4479 | 4485 |
| 4480 void RenderViewImpl::didSerializeDataForFrame( | 4486 void RenderViewImpl::didSerializeDataForFrame( |
| 4481 const WebURL& frame_url, | 4487 const WebURL& frame_url, |
| 4482 const WebCString& data, | 4488 const WebCString& data, |
| 4483 WebPageSerializerClient::PageSerializationStatus status) { | 4489 WebPageSerializerClient::PageSerializationStatus status) { |
| 4484 Send(new ViewHostMsg_SendSerializedHtmlData( | 4490 Send(new ViewHostMsg_SendSerializedHtmlData( |
| 4485 routing_id(), | 4491 routing_id(), |
| 4486 frame_url, | 4492 frame_url, |
| 4487 data.data(), | 4493 data.data(), |
| (...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6661 } | 6667 } |
| 6662 #endif | 6668 #endif |
| 6663 | 6669 |
| 6664 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6670 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
| 6665 TransportDIB::Handle dib_handle) { | 6671 TransportDIB::Handle dib_handle) { |
| 6666 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6672 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
| 6667 RenderProcess::current()->ReleaseTransportDIB(dib); | 6673 RenderProcess::current()->ReleaseTransportDIB(dib); |
| 6668 } | 6674 } |
| 6669 | 6675 |
| 6670 } // namespace content | 6676 } // namespace content |
| OLD | NEW |