| 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 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2811 Send(new ViewHostMsg_FocusedNodeChanged(routing_id_, IsEditableNode(node))); | 2811 Send(new ViewHostMsg_FocusedNodeChanged(routing_id_, IsEditableNode(node))); |
| 2812 | 2812 |
| 2813 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FocusedNodeChanged(node)); | 2813 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FocusedNodeChanged(node)); |
| 2814 } | 2814 } |
| 2815 | 2815 |
| 2816 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) { | 2816 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) { |
| 2817 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers)); | 2817 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers)); |
| 2818 } | 2818 } |
| 2819 | 2819 |
| 2820 void RenderViewImpl::didUpdateLayout() { | 2820 void RenderViewImpl::didUpdateLayout() { |
| 2821 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidUpdateLayout()); |
| 2822 |
| 2821 // We don't always want to set up a timer, only if we've been put in that | 2823 // We don't always want to set up a timer, only if we've been put in that |
| 2822 // mode by getting a |ViewMsg_EnablePreferredSizeChangedMode| | 2824 // mode by getting a |ViewMsg_EnablePreferredSizeChangedMode| |
| 2823 // message. | 2825 // message. |
| 2824 if (!send_preferred_size_changes_ || !webview()) | 2826 if (!send_preferred_size_changes_ || !webview()) |
| 2825 return; | 2827 return; |
| 2826 | 2828 |
| 2827 if (check_preferred_size_timer_.IsRunning()) | 2829 if (check_preferred_size_timer_.IsRunning()) |
| 2828 return; | 2830 return; |
| 2829 check_preferred_size_timer_.Start(FROM_HERE, | 2831 check_preferred_size_timer_.Start(FROM_HERE, |
| 2830 TimeDelta::FromMilliseconds(0), this, | 2832 TimeDelta::FromMilliseconds(0), this, |
| (...skipping 3690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6521 for (size_t i = 0; i < icon_urls.size(); i++) { | 6523 for (size_t i = 0; i < icon_urls.size(); i++) { |
| 6522 WebURL url = icon_urls[i].iconURL(); | 6524 WebURL url = icon_urls[i].iconURL(); |
| 6523 if (!url.isEmpty()) | 6525 if (!url.isEmpty()) |
| 6524 urls.push_back(FaviconURL(url, | 6526 urls.push_back(FaviconURL(url, |
| 6525 ToFaviconType(icon_urls[i].iconType()))); | 6527 ToFaviconType(icon_urls[i].iconType()))); |
| 6526 } | 6528 } |
| 6527 SendUpdateFaviconURL(urls); | 6529 SendUpdateFaviconURL(urls); |
| 6528 } | 6530 } |
| 6529 | 6531 |
| 6530 } // namespace content | 6532 } // namespace content |
| OLD | NEW |