Chromium Code Reviews| 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 3dc42a74724165afbdbd76d65714df26ad8c59b9..4231251e18de3e326eb3c437aae223955c861799 100644 |
| --- a/components/mus/public/cpp/lib/in_flight_change.h |
| +++ b/components/mus/public/cpp/lib/in_flight_change.h |
| @@ -15,6 +15,10 @@ |
| namespace mus { |
| +namespace mojom { |
| +enum Cursor : int32_t; |
| +} |
| + |
| class Window; |
| enum class ChangeType { |
| @@ -23,7 +27,8 @@ enum class ChangeType { |
| DELETE_WINDOW, |
| NEW_WINDOW, |
| PROPERTY, |
| - REMOVE_TRANSIENT_WINDOW_FROM_PARENT |
| + REMOVE_TRANSIENT_WINDOW_FROM_PARENT, |
| + PREDEFINED_CURSOR |
|
sky
2015/12/02 21:42:35
nit: keep sorted.
|
| }; |
| // InFlightChange is used to track function calls to the server and take the |
| @@ -130,6 +135,22 @@ class InFlightPropertyChange : public InFlightChange { |
| DISALLOW_COPY_AND_ASSIGN(InFlightPropertyChange); |
| }; |
| +class InFlightPredefinedCursorChange : public InFlightChange { |
| + public: |
| + InFlightPredefinedCursorChange(Window* window, mojom::Cursor revert_value); |
| + ~InFlightPredefinedCursorChange() override; |
| + |
| + // InFlightChange: |
| + bool Matches(const InFlightChange& change) const override; |
| + void SetRevertValueFrom(const InFlightChange& change) override; |
| + void Revert() override; |
| + |
| + private: |
| + mojom::Cursor revert_cursor_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(InFlightPredefinedCursorChange); |
| +}; |
| + |
| } // namespace mus |
| #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ |