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

Side by Side Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Patch Set: Fix nits Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 } 531 }
532 532
533 void WebPluginContainerImpl::requestTouchEventType(TouchEventRequestType request Type) 533 void WebPluginContainerImpl::requestTouchEventType(TouchEventRequestType request Type)
534 { 534 {
535 if (m_touchEventRequestType == requestType || !m_element) 535 if (m_touchEventRequestType == requestType || !m_element)
536 return; 536 return;
537 537
538 if (m_element->document().frameHost()) { 538 if (m_element->document().frameHost()) {
539 EventHandlerRegistry& registry = m_element->document().frameHost()->even tHandlerRegistry(); 539 EventHandlerRegistry& registry = m_element->document().frameHost()->even tHandlerRegistry();
540 if (requestType != TouchEventRequestTypeNone && m_touchEventRequestType == TouchEventRequestTypeNone) 540 if (requestType != TouchEventRequestTypeNone && m_touchEventRequestType == TouchEventRequestTypeNone)
541 registry.didAddEventHandler(*m_element, EventHandlerRegistry::TouchE vent); 541 registry.didAddEventHandler(*m_element, EventHandlerRegistry::TouchE ventBlocking);
542 else if (requestType == TouchEventRequestTypeNone && m_touchEventRequest Type != TouchEventRequestTypeNone) 542 else if (requestType == TouchEventRequestTypeNone && m_touchEventRequest Type != TouchEventRequestTypeNone)
543 registry.didRemoveEventHandler(*m_element, EventHandlerRegistry::Tou chEvent); 543 registry.didRemoveEventHandler(*m_element, EventHandlerRegistry::Tou chEventBlocking);
544 } 544 }
545 m_touchEventRequestType = requestType; 545 m_touchEventRequestType = requestType;
546 } 546 }
547 547
548 void WebPluginContainerImpl::setWantsWheelEvents(bool wantsWheelEvents) 548 void WebPluginContainerImpl::setWantsWheelEvents(bool wantsWheelEvents)
549 { 549 {
550 if (m_wantsWheelEvents == wantsWheelEvents) 550 if (m_wantsWheelEvents == wantsWheelEvents)
551 return; 551 return;
552 m_wantsWheelEvents = wantsWheelEvents; 552 m_wantsWheelEvents = wantsWheelEvents;
553 if (Page* page = m_element->document().page()) { 553 if (Page* page = m_element->document().page()) {
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 // frame view. 963 // frame view.
964 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRec t); 964 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRec t);
965 } 965 }
966 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); 966 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects);
967 // Convert to the plugin position. 967 // Convert to the plugin position.
968 for (size_t i = 0; i < cutOutRects.size(); i++) 968 for (size_t i = 0; i < cutOutRects.size(); i++)
969 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); 969 cutOutRects[i].move(-frameRect().x(), -frameRect().y());
970 } 970 }
971 971
972 } // namespace blink 972 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebPagePopupImpl.cpp ('k') | third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698