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

Unified Diff: services/ui/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: dcheng nits Created 4 years, 5 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
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/public/cpp/lib/in_flight_change.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/lib/in_flight_change.h
diff --git a/services/ui/public/cpp/lib/in_flight_change.h b/services/ui/public/cpp/lib/in_flight_change.h
index 759a1bc6e84f366152f21b3086da1e658afb9e1f..93d96724b947204cf17da604aba361c03f4c148d 100644
--- a/services/ui/public/cpp/lib/in_flight_change.h
+++ b/services/ui/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:
+ explicit InFlightMoveLoopChange(Window* window);
+
+ // 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 {
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/public/cpp/lib/in_flight_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698