| 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 3084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3095 } | 3095 } |
| 3096 | 3096 |
| 3097 void RenderViewImpl::frameDetached(WebFrame* frame) { | 3097 void RenderViewImpl::frameDetached(WebFrame* frame) { |
| 3098 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameDetached(frame)); | 3098 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameDetached(frame)); |
| 3099 } | 3099 } |
| 3100 | 3100 |
| 3101 void RenderViewImpl::willClose(WebFrame* frame) { | 3101 void RenderViewImpl::willClose(WebFrame* frame) { |
| 3102 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); | 3102 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); |
| 3103 } | 3103 } |
| 3104 | 3104 |
| 3105 void RenderViewImpl::didMatchCSS( |
| 3106 WebFrame* frame, |
| 3107 const WebVector<WebString>& newlyMatchingSelectors, |
| 3108 const WebVector<WebString>& stoppedMatchingSelectors) { |
| 3109 FOR_EACH_OBSERVER( |
| 3110 RenderViewObserver, observers_, |
| 3111 DidMatchCSS(frame, newlyMatchingSelectors, stoppedMatchingSelectors)); |
| 3112 } |
| 3113 |
| 3105 void RenderViewImpl::Repaint(const gfx::Size& size) { | 3114 void RenderViewImpl::Repaint(const gfx::Size& size) { |
| 3106 OnRepaint(size); | 3115 OnRepaint(size); |
| 3107 } | 3116 } |
| 3108 | 3117 |
| 3109 void RenderViewImpl::SetEditCommandForNextKeyEvent(const std::string& name, | 3118 void RenderViewImpl::SetEditCommandForNextKeyEvent(const std::string& name, |
| 3110 const std::string& value) { | 3119 const std::string& value) { |
| 3111 EditCommands edit_commands; | 3120 EditCommands edit_commands; |
| 3112 edit_commands.push_back(EditCommand(name, value)); | 3121 edit_commands.push_back(EditCommand(name, value)); |
| 3113 OnSetEditCommandsForNextKeyEvent(edit_commands); | 3122 OnSetEditCommandsForNextKeyEvent(edit_commands); |
| 3114 } | 3123 } |
| (...skipping 3390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6505 for (size_t i = 0; i < icon_urls.size(); i++) { | 6514 for (size_t i = 0; i < icon_urls.size(); i++) { |
| 6506 WebURL url = icon_urls[i].iconURL(); | 6515 WebURL url = icon_urls[i].iconURL(); |
| 6507 if (!url.isEmpty()) | 6516 if (!url.isEmpty()) |
| 6508 urls.push_back(FaviconURL(url, | 6517 urls.push_back(FaviconURL(url, |
| 6509 ToFaviconType(icon_urls[i].iconType()))); | 6518 ToFaviconType(icon_urls[i].iconType()))); |
| 6510 } | 6519 } |
| 6511 SendUpdateFaviconURL(urls); | 6520 SendUpdateFaviconURL(urls); |
| 6512 } | 6521 } |
| 6513 | 6522 |
| 6514 } // namespace content | 6523 } // namespace content |
| OLD | NEW |