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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
10 #include "content/browser/frame_host/render_widget_host_view_guest.h" | 10 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 host_ = NULL; | 493 host_ = NULL; |
494 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 494 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
495 } | 495 } |
496 | 496 |
497 bool RenderWidgetHostViewGuest::CanDispatchToConsumer( | 497 bool RenderWidgetHostViewGuest::CanDispatchToConsumer( |
498 ui::GestureConsumer* consumer) { | 498 ui::GestureConsumer* consumer) { |
499 CHECK_EQ(static_cast<RenderWidgetHostViewGuest*>(consumer), this); | 499 CHECK_EQ(static_cast<RenderWidgetHostViewGuest*>(consumer), this); |
500 return true; | 500 return true; |
501 } | 501 } |
502 | 502 |
503 void RenderWidgetHostViewGuest::DispatchPostponedGestureEvent( | 503 void RenderWidgetHostViewGuest::DispatchGestureEvent( |
504 ui::GestureEvent* event) { | 504 ui::GestureEvent* event) { |
505 ForwardGestureEventToRenderer(event); | 505 ForwardGestureEventToRenderer(event); |
506 } | 506 } |
507 | 507 |
508 void RenderWidgetHostViewGuest::DispatchCancelTouchEvent( | 508 void RenderWidgetHostViewGuest::DispatchCancelTouchEvent( |
509 ui::TouchEvent* event) { | 509 ui::TouchEvent* event) { |
510 if (!host_) | 510 if (!host_) |
511 return; | 511 return; |
512 | 512 |
513 blink::WebTouchEvent cancel_event; | 513 blink::WebTouchEvent cancel_event; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 return SkBitmap::kARGB_8888_Config; | 570 return SkBitmap::kARGB_8888_Config; |
571 } | 571 } |
572 | 572 |
573 RenderWidgetHostViewBase* | 573 RenderWidgetHostViewBase* |
574 RenderWidgetHostViewGuest::GetGuestRenderWidgetHostView() const { | 574 RenderWidgetHostViewGuest::GetGuestRenderWidgetHostView() const { |
575 return static_cast<RenderWidgetHostViewBase*>( | 575 return static_cast<RenderWidgetHostViewBase*>( |
576 guest_->GetEmbedderRenderWidgetHostView()); | 576 guest_->GetEmbedderRenderWidgetHostView()); |
577 } | 577 } |
578 | 578 |
579 } // namespace content | 579 } // namespace content |
OLD | NEW |