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

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

Issue 251543003: Unified Gesture Recognizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows linking 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
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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 host_ = NULL; 500 host_ = NULL;
501 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); 501 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
502 } 502 }
503 503
504 bool RenderWidgetHostViewGuest::CanDispatchToConsumer( 504 bool RenderWidgetHostViewGuest::CanDispatchToConsumer(
505 ui::GestureConsumer* consumer) { 505 ui::GestureConsumer* consumer) {
506 CHECK_EQ(static_cast<RenderWidgetHostViewGuest*>(consumer), this); 506 CHECK_EQ(static_cast<RenderWidgetHostViewGuest*>(consumer), this);
507 return true; 507 return true;
508 } 508 }
509 509
510 void RenderWidgetHostViewGuest::DispatchPostponedGestureEvent( 510 void RenderWidgetHostViewGuest::DispatchGestureEvent(
511 ui::GestureEvent* event) { 511 ui::GestureEvent* event) {
512 ForwardGestureEventToRenderer(event); 512 ForwardGestureEventToRenderer(event);
513 } 513 }
514 514
515 void RenderWidgetHostViewGuest::DispatchCancelTouchEvent( 515 void RenderWidgetHostViewGuest::DispatchCancelTouchEvent(
516 ui::TouchEvent* event) { 516 ui::TouchEvent* event) {
517 if (!host_) 517 if (!host_)
518 return; 518 return;
519 519
520 blink::WebTouchEvent cancel_event; 520 blink::WebTouchEvent cancel_event;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 ++g_it) { 571 ++g_it) {
572 ForwardGestureEventToRenderer(*g_it); 572 ForwardGestureEventToRenderer(*g_it);
573 } 573 }
574 } 574 }
575 575
576 SkBitmap::Config RenderWidgetHostViewGuest::PreferredReadbackFormat() { 576 SkBitmap::Config RenderWidgetHostViewGuest::PreferredReadbackFormat() {
577 return SkBitmap::kARGB_8888_Config; 577 return SkBitmap::kARGB_8888_Config;
578 } 578 }
579 579
580 } // namespace content 580 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698