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