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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 } | 508 } |
509 | 509 |
510 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { | 510 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { |
511 NOTIMPLEMENTED(); | 511 NOTIMPLEMENTED(); |
512 } | 512 } |
513 | 513 |
514 #if defined(OS_WIN) | 514 #if defined(OS_WIN) |
515 void RenderWidgetHostViewGuest::SetParentNativeViewAccessible( | 515 void RenderWidgetHostViewGuest::SetParentNativeViewAccessible( |
516 gfx::NativeViewAccessible accessible_parent) { | 516 gfx::NativeViewAccessible accessible_parent) { |
517 } | 517 } |
| 518 |
| 519 gfx::NativeViewId RenderWidgetHostViewGuest::GetParentForWindowlessPlugin() |
| 520 const { |
| 521 return NULL; |
| 522 } |
518 #endif | 523 #endif |
519 | 524 |
520 void RenderWidgetHostViewGuest::DestroyGuestView() { | 525 void RenderWidgetHostViewGuest::DestroyGuestView() { |
521 // Let our observers know we're going away, since we don't want any event | 526 // Let our observers know we're going away, since we don't want any event |
522 // processing calls coming in after we release host_. | 527 // processing calls coming in after we release host_. |
523 NotifyObserversAboutShutdown(); | 528 NotifyObserversAboutShutdown(); |
524 | 529 |
525 host_->SetView(NULL); | 530 host_->SetView(NULL); |
526 host_ = NULL; | 531 host_ = NULL; |
527 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 532 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate && | 625 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate && |
621 gesture_event.data.scrollUpdate.inertial) { | 626 gesture_event.data.scrollUpdate.inertial) { |
622 return; | 627 return; |
623 } | 628 } |
624 host_->ForwardGestureEvent(gesture_event); | 629 host_->ForwardGestureEvent(gesture_event); |
625 return; | 630 return; |
626 } | 631 } |
627 } | 632 } |
628 | 633 |
629 } // namespace content | 634 } // namespace content |
OLD | NEW |