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

Side by Side Diff: Source/web/WebViewImpl.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 | « Source/web/WebViewImpl.h ('k') | public/web/WebViewClient.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 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 1307
1308 computeScaleAndScrollForBlockRect(WebPoint(rect.x, rect.y), rect, nonUserIni tiatedPointPadding, minimumPageScaleFactor(), scale, scroll); 1308 computeScaleAndScrollForBlockRect(WebPoint(rect.x, rect.y), rect, nonUserIni tiatedPointPadding, minimumPageScaleFactor(), scale, scroll);
1309 1309
1310 if (scale <= pageScaleFactor()) 1310 if (scale <= pageScaleFactor())
1311 return false; 1311 return false;
1312 1312
1313 startPageScaleAnimation(scroll, false, scale, multipleTargetsZoomAnimationDu rationInSeconds); 1313 startPageScaleAnimation(scroll, false, scale, multipleTargetsZoomAnimationDu rationInSeconds);
1314 return true; 1314 return true;
1315 } 1315 }
1316 1316
1317 void WebViewImpl::numberOfWheelEventHandlersChanged(unsigned numberOfWheelHandle rs)
1318 {
1319 if (m_client)
1320 m_client->numberOfWheelEventHandlersChanged(numberOfWheelHandlers);
1321 }
1322
1323 void WebViewImpl::hasTouchEventHandlers(bool hasTouchHandlers) 1317 void WebViewImpl::hasTouchEventHandlers(bool hasTouchHandlers)
1324 { 1318 {
1325 if (m_client) 1319 if (m_client)
1326 m_client->hasTouchEventHandlers(hasTouchHandlers); 1320 m_client->hasTouchEventHandlers(hasTouchHandlers);
1327 } 1321 }
1328 1322
1329 bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point) 1323 bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point)
1330 { 1324 {
1331 // FIXME: Implement this. Note that the point must be divided by pageScaleFa ctor. 1325 // FIXME: Implement this. Note that the point must be divided by pageScaleFa ctor.
1332 return true; 1326 return true;
(...skipping 2730 matching lines...) Expand 10 before | Expand all | Expand 10 after
4063 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints(); 4057 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints();
4064 4058
4065 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) 4059 if (!mainFrameImpl() || !mainFrameImpl()->frameView())
4066 return false; 4060 return false;
4067 4061
4068 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4062 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4069 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4063 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4070 } 4064 }
4071 4065
4072 } // namespace blink 4066 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698