| OLD | NEW |
| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // RenderWidgetHostInputEventRouter afterwards. | 287 // RenderWidgetHostInputEventRouter afterwards. |
| 288 NotifyObserversAboutShutdown(); | 288 NotifyObserversAboutShutdown(); |
| 289 | 289 |
| 290 host_->SetView(nullptr); | 290 host_->SetView(nullptr); |
| 291 host_ = nullptr; | 291 host_ = nullptr; |
| 292 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 292 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 293 } | 293 } |
| 294 | 294 |
| 295 void RenderWidgetHostViewChildFrame::SetTooltipText( | 295 void RenderWidgetHostViewChildFrame::SetTooltipText( |
| 296 const base::string16& tooltip_text) { | 296 const base::string16& tooltip_text) { |
| 297 frame_connector_->GetRootRenderWidgetHostView()->SetTooltipText(tooltip_text); |
| 297 } | 298 } |
| 298 | 299 |
| 299 void RenderWidgetHostViewChildFrame::SelectionChanged( | 300 void RenderWidgetHostViewChildFrame::SelectionChanged( |
| 300 const base::string16& text, | 301 const base::string16& text, |
| 301 size_t offset, | 302 size_t offset, |
| 302 const gfx::Range& range) { | 303 const gfx::Range& range) { |
| 303 } | 304 } |
| 304 | 305 |
| 305 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( | 306 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( |
| 306 const ViewHostMsg_SelectionBounds_Params& params) { | 307 const ViewHostMsg_SelectionBounds_Params& params) { |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 | 686 |
| 686 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 687 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 687 return true; | 688 return true; |
| 688 } | 689 } |
| 689 | 690 |
| 690 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 691 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 691 return surface_id_; | 692 return surface_id_; |
| 692 }; | 693 }; |
| 693 | 694 |
| 694 } // namespace content | 695 } // namespace content |
| OLD | NEW |