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 2722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2733 | 2733 |
2734 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameDetached(frame)); | 2734 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameDetached(frame)); |
2735 } | 2735 } |
2736 | 2736 |
2737 void RenderViewImpl::willClose(WebFrame* frame) { | 2737 void RenderViewImpl::willClose(WebFrame* frame) { |
2738 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); | 2738 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); |
2739 } | 2739 } |
2740 | 2740 |
2741 void RenderViewImpl::didChangeName(WebFrame* frame, | 2741 void RenderViewImpl::didChangeName(WebFrame* frame, |
2742 const WebString& name) { | 2742 const WebString& name) { |
| 2743 if (!renderer_preferences_.report_frame_name_changes) |
| 2744 return; |
| 2745 |
2743 Send(new ViewHostMsg_UpdateFrameName(routing_id_, | 2746 Send(new ViewHostMsg_UpdateFrameName(routing_id_, |
2744 frame->identifier(), | 2747 frame->identifier(), |
2745 !frame->parent(), | 2748 !frame->parent(), |
2746 UTF16ToUTF8(name))); | 2749 UTF16ToUTF8(name))); |
2747 } | 2750 } |
2748 | 2751 |
2749 void RenderViewImpl::loadURLExternally( | 2752 void RenderViewImpl::loadURLExternally( |
2750 WebFrame* frame, const WebURLRequest& request, | 2753 WebFrame* frame, const WebURLRequest& request, |
2751 WebNavigationPolicy policy) { | 2754 WebNavigationPolicy policy) { |
2752 loadURLExternally(frame, request, policy, WebString()); | 2755 loadURLExternally(frame, request, policy, WebString()); |
(...skipping 3800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6553 } | 6556 } |
6554 #endif | 6557 #endif |
6555 | 6558 |
6556 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6559 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
6557 TransportDIB::Handle dib_handle) { | 6560 TransportDIB::Handle dib_handle) { |
6558 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6561 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
6559 RenderProcess::current()->ReleaseTransportDIB(dib); | 6562 RenderProcess::current()->ReleaseTransportDIB(dib); |
6560 } | 6563 } |
6561 | 6564 |
6562 } // namespace content | 6565 } // namespace content |
OLD | NEW |