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_guest.h" | 5 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 RenderWidgetHostViewChildFrame::Destroy(); | 239 RenderWidgetHostViewChildFrame::Destroy(); |
240 | 240 |
241 if (platform_view_) // The platform view might have been destroyed already. | 241 if (platform_view_) // The platform view might have been destroyed already. |
242 platform_view_->Destroy(); | 242 platform_view_->Destroy(); |
243 } | 243 } |
244 | 244 |
245 gfx::Size RenderWidgetHostViewGuest::GetPhysicalBackingSize() const { | 245 gfx::Size RenderWidgetHostViewGuest::GetPhysicalBackingSize() const { |
246 return RenderWidgetHostViewBase::GetPhysicalBackingSize(); | 246 return RenderWidgetHostViewBase::GetPhysicalBackingSize(); |
247 } | 247 } |
248 | 248 |
249 base::string16 RenderWidgetHostViewGuest::GetSelectedText() const { | 249 base::string16 RenderWidgetHostViewGuest::GetSelectedText() { |
250 return platform_view_->GetSelectedText(); | 250 return platform_view_->GetSelectedText(); |
251 } | 251 } |
252 | 252 |
253 void RenderWidgetHostViewGuest::SetTooltipText( | 253 void RenderWidgetHostViewGuest::SetTooltipText( |
254 const base::string16& tooltip_text) { | 254 const base::string16& tooltip_text) { |
255 if (guest_) | 255 if (guest_) |
256 guest_->SetTooltipText(tooltip_text); | 256 guest_->SetTooltipText(tooltip_text); |
257 } | 257 } |
258 | 258 |
259 void RenderWidgetHostViewGuest::OnSwapCompositorFrame( | 259 void RenderWidgetHostViewGuest::OnSwapCompositorFrame( |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 gesture_event.data.scrollUpdate.inertialPhase == | 620 gesture_event.data.scrollUpdate.inertialPhase == |
621 blink::WebGestureEvent::MomentumPhase) { | 621 blink::WebGestureEvent::MomentumPhase) { |
622 return; | 622 return; |
623 } | 623 } |
624 host_->ForwardGestureEvent(gesture_event); | 624 host_->ForwardGestureEvent(gesture_event); |
625 return; | 625 return; |
626 } | 626 } |
627 } | 627 } |
628 | 628 |
629 } // namespace content | 629 } // namespace content |
OLD | NEW |