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

Unified Diff: ui/views/widget/desktop_aura/desktop_dispatcher_client.h

Issue 280483003: wm: Change the DispatcherClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self-nit 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_aura/desktop_dispatcher_client.h
diff --git a/ui/views/widget/desktop_aura/desktop_dispatcher_client.h b/ui/views/widget/desktop_aura/desktop_dispatcher_client.h
index 5351d8a1b7645a0e2388ad95c9af51d16a8d05ea..284e81cacdae2be9dbc9fdfd447095034d1d4e4f 100644
--- a/ui/views/widget/desktop_aura/desktop_dispatcher_client.h
+++ b/ui/views/widget/desktop_aura/desktop_dispatcher_client.h
@@ -7,7 +7,6 @@
#include "base/basictypes.h"
#include "base/callback.h"
-#include "base/memory/weak_ptr.h"
#include "ui/views/views_export.h"
#include "ui/wm/public/dispatcher_client.h"
@@ -20,17 +19,12 @@ class VIEWS_EXPORT DesktopDispatcherClient
DesktopDispatcherClient();
virtual ~DesktopDispatcherClient();
- virtual void RunWithDispatcher(
- base::MessagePumpDispatcher* dispatcher) OVERRIDE;
- virtual void QuitNestedMessageLoop() OVERRIDE;
+ virtual void PrepareNestedLoopClosures(
+ base::MessagePumpDispatcher* dispatcher,
+ base::Closure* run_closure,
+ base::Closure* quit_closure) OVERRIDE;
private:
- base::Closure quit_closure_;
-
- // Used to keep track of whether the client has been destroyed while the
- // nested loop was running.
- base::WeakPtrFactory<DesktopDispatcherClient> weak_ptr_factory_;
-
DISALLOW_COPY_AND_ASSIGN(DesktopDispatcherClient);
};

Powered by Google App Engine
This is Rietveld 408576698