OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 private: | 247 private: |
248 mojom::Cursor revert_cursor_; | 248 mojom::Cursor revert_cursor_; |
249 | 249 |
250 DISALLOW_COPY_AND_ASSIGN(InFlightPredefinedCursorChange); | 250 DISALLOW_COPY_AND_ASSIGN(InFlightPredefinedCursorChange); |
251 }; | 251 }; |
252 | 252 |
253 class InFlightVisibleChange : public InFlightChange { | 253 class InFlightVisibleChange : public InFlightChange { |
254 public: | 254 public: |
255 InFlightVisibleChange(Window* window, const bool revert_value); | 255 InFlightVisibleChange(Window* window, const bool revert_value); |
| 256 ~InFlightVisibleChange() override; |
256 | 257 |
257 // InFlightChange: | 258 // InFlightChange: |
258 void SetRevertValueFrom(const InFlightChange& change) override; | 259 void SetRevertValueFrom(const InFlightChange& change) override; |
259 void Revert() override; | 260 void Revert() override; |
260 | 261 |
261 private: | 262 private: |
262 bool revert_visible_; | 263 bool revert_visible_; |
263 | 264 |
264 DISALLOW_COPY_AND_ASSIGN(InFlightVisibleChange); | 265 DISALLOW_COPY_AND_ASSIGN(InFlightVisibleChange); |
265 }; | 266 }; |
266 | 267 |
| 268 class InFlightSetModalChange : public InFlightChange { |
| 269 public: |
| 270 explicit InFlightSetModalChange(Window* window); |
| 271 ~InFlightSetModalChange() override; |
| 272 |
| 273 // InFlightChange: |
| 274 void SetRevertValueFrom(const InFlightChange& change) override; |
| 275 void Revert() override; |
| 276 |
| 277 private: |
| 278 DISALLOW_COPY_AND_ASSIGN(InFlightSetModalChange); |
| 279 }; |
| 280 |
267 } // namespace mus | 281 } // namespace mus |
268 | 282 |
269 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ | 283 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ |
OLD | NEW |