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

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

Issue 2431473003: Intersection Observer support for OOPIF (Closed)
Patch Set: Fix merge conflict Created 4 years, 1 month 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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 // TODO(ekaramad):This method is almost duplicated in WebViewImpl as well. This 815 // TODO(ekaramad):This method is almost duplicated in WebViewImpl as well. This
816 // code needs to be refactored (http://crbug.com/629721). 816 // code needs to be refactored (http://crbug.com/629721).
817 void WebFrameWidgetImpl::applyReplacementRange(const WebRange& range) { 817 void WebFrameWidgetImpl::applyReplacementRange(const WebRange& range) {
818 if (LocalFrame* frame = focusedLocalFrameInWidget()) { 818 if (LocalFrame* frame = focusedLocalFrameInWidget()) {
819 // TODO(dglazkov): Going from LocalFrame to WebLocalFrameImpl seems 819 // TODO(dglazkov): Going from LocalFrame to WebLocalFrameImpl seems
820 // silly. What is going on here? 820 // silly. What is going on here?
821 WebLocalFrameImpl::fromFrame(frame)->selectRange(range); 821 WebLocalFrameImpl::fromFrame(frame)->selectRange(range);
822 } 822 }
823 } 823 }
824 824
825 void WebFrameWidgetImpl::setRemoteViewportIntersection(
826 const WebRect& viewportIntersection) {
827 // Remote viewports are only applicable to local frames with remote ancestors.
828 if (!m_localRoot->parent() || !m_localRoot->parent()->isWebRemoteFrame())
829 return;
830 if (m_localRoot->frameView()) {
831 m_localRoot->frameView()->setViewportIntersectionFromParent(
832 viewportIntersection);
833 }
834 }
835
825 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame, 836 void WebFrameWidgetImpl::handleMouseLeave(LocalFrame& mainFrame,
826 const WebMouseEvent& event) { 837 const WebMouseEvent& event) {
827 // FIXME: WebWidget doesn't have the method below. 838 // FIXME: WebWidget doesn't have the method below.
828 // m_client->setMouseOverURL(WebURL()); 839 // m_client->setMouseOverURL(WebURL());
829 PageWidgetEventHandler::handleMouseLeave(mainFrame, event); 840 PageWidgetEventHandler::handleMouseLeave(mainFrame, event);
830 } 841 }
831 842
832 void WebFrameWidgetImpl::handleMouseDown(LocalFrame& mainFrame, 843 void WebFrameWidgetImpl::handleMouseDown(LocalFrame& mainFrame,
833 const WebMouseEvent& event) { 844 const WebMouseEvent& event) {
834 // Take capture on a mouse down on a plugin so we can send it mouse events. 845 // 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
1234 return nullptr; 1245 return nullptr;
1235 } 1246 }
1236 1247
1237 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { 1248 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const {
1238 if (!m_imeAcceptEvents) 1249 if (!m_imeAcceptEvents)
1239 return nullptr; 1250 return nullptr;
1240 return focusedLocalFrameInWidget(); 1251 return focusedLocalFrameInWidget();
1241 } 1252 }
1242 1253
1243 } // namespace blink 1254 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698