From 3cdb7af81de506be730544edcfe4a5547f0fdaea Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 24 Oct 2008 19:21:13 +0000 Subject: Make IPC::SyncChannel not duplicate the underlying MessageLoop implementation by pumping messages on its own. This fixes the problem of windowless plugins not painting on right click, and generally makes this class almost ported, other than using a generic version of events/locks.Through this change I've also cleaned up the class and hopefully made it more understandable. Review URL: http://codereview.chromium.org/8001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3934 0039d316-1c4b-4281-b951-d872f2087c98 --- base/object_watcher.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'base/object_watcher.cc') diff --git a/base/object_watcher.cc b/base/object_watcher.cc index 4e6e57a..cad281f 100644 --- a/base/object_watcher.cc +++ b/base/object_watcher.cc @@ -107,6 +107,13 @@ bool ObjectWatcher::StopWatching() { return true; } +HANDLE ObjectWatcher::GetWatchedObject() { + if (!watch_) + return NULL; + + return watch_->object; +} + // static void CALLBACK ObjectWatcher::DoneWaiting(void* param, BOOLEAN timed_out) { DCHECK(!timed_out); -- cgit v1.1