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

Side by Side Diff: Source/core/frame/EventHandlerRegistry.cpp

Issue 311903002: Remove dead notification for number of wheel event handlers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another try. 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 | « no previous file | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "core/frame/EventHandlerRegistry.h" 6 #include "core/frame/EventHandlerRegistry.h"
7 7
8 #include "core/events/ThreadLocalEventNames.h" 8 #include "core/events/ThreadLocalEventNames.h"
9 #include "core/frame/DOMWindow.h" 9 #include "core/frame/DOMWindow.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 continue; 150 continue;
151 } 151 }
152 for (unsigned count = target.getEventListeners(eventTypes[i]).size(); co unt > 0; --count) 152 for (unsigned count = target.getEventListeners(eventTypes[i]).size(); co unt > 0; --count)
153 updateEventHandlerInternal(op, handlerClass, &target); 153 updateEventHandlerInternal(op, handlerClass, &target);
154 } 154 }
155 } 155 }
156 156
157 void EventHandlerRegistry::notifyHasHandlersChanged(EventHandlerClass handlerCla ss, bool hasActiveHandlers) 157 void EventHandlerRegistry::notifyHasHandlersChanged(EventHandlerClass handlerCla ss, bool hasActiveHandlers)
158 { 158 {
159 ScrollingCoordinator* scrollingCoordinator = m_frameHost.page().scrollingCoo rdinator(); 159 ScrollingCoordinator* scrollingCoordinator = m_frameHost.page().scrollingCoo rdinator();
160 LocalFrame* mainFrame = m_frameHost.page().mainFrame();
161 160
162 switch (handlerClass) { 161 switch (handlerClass) {
163 case ScrollEvent: 162 case ScrollEvent:
164 if (scrollingCoordinator) 163 if (scrollingCoordinator)
165 scrollingCoordinator->updateHaveScrollEventHandlers(); 164 scrollingCoordinator->updateHaveScrollEventHandlers();
166 break; 165 break;
167 case WheelEvent: 166 case WheelEvent:
168 if (mainFrame) {
169 // FIXME: This notification is wired up to a black hole, so remove i t.
170 mainFrame->notifyChromeClientWheelEventHandlerCountChanged();
171 }
172 if (scrollingCoordinator) 167 if (scrollingCoordinator)
173 scrollingCoordinator->updateHaveWheelEventHandlers(); 168 scrollingCoordinator->updateHaveWheelEventHandlers();
174 break; 169 break;
175 #if ASSERT_ENABLED 170 #if ASSERT_ENABLED
176 case EventsForTesting: 171 case EventsForTesting:
177 break; 172 break;
178 #endif 173 #endif
179 default: 174 default:
180 ASSERT_NOT_REACHED(); 175 ASSERT_NOT_REACHED();
181 break; 176 break;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 ASSERT(window->frame()); 246 ASSERT(window->frame());
252 ASSERT(window->frame()->host()); 247 ASSERT(window->frame()->host());
253 ASSERT(window->frame()->host() == &m_frameHost); 248 ASSERT(window->frame()->host() == &m_frameHost);
254 } 249 }
255 } 250 }
256 } 251 }
257 #endif // ASSERT_ENABLED 252 #endif // ASSERT_ENABLED
258 } 253 }
259 254
260 } // namespace WebCore 255 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698