Chromium Code Reviews| 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 346 void RenderWidgetHostViewGuest::InitAsFullscreen( | 346 void RenderWidgetHostViewGuest::InitAsFullscreen( |
| 347 RenderWidgetHostView* reference_host_view) { | 347 RenderWidgetHostView* reference_host_view) { |
| 348 // This should never get called. | 348 // This should never get called. |
| 349 NOTREACHED(); | 349 NOTREACHED(); |
| 350 } | 350 } |
| 351 | 351 |
| 352 gfx::NativeView RenderWidgetHostViewGuest::GetNativeView() const { | 352 gfx::NativeView RenderWidgetHostViewGuest::GetNativeView() const { |
| 353 if (!guest_) | 353 if (!guest_) |
| 354 return gfx::NativeView(); | 354 return gfx::NativeView(); |
| 355 | 355 |
| 356 RenderWidgetHostView* rwhv = guest_->GetOwnerRenderWidgetHostView(); | 356 if (guest_->IsMimeHandlerViewGuest()) |
|
lazyboy
2016/07/22 01:03:30
I'm not sure I followed why this was needed.
Plea
EhsanK
2016/07/27 22:34:47
If we have --use-cross-process-frames-for-guests a
| |
| 357 return guest_->GetTopLevelRenderWidgetHostView()->GetNativeView(); | |
| 358 | |
| 359 RenderWidgetHostView* rwhv = GetOwnerRenderWidgetHostView(); | |
| 357 if (!rwhv) | 360 if (!rwhv) |
| 358 return gfx::NativeView(); | 361 return gfx::NativeView(); |
| 362 | |
| 359 return rwhv->GetNativeView(); | 363 return rwhv->GetNativeView(); |
| 360 } | 364 } |
| 361 | 365 |
| 362 gfx::NativeViewAccessible RenderWidgetHostViewGuest::GetNativeViewAccessible() { | 366 gfx::NativeViewAccessible RenderWidgetHostViewGuest::GetNativeViewAccessible() { |
| 363 if (!guest_) | 367 if (!guest_) |
| 364 return gfx::NativeViewAccessible(); | 368 return gfx::NativeViewAccessible(); |
| 365 | 369 |
| 366 RenderWidgetHostView* rwhv = guest_->GetOwnerRenderWidgetHostView(); | 370 RenderWidgetHostView* rwhv = guest_->GetOwnerRenderWidgetHostView(); |
| 367 if (!rwhv) | 371 if (!rwhv) |
| 368 return gfx::NativeViewAccessible(); | 372 return gfx::NativeViewAccessible(); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 638 gesture_event.data.scrollUpdate.inertialPhase == | 642 gesture_event.data.scrollUpdate.inertialPhase == |
| 639 blink::WebGestureEvent::MomentumPhase) { | 643 blink::WebGestureEvent::MomentumPhase) { |
| 640 return; | 644 return; |
| 641 } | 645 } |
| 642 host_->ForwardGestureEvent(gesture_event); | 646 host_->ForwardGestureEvent(gesture_event); |
| 643 return; | 647 return; |
| 644 } | 648 } |
| 645 } | 649 } |
| 646 | 650 |
| 647 } // namespace content | 651 } // namespace content |
| OLD | NEW |