| 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
|
|
|