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/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 2847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2858 const WebString& name) { | 2858 const WebString& name) { |
2859 if (!renderer_preferences_.report_frame_name_changes) | 2859 if (!renderer_preferences_.report_frame_name_changes) |
2860 return; | 2860 return; |
2861 | 2861 |
2862 Send(new ViewHostMsg_UpdateFrameName(routing_id_, | 2862 Send(new ViewHostMsg_UpdateFrameName(routing_id_, |
2863 frame->identifier(), | 2863 frame->identifier(), |
2864 !frame->parent(), | 2864 !frame->parent(), |
2865 UTF16ToUTF8(name))); | 2865 UTF16ToUTF8(name))); |
2866 } | 2866 } |
2867 | 2867 |
| 2868 void RenderViewImpl::cssMatches( |
| 2869 WebFrame* frame, |
| 2870 const WebVector<WebString>& newlyMatchingSelectors, |
| 2871 const WebVector<WebString>& stoppedMatchingSelectors) { |
| 2872 FOR_EACH_OBSERVER( |
| 2873 RenderViewObserver, observers_, |
| 2874 CssMatches(frame, newlyMatchingSelectors, stoppedMatchingSelectors)); |
| 2875 } |
| 2876 |
2868 void RenderViewImpl::loadURLExternally( | 2877 void RenderViewImpl::loadURLExternally( |
2869 WebFrame* frame, const WebURLRequest& request, | 2878 WebFrame* frame, const WebURLRequest& request, |
2870 WebNavigationPolicy policy) { | 2879 WebNavigationPolicy policy) { |
2871 loadURLExternally(frame, request, policy, WebString()); | 2880 loadURLExternally(frame, request, policy, WebString()); |
2872 } | 2881 } |
2873 | 2882 |
2874 void RenderViewImpl::Repaint(const gfx::Size& size) { | 2883 void RenderViewImpl::Repaint(const gfx::Size& size) { |
2875 OnRepaint(size); | 2884 OnRepaint(size); |
2876 } | 2885 } |
2877 | 2886 |
(...skipping 3797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6675 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6684 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
6676 RenderProcess::current()->ReleaseTransportDIB(dib); | 6685 RenderProcess::current()->ReleaseTransportDIB(dib); |
6677 } | 6686 } |
6678 | 6687 |
6679 void RenderViewImpl::DidCommitCompositorFrame() { | 6688 void RenderViewImpl::DidCommitCompositorFrame() { |
6680 RenderWidget::DidCommitCompositorFrame(); | 6689 RenderWidget::DidCommitCompositorFrame(); |
6681 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); | 6690 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); |
6682 } | 6691 } |
6683 | 6692 |
6684 } // namespace content | 6693 } // namespace content |
OLD | NEW |