diff options
author | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 12:43:32 +0000 |
---|---|---|
committer | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 12:43:32 +0000 |
commit | 4cc586b1495a87a0c47cdd90d63e4211e6f5b830 (patch) | |
tree | b939ab56c815f48cca899f8bce7488e371bf2784 /webkit/plugins/ppapi/ppapi_plugin_instance.cc | |
parent | 8b8809ee49a63333d58c3d009d89508cb8dddce8 (diff) | |
download | chromium_src-4cc586b1495a87a0c47cdd90d63e4211e6f5b830.zip chromium_src-4cc586b1495a87a0c47cdd90d63e4211e6f5b830.tar.gz chromium_src-4cc586b1495a87a0c47cdd90d63e4211e6f5b830.tar.bz2 |
webkit: Use base::MessageLoop.
BUG=236029
R=brettw@chromium.org
Review URL: https://chromiumcodereview.appspot.com/14520026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198691 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/ppapi_plugin_instance.cc')
-rw-r--r-- | webkit/plugins/ppapi/ppapi_plugin_instance.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc index 68f41ce..d8cd91c 100644 --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc @@ -1218,9 +1218,10 @@ bool PluginInstance::IsAcceptingWheelEvents() const { void PluginInstance::ScheduleAsyncDidChangeView() { if (view_change_weak_ptr_factory_.HasWeakPtrs()) return; // Already scheduled. - MessageLoop::current()->PostTask( - FROM_HERE, base::Bind(&PluginInstance::SendAsyncDidChangeView, - view_change_weak_ptr_factory_.GetWeakPtr())); + base::MessageLoop::current()->PostTask( + FROM_HERE, + base::Bind(&PluginInstance::SendAsyncDidChangeView, + view_change_weak_ptr_factory_.GetWeakPtr())); } void PluginInstance::SendAsyncDidChangeView() { @@ -1492,7 +1493,7 @@ void PluginInstance::FlashSetFullscreen(bool fullscreen, bool delay_report) { if (!delay_report) { ReportGeometry(); } else { - MessageLoop::current()->PostTask( + base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&PluginInstance::ReportGeometry, this)); } } @@ -2319,7 +2320,8 @@ void PluginInstance::SelectionChanged(PP_Instance instance) { // uses a weak pointer rather than exploiting the fact that this class is // refcounted because we don't actually want this operation to affect the // lifetime of the instance. - MessageLoop::current()->PostTask(FROM_HERE, + base::MessageLoop::current()->PostTask( + FROM_HERE, base::Bind(&PluginInstance::RequestSurroundingText, AsWeakPtr(), static_cast<size_t>(kExtraCharsForTextInput))); |