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

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

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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.h" 8 #include "base/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/renderer_host/render_view_host_impl.h" 10 #include "content/browser/renderer_host/render_view_host_impl.h"
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 } 428 }
429 #endif // defined(TOOLKIT_GTK) 429 #endif // defined(TOOLKIT_GTK)
430 430
431 #if defined(OS_WIN) && !defined(USE_AURA) 431 #if defined(OS_WIN) && !defined(USE_AURA)
432 void RenderWidgetHostViewGuest::WillWmDestroy() { 432 void RenderWidgetHostViewGuest::WillWmDestroy() {
433 } 433 }
434 #endif 434 #endif
435 435
436 void RenderWidgetHostViewGuest::DestroyGuestView() { 436 void RenderWidgetHostViewGuest::DestroyGuestView() {
437 host_ = NULL; 437 host_ = NULL;
438 MessageLoop::current()->DeleteSoon(FROM_HERE, this); 438 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
439 } 439 }
440 440
441 bool RenderWidgetHostViewGuest::DispatchLongPressGestureEvent( 441 bool RenderWidgetHostViewGuest::DispatchLongPressGestureEvent(
442 ui::GestureEvent* event) { 442 ui::GestureEvent* event) {
443 return ForwardGestureEventToRenderer(event); 443 return ForwardGestureEventToRenderer(event);
444 } 444 }
445 445
446 bool RenderWidgetHostViewGuest::DispatchCancelTouchEvent( 446 bool RenderWidgetHostViewGuest::DispatchCancelTouchEvent(
447 ui::TouchEvent* event) { 447 ui::TouchEvent* event) {
448 if (!host_) 448 if (!host_)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 return; 499 return;
500 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); 500 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin();
501 g_it != gestures->end(); 501 g_it != gestures->end();
502 ++g_it) { 502 ++g_it) {
503 ForwardGestureEventToRenderer(*g_it); 503 ForwardGestureEventToRenderer(*g_it);
504 } 504 }
505 } 505 }
506 506
507 507
508 } // namespace content 508 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698