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

Unified Diff: mojo/services/window_manager/window_manager_app.cc

Issue 720883003: Adds a CloneAndAnimate function to WindowManagerInternalClient (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: tweaks Created 6 years, 1 month 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: mojo/services/window_manager/window_manager_app.cc
diff --git a/mojo/services/window_manager/window_manager_app.cc b/mojo/services/window_manager/window_manager_app.cc
index cb807d1da97cc210a13d2f4019673e48cb691549..30ba5a64726021e8582824ba8be285b496802ee1 100644
--- a/mojo/services/window_manager/window_manager_app.cc
+++ b/mojo/services/window_manager/window_manager_app.cc
@@ -4,6 +4,7 @@
#include "mojo/services/window_manager/window_manager_app.h"
+#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/stl_util.h"
#include "mojo/converters/geometry/geometry_type_converters.h"
@@ -29,6 +30,9 @@ Id GetIdForView(View* view) {
return view ? view->id() : 0;
}
+void EmptyCallback(bool value) {
msw 2014/11/18 23:37:43 nit: I feel like there ought to be a better way to
sky 2014/11/19 00:49:40 No longer applicable as I removed the callback.
+}
+
} // namespace
class WindowManagerApp::WindowManagerInternalImpl
@@ -138,6 +142,10 @@ void WindowManagerApp::Embed(
pending_embeds_.push_back(pending_embed.release());
}
+void WindowManagerApp::CloneAndAnimate(Id view) {
+ window_manager_client_->CloneAndAnimate(view, base::Bind(&EmptyCallback));
+}
+
////////////////////////////////////////////////////////////////////////////////
// WindowManagerApp, ApplicationDelegate implementation:

Powered by Google App Engine
This is Rietveld 408576698