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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2477893002: Clear last MouseMove root view in RWHIER if that view gets destroyed (Closed)
Patch Set: 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 gfx::Point RenderWidgetHostViewChildFrame::TransformPointToCoordSpaceForView( 544 gfx::Point RenderWidgetHostViewChildFrame::TransformPointToCoordSpaceForView(
545 const gfx::Point& point, 545 const gfx::Point& point,
546 RenderWidgetHostViewBase* target_view) { 546 RenderWidgetHostViewBase* target_view) {
547 if (!frame_connector_ || local_frame_id_.is_null() || target_view == this) 547 if (!frame_connector_ || local_frame_id_.is_null() || target_view == this)
548 return point; 548 return point;
549 549
550 return frame_connector_->TransformPointToCoordSpaceForView( 550 return frame_connector_->TransformPointToCoordSpaceForView(
551 point, target_view, cc::SurfaceId(frame_sink_id_, local_frame_id_)); 551 point, target_view, cc::SurfaceId(frame_sink_id_, local_frame_id_));
552 } 552 }
553 553
554 bool RenderWidgetHostViewChildFrame::IsRenderWidgetHostViewChildFrame() {
555 return true;
556 }
557
554 #if defined(OS_MACOSX) 558 #if defined(OS_MACOSX)
555 ui::AcceleratedWidgetMac* 559 ui::AcceleratedWidgetMac*
556 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { 560 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const {
557 return nullptr; 561 return nullptr;
558 } 562 }
559 563
560 void RenderWidgetHostViewChildFrame::SetActive(bool active) { 564 void RenderWidgetHostViewChildFrame::SetActive(bool active) {
561 } 565 }
562 566
563 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { 567 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 733
730 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { 734 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const {
731 return true; 735 return true;
732 } 736 }
733 737
734 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { 738 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const {
735 return cc::SurfaceId(frame_sink_id_, local_frame_id_); 739 return cc::SurfaceId(frame_sink_id_, local_frame_id_);
736 }; 740 };
737 741
738 } // namespace content 742 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698