Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 282593002: Reland Unified Gesture Recognizer for Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again... Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.h ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.h ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698