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

Unified Diff: services/ui/public/cpp/in_flight_change.cc

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove 'window &&' Created 4 years, 3 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: services/ui/public/cpp/in_flight_change.cc
diff --git a/services/ui/public/cpp/in_flight_change.cc b/services/ui/public/cpp/in_flight_change.cc
index aea803e55ca8ce506c1a40cf07c535827d4fe115..1eef7487789daaa3a4d6d5dbef03158140e05de4 100644
--- a/services/ui/public/cpp/in_flight_change.cc
+++ b/services/ui/public/cpp/in_flight_change.cc
@@ -39,18 +39,16 @@ void InFlightBoundsChange::Revert() {
WindowPrivate(window()).LocalSetBounds(window()->bounds(), revert_bounds_);
}
-// InFlightMoveLoopChange -----------------------------------------------------
+// InFlightDragChange -----------------------------------------------------
-InFlightMoveLoopChange::InFlightMoveLoopChange(Window* window)
- : InFlightChange(window, ChangeType::MOVE_LOOP) {}
+InFlightDragChange::InFlightDragChange(Window* window, ChangeType type)
+ : InFlightChange(window, type) {
+ DCHECK(type == ChangeType::MOVE_LOOP || type == ChangeType::DRAG_LOOP);
+}
-void InFlightMoveLoopChange::SetRevertValueFrom(const InFlightChange& change) {}
+void InFlightDragChange::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.
-}
+void InFlightDragChange::Revert() {}
// CrashInFlightChange --------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698