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

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

Issue 1605773004: mus: Implement Window Server Capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create InFlightCaptureChange add tests Created 4 years, 11 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 d92c3002185763785649d22040980a23e472b0c6..e585cd1c64bf1fa66d8b990e468ff14bd9a05a11 100644
--- a/components/mus/public/cpp/lib/in_flight_change.h
+++ b/components/mus/public/cpp/lib/in_flight_change.h
@@ -35,9 +35,11 @@ enum class ChangeType {
NEW_TOP_LEVEL_WINDOW,
PREDEFINED_CURSOR,
PROPERTY,
+ RELEASE_CAPTURE,
REMOVE_CHILD,
REMOVE_TRANSIENT_WINDOW_FROM_PARENT,
REORDER,
+ SET_CAPTURE,
VISIBLE,
};
@@ -155,6 +157,21 @@ class CrashInFlightChange : public InFlightChange {
DISALLOW_COPY_AND_ASSIGN(CrashInFlightChange);
};
+class InFlightCaptureChange : public InFlightChange {
+ public:
+ InFlightCaptureChange(Window* window, bool revert_value);
+ ~InFlightCaptureChange() override;
+
+ // InFlightChange:
+ void SetRevertValueFrom(const InFlightChange& change) override;
+ void Revert() override;
+
+ private:
+ bool revert_value_;
+
+ DISALLOW_COPY_AND_ASSIGN(InFlightCaptureChange);
+};
+
// Focus is really a property of the WindowTreeConnection and not the Window.
// As such, InFlightFocusChange is special in that it is not associated with
// a particular window (InFlightFocusChange::window() returns null). Internally

Powered by Google App Engine
This is Rietveld 408576698