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

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

Issue 2431473003: Intersection Observer support for OOPIF (Closed)
Patch Set: Fixed test issue Created 4 years 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 // TODO(ekaramad):This method is almost duplicated in WebViewImpl as well. This 727 // TODO(ekaramad):This method is almost duplicated in WebViewImpl as well. This
728 // code needs to be refactored (http://crbug.com/629721). 728 // code needs to be refactored (http://crbug.com/629721).
729 void WebFrameWidgetImpl::applyReplacementRange(const WebRange& range) { 729 void WebFrameWidgetImpl::applyReplacementRange(const WebRange& range) {
730 if (LocalFrame* frame = focusedLocalFrameInWidget()) { 730 if (LocalFrame* frame = focusedLocalFrameInWidget()) {
731 // TODO(dglazkov): Going from LocalFrame to WebLocalFrameImpl seems 731 // TODO(dglazkov): Going from LocalFrame to WebLocalFrameImpl seems
732 // silly. What is going on here? 732 // silly. What is going on here?
733 WebLocalFrameImpl::fromFrame(frame)->selectRange(range); 733 WebLocalFrameImpl::fromFrame(frame)->selectRange(range);
734 } 734 }
735 } 735 }
736 736
737 void WebFrameWidgetImpl::setRemoteViewportIntersection(
738 const WebRect& viewportIntersection) {
739 // Remote viewports are only applicable to local frames with remote ancestors.
740 if (!m_localRoot->parent() || !m_localRoot->parent()->isWebRemoteFrame())
741 return;
742 if (m_localRoot->frameView()) {
743 m_localRoot->frameView()->setViewportIntersectionFromParent(
744 viewportIntersection);
745 }
746 }
747
737 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame, 748 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame,
738 const WebMouseEvent& event) { 749 const WebMouseEvent& event) {
739 // FIXME: WebWidget doesn't have the method below. 750 // FIXME: WebWidget doesn't have the method below.
740 // m_client->setMouseOverURL(WebURL()); 751 // m_client->setMouseOverURL(WebURL());
741 PageWidgetEventHandler::handleMouseLeave(mainFrame, event); 752 PageWidgetEventHandler::handleMouseLeave(mainFrame, event);
742 } 753 }
743 754
744 void WebFrameWidgetImpl::handleMouseDown(LocalFrame& mainFrame, 755 void WebFrameWidgetImpl::handleMouseDown(LocalFrame& mainFrame,
745 const WebMouseEvent& event) { 756 const WebMouseEvent& event) {
746 // Take capture on a mouse down on a plugin so we can send it mouse events. 757 // Take capture on a mouse down on a plugin so we can send it mouse events.
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 return nullptr; 1157 return nullptr;
1147 } 1158 }
1148 1159
1149 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { 1160 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const {
1150 if (!m_imeAcceptEvents) 1161 if (!m_imeAcceptEvents)
1151 return nullptr; 1162 return nullptr;
1152 return focusedLocalFrameInWidget(); 1163 return focusedLocalFrameInWidget();
1153 } 1164 }
1154 1165
1155 } // namespace blink 1166 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698