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 3093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3104 } | 3104 } |
3105 | 3105 |
3106 void RenderViewImpl::frameDetached(WebFrame* frame) { | 3106 void RenderViewImpl::frameDetached(WebFrame* frame) { |
3107 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameDetached(frame)); | 3107 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameDetached(frame)); |
3108 } | 3108 } |
3109 | 3109 |
3110 void RenderViewImpl::willClose(WebFrame* frame) { | 3110 void RenderViewImpl::willClose(WebFrame* frame) { |
3111 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); | 3111 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); |
3112 } | 3112 } |
3113 | 3113 |
| 3114 void RenderViewImpl::didMatchCSS( |
| 3115 WebFrame* frame, |
| 3116 const WebVector<WebString>& newly_matching_selectors, |
| 3117 const WebVector<WebString>& stopped_matching_selectors) { |
| 3118 FOR_EACH_OBSERVER( |
| 3119 RenderViewObserver, observers_, |
| 3120 DidMatchCSS(frame, newly_matching_selectors, stopped_matching_selectors)); |
| 3121 } |
| 3122 |
3114 void RenderViewImpl::Repaint(const gfx::Size& size) { | 3123 void RenderViewImpl::Repaint(const gfx::Size& size) { |
3115 OnRepaint(size); | 3124 OnRepaint(size); |
3116 } | 3125 } |
3117 | 3126 |
3118 void RenderViewImpl::SetEditCommandForNextKeyEvent(const std::string& name, | 3127 void RenderViewImpl::SetEditCommandForNextKeyEvent(const std::string& name, |
3119 const std::string& value) { | 3128 const std::string& value) { |
3120 EditCommands edit_commands; | 3129 EditCommands edit_commands; |
3121 edit_commands.push_back(EditCommand(name, value)); | 3130 edit_commands.push_back(EditCommand(name, value)); |
3122 OnSetEditCommandsForNextKeyEvent(edit_commands); | 3131 OnSetEditCommandsForNextKeyEvent(edit_commands); |
3123 } | 3132 } |
(...skipping 3399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6523 for (size_t i = 0; i < icon_urls.size(); i++) { | 6532 for (size_t i = 0; i < icon_urls.size(); i++) { |
6524 WebURL url = icon_urls[i].iconURL(); | 6533 WebURL url = icon_urls[i].iconURL(); |
6525 if (!url.isEmpty()) | 6534 if (!url.isEmpty()) |
6526 urls.push_back(FaviconURL(url, | 6535 urls.push_back(FaviconURL(url, |
6527 ToFaviconType(icon_urls[i].iconType()))); | 6536 ToFaviconType(icon_urls[i].iconType()))); |
6528 } | 6537 } |
6529 SendUpdateFaviconURL(urls); | 6538 SendUpdateFaviconURL(urls); |
6530 } | 6539 } |
6531 | 6540 |
6532 } // namespace content | 6541 } // namespace content |
OLD | NEW |