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

Side by Side Diff: content/renderer/render_widget.cc

Issue 2431473003: Intersection Observer support for OOPIF (Closed)
Patch Set: dcheng comments addressed Created 3 years, 11 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 IPC_MESSAGE_HANDLER(ViewMsg_EnableDeviceEmulation, 611 IPC_MESSAGE_HANDLER(ViewMsg_EnableDeviceEmulation,
612 OnEnableDeviceEmulation) 612 OnEnableDeviceEmulation)
613 IPC_MESSAGE_HANDLER(ViewMsg_DisableDeviceEmulation, 613 IPC_MESSAGE_HANDLER(ViewMsg_DisableDeviceEmulation,
614 OnDisableDeviceEmulation) 614 OnDisableDeviceEmulation)
615 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden) 615 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden)
616 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown) 616 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown)
617 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnRepaint) 617 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnRepaint)
618 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection) 618 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection)
619 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck) 619 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck)
620 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScreenRects, OnUpdateScreenRects) 620 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScreenRects, OnUpdateScreenRects)
621 IPC_MESSAGE_HANDLER(ViewMsg_SetViewportIntersection,
622 OnSetViewportIntersection)
621 IPC_MESSAGE_HANDLER(ViewMsg_WaitForNextFrameForTests, 623 IPC_MESSAGE_HANDLER(ViewMsg_WaitForNextFrameForTests,
622 OnWaitNextFrameForTests) 624 OnWaitNextFrameForTests)
623 IPC_MESSAGE_HANDLER(InputMsg_RequestCompositionUpdate, 625 IPC_MESSAGE_HANDLER(InputMsg_RequestCompositionUpdate,
624 OnRequestCompositionUpdate) 626 OnRequestCompositionUpdate)
625 IPC_MESSAGE_HANDLER(ViewMsg_HandleCompositorProto, OnHandleCompositorProto) 627 IPC_MESSAGE_HANDLER(ViewMsg_HandleCompositorProto, OnHandleCompositorProto)
626 IPC_MESSAGE_HANDLER(DragMsg_TargetDragEnter, OnDragTargetDragEnter) 628 IPC_MESSAGE_HANDLER(DragMsg_TargetDragEnter, OnDragTargetDragEnter)
627 IPC_MESSAGE_HANDLER(DragMsg_TargetDragOver, OnDragTargetDragOver) 629 IPC_MESSAGE_HANDLER(DragMsg_TargetDragOver, OnDragTargetDragOver)
628 IPC_MESSAGE_HANDLER(DragMsg_TargetDragLeave, OnDragTargetDragLeave) 630 IPC_MESSAGE_HANDLER(DragMsg_TargetDragLeave, OnDragTargetDragLeave)
629 IPC_MESSAGE_HANDLER(DragMsg_TargetDrop, OnDragTargetDrop) 631 IPC_MESSAGE_HANDLER(DragMsg_TargetDrop, OnDragTargetDrop)
630 IPC_MESSAGE_HANDLER(DragMsg_SourceEnded, OnDragSourceEnded) 632 IPC_MESSAGE_HANDLER(DragMsg_SourceEnded, OnDragSourceEnded)
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 } 1631 }
1630 1632
1631 void RenderWidget::OnUpdateWindowScreenRect( 1633 void RenderWidget::OnUpdateWindowScreenRect(
1632 const gfx::Rect& window_screen_rect) { 1634 const gfx::Rect& window_screen_rect) {
1633 if (screen_metrics_emulator_) 1635 if (screen_metrics_emulator_)
1634 screen_metrics_emulator_->OnUpdateWindowScreenRect(window_screen_rect); 1636 screen_metrics_emulator_->OnUpdateWindowScreenRect(window_screen_rect);
1635 else 1637 else
1636 window_screen_rect_ = window_screen_rect; 1638 window_screen_rect_ = window_screen_rect;
1637 } 1639 }
1638 1640
1641 void RenderWidget::OnSetViewportIntersection(
1642 const gfx::Rect& viewport_intersection) {
1643 if (GetWebWidget() && GetWebWidget()->isWebFrameWidget()) {
1644 DCHECK(popup_type_ == WebPopupType::WebPopupTypeNone);
1645 static_cast<WebFrameWidget*>(GetWebWidget())
1646 ->setRemoteViewportIntersection(viewport_intersection);
1647 }
1648 }
1649
1639 void RenderWidget::OnHandleCompositorProto(const std::vector<uint8_t>& proto) { 1650 void RenderWidget::OnHandleCompositorProto(const std::vector<uint8_t>& proto) {
1640 if (compositor_) 1651 if (compositor_)
1641 compositor_->OnHandleCompositorProto(proto); 1652 compositor_->OnHandleCompositorProto(proto);
1642 } 1653 }
1643 1654
1644 void RenderWidget::OnDragTargetDragEnter( 1655 void RenderWidget::OnDragTargetDragEnter(
1645 const std::vector<DropData::Metadata>& drop_meta_data, 1656 const std::vector<DropData::Metadata>& drop_meta_data,
1646 const gfx::Point& client_point, 1657 const gfx::Point& client_point,
1647 const gfx::Point& screen_point, 1658 const gfx::Point& screen_point,
1648 WebDragOperationsMask ops, 1659 WebDragOperationsMask ops,
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
2255 // browser side (https://crbug.com/669219). 2266 // browser side (https://crbug.com/669219).
2256 // If there is no WebFrameWidget, then there will be no 2267 // If there is no WebFrameWidget, then there will be no
2257 // InputMethodControllers for a WebLocalFrame. 2268 // InputMethodControllers for a WebLocalFrame.
2258 return nullptr; 2269 return nullptr;
2259 } 2270 }
2260 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) 2271 return static_cast<blink::WebFrameWidget*>(GetWebWidget())
2261 ->getActiveWebInputMethodController(); 2272 ->getActiveWebInputMethodController();
2262 } 2273 }
2263 2274
2264 } // namespace content 2275 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/LayoutTests/FlagExpectations/site-per-process » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698