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

Unified Diff: components/mus/public/cpp/lib/in_flight_change.cc

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OnWmMoveLoopComplete() -> WmResponse() and use change_id instead of window_id in cancel. Created 4 years, 6 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: components/mus/public/cpp/lib/in_flight_change.cc
diff --git a/components/mus/public/cpp/lib/in_flight_change.cc b/components/mus/public/cpp/lib/in_flight_change.cc
index 048787423502807135b607572b89e1f4a47d91d2..576c74b127ee834c27e20a1dc622b4edadc4e45d 100644
--- a/components/mus/public/cpp/lib/in_flight_change.cc
+++ b/components/mus/public/cpp/lib/in_flight_change.cc
@@ -39,6 +39,19 @@ void InFlightBoundsChange::Revert() {
WindowPrivate(window()).LocalSetBounds(window()->bounds(), revert_bounds_);
}
+// InFlightMoveLoopChange -----------------------------------------------------
+
+InFlightMoveLoopChange::InFlightMoveLoopChange(Window* window)
+ : InFlightChange(window, ChangeType::MOVE_LOOP) {}
+
+void InFlightMoveLoopChange::SetRevertValueFrom(const InFlightChange& change) {}
+
+void InFlightMoveLoopChange::Revert() {
+ // Reverting bounds happens in the window server in the error case; it cannot
+ // happen in the client because this could conflict with a
+ // InFlightBoundsChange.
+}
+
// CrashInFlightChange --------------------------------------------------------
CrashInFlightChange::CrashInFlightChange(Window* window, ChangeType type)

Powered by Google App Engine
This is Rietveld 408576698