OLD | NEW |
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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden) | 622 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden) |
623 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown) | 623 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown) |
624 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnRepaint) | 624 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnRepaint) |
625 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection) | 625 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection) |
626 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck) | 626 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck) |
627 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScreenRects, OnUpdateScreenRects) | 627 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScreenRects, OnUpdateScreenRects) |
628 IPC_MESSAGE_HANDLER(ViewMsg_SetViewportIntersection, | 628 IPC_MESSAGE_HANDLER(ViewMsg_SetViewportIntersection, |
629 OnSetViewportIntersection) | 629 OnSetViewportIntersection) |
630 IPC_MESSAGE_HANDLER(ViewMsg_WaitForNextFrameForTests, | 630 IPC_MESSAGE_HANDLER(ViewMsg_WaitForNextFrameForTests, |
631 OnWaitNextFrameForTests) | 631 OnWaitNextFrameForTests) |
| 632 IPC_MESSAGE_HANDLER(ViewMsg_ClearDisplayedContent, OnClearDisplayedContent) |
632 IPC_MESSAGE_HANDLER(InputMsg_RequestCompositionUpdate, | 633 IPC_MESSAGE_HANDLER(InputMsg_RequestCompositionUpdate, |
633 OnRequestCompositionUpdate) | 634 OnRequestCompositionUpdate) |
634 IPC_MESSAGE_HANDLER(DragMsg_TargetDragEnter, OnDragTargetDragEnter) | 635 IPC_MESSAGE_HANDLER(DragMsg_TargetDragEnter, OnDragTargetDragEnter) |
635 IPC_MESSAGE_HANDLER(DragMsg_TargetDragOver, OnDragTargetDragOver) | 636 IPC_MESSAGE_HANDLER(DragMsg_TargetDragOver, OnDragTargetDragOver) |
636 IPC_MESSAGE_HANDLER(DragMsg_TargetDragLeave, OnDragTargetDragLeave) | 637 IPC_MESSAGE_HANDLER(DragMsg_TargetDragLeave, OnDragTargetDragLeave) |
637 IPC_MESSAGE_HANDLER(DragMsg_TargetDrop, OnDragTargetDrop) | 638 IPC_MESSAGE_HANDLER(DragMsg_TargetDrop, OnDragTargetDrop) |
638 IPC_MESSAGE_HANDLER(DragMsg_SourceEnded, OnDragSourceEnded) | 639 IPC_MESSAGE_HANDLER(DragMsg_SourceEnded, OnDragSourceEnded) |
639 IPC_MESSAGE_HANDLER(DragMsg_SourceSystemDragEnded, | 640 IPC_MESSAGE_HANDLER(DragMsg_SourceSystemDragEnded, |
640 OnDragSourceSystemDragEnded) | 641 OnDragSourceSystemDragEnded) |
641 #if defined(OS_ANDROID) | 642 #if defined(OS_ANDROID) |
(...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2308 // when the RenderWidget is swapped out. We should top sending IPCs from the | 2309 // when the RenderWidget is swapped out. We should top sending IPCs from the |
2309 // browser side (https://crbug.com/669219). | 2310 // browser side (https://crbug.com/669219). |
2310 // If there is no WebFrameWidget, then there will be no | 2311 // If there is no WebFrameWidget, then there will be no |
2311 // InputMethodControllers for a WebLocalFrame. | 2312 // InputMethodControllers for a WebLocalFrame. |
2312 return nullptr; | 2313 return nullptr; |
2313 } | 2314 } |
2314 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) | 2315 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) |
2315 ->getActiveWebInputMethodController(); | 2316 ->getActiveWebInputMethodController(); |
2316 } | 2317 } |
2317 | 2318 |
| 2319 void RenderWidget::OnClearDisplayedContent() { |
| 2320 if (compositor_) { |
| 2321 compositor_->ResetTrees(); |
| 2322 } |
| 2323 } |
| 2324 |
2318 } // namespace content | 2325 } // namespace content |
OLD | NEW |