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

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

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thread move loop source through api. 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.h
diff --git a/components/mus/public/cpp/lib/in_flight_change.h b/components/mus/public/cpp/lib/in_flight_change.h
index bf77fc6e6b10a00d2bbb2aa8f47eac636561b908..d6ad40090725238eddd578b1b2acce99929155ed 100644
--- a/components/mus/public/cpp/lib/in_flight_change.h
+++ b/components/mus/public/cpp/lib/in_flight_change.h
@@ -33,8 +33,9 @@ enum class ChangeType {
CAPTURE,
DELETE_WINDOW,
FOCUS,
- NEW_WINDOW,
+ MOVE_LOOP,
NEW_TOP_LEVEL_WINDOW,
+ NEW_WINDOW,
OPACITY,
PREDEFINED_CURSOR,
PROPERTY,
@@ -143,6 +144,18 @@ class InFlightBoundsChange : public InFlightChange {
DISALLOW_COPY_AND_ASSIGN(InFlightBoundsChange);
};
+class InFlightMoveLoopChange : public InFlightChange {
+ public:
+ InFlightMoveLoopChange(Window* window);
sky 2016/06/29 00:04:08 explicit
+
+ // InFlightChange:
+ void SetRevertValueFrom(const InFlightChange& change) override;
+ void Revert() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InFlightMoveLoopChange);
+};
+
// Inflight change that crashes on failure. This is useful for changes that are
// expected to always complete.
class CrashInFlightChange : public InFlightChange {

Powered by Google App Engine
This is Rietveld 408576698