Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 315653003: Remove dead notification for number of wheel event handlers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 } 1729 }
1730 1730
1731 void RenderViewImpl::focusedNodeChanged(const WebNode& node) { 1731 void RenderViewImpl::focusedNodeChanged(const WebNode& node) {
1732 has_scrolled_focused_editable_node_into_rect_ = false; 1732 has_scrolled_focused_editable_node_into_rect_ = false;
1733 1733
1734 Send(new ViewHostMsg_FocusedNodeChanged(routing_id_, IsEditableNode(node))); 1734 Send(new ViewHostMsg_FocusedNodeChanged(routing_id_, IsEditableNode(node)));
1735 1735
1736 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FocusedNodeChanged(node)); 1736 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FocusedNodeChanged(node));
1737 } 1737 }
1738 1738
1739 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) {
1740 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers));
1741 }
1742
1743 void RenderViewImpl::didUpdateLayout() { 1739 void RenderViewImpl::didUpdateLayout() {
1744 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidUpdateLayout()); 1740 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidUpdateLayout());
1745 1741
1746 // We don't always want to set up a timer, only if we've been put in that 1742 // We don't always want to set up a timer, only if we've been put in that
1747 // mode by getting a |ViewMsg_EnablePreferredSizeChangedMode| 1743 // mode by getting a |ViewMsg_EnablePreferredSizeChangedMode|
1748 // message. 1744 // message.
1749 if (!send_preferred_size_changes_ || !webview()) 1745 if (!send_preferred_size_changes_ || !webview())
1750 return; 1746 return;
1751 1747
1752 if (check_preferred_size_timer_.IsRunning()) 1748 if (check_preferred_size_timer_.IsRunning())
(...skipping 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after
4052 std::vector<gfx::Size> sizes; 4048 std::vector<gfx::Size> sizes;
4053 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4049 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4054 if (!url.isEmpty()) 4050 if (!url.isEmpty())
4055 urls.push_back( 4051 urls.push_back(
4056 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4052 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4057 } 4053 }
4058 SendUpdateFaviconURL(urls); 4054 SendUpdateFaviconURL(urls);
4059 } 4055 }
4060 4056
4061 } // namespace content 4057 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698