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 UI_AURA_MUS_IN_FLIGHT_CHANGE_H_ | 5 #ifndef UI_AURA_MUS_IN_FLIGHT_CHANGE_H_ |
6 #define UI_AURA_MUS_IN_FLIGHT_CHANGE_H_ | 6 #define UI_AURA_MUS_IN_FLIGHT_CHANGE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 namespace mojom { | 22 namespace mojom { |
23 enum class Cursor : int32_t; | 23 enum class Cursor : int32_t; |
24 } | 24 } |
25 | 25 |
26 } // namespace ui | 26 } // namespace ui |
27 | 27 |
28 namespace aura { | 28 namespace aura { |
29 | 29 |
30 class CaptureSynchronizer; | 30 class CaptureSynchronizer; |
| 31 class FocusSynchronizer; |
31 class WindowMus; | 32 class WindowMus; |
32 class WindowTreeClient; | 33 class WindowTreeClient; |
33 | 34 |
34 enum class ChangeType { | 35 enum class ChangeType { |
35 ADD_CHILD, | 36 ADD_CHILD, |
36 ADD_TRANSIENT_WINDOW, | 37 ADD_TRANSIENT_WINDOW, |
37 BOUNDS, | 38 BOUNDS, |
38 CAPTURE, | 39 CAPTURE, |
39 DELETE_WINDOW, | 40 DELETE_WINDOW, |
40 DRAG_LOOP, | 41 DRAG_LOOP, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // InFlightChange: | 225 // InFlightChange: |
225 void Revert() override; | 226 void Revert() override; |
226 | 227 |
227 private: | 228 private: |
228 CaptureSynchronizer* capture_synchronizer_; | 229 CaptureSynchronizer* capture_synchronizer_; |
229 DISALLOW_COPY_AND_ASSIGN(InFlightCaptureChange); | 230 DISALLOW_COPY_AND_ASSIGN(InFlightCaptureChange); |
230 }; | 231 }; |
231 | 232 |
232 class InFlightFocusChange : public InFlightWindowTreeClientChange { | 233 class InFlightFocusChange : public InFlightWindowTreeClientChange { |
233 public: | 234 public: |
234 InFlightFocusChange(WindowTreeClient* client, WindowMus* revert_value); | 235 InFlightFocusChange(WindowTreeClient* client, |
| 236 FocusSynchronizer* focus_synchronizer, |
| 237 WindowMus* revert_value); |
235 ~InFlightFocusChange() override; | 238 ~InFlightFocusChange() override; |
236 | 239 |
237 // InFlightChange: | 240 // InFlightChange: |
238 void Revert() override; | 241 void Revert() override; |
239 | 242 |
240 private: | 243 private: |
| 244 FocusSynchronizer* focus_synchronizer_; |
| 245 |
241 DISALLOW_COPY_AND_ASSIGN(InFlightFocusChange); | 246 DISALLOW_COPY_AND_ASSIGN(InFlightFocusChange); |
242 }; | 247 }; |
243 | 248 |
244 class InFlightPropertyChange : public InFlightChange { | 249 class InFlightPropertyChange : public InFlightChange { |
245 public: | 250 public: |
246 InFlightPropertyChange(WindowMus* window, | 251 InFlightPropertyChange(WindowMus* window, |
247 const std::string& property_name, | 252 const std::string& property_name, |
248 std::unique_ptr<std::vector<uint8_t>> revert_value); | 253 std::unique_ptr<std::vector<uint8_t>> revert_value); |
249 ~InFlightPropertyChange() override; | 254 ~InFlightPropertyChange() override; |
250 | 255 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 void SetRevertValueFrom(const InFlightChange& change) override; | 323 void SetRevertValueFrom(const InFlightChange& change) override; |
319 void Revert() override; | 324 void Revert() override; |
320 | 325 |
321 private: | 326 private: |
322 DISALLOW_COPY_AND_ASSIGN(InFlightSetModalChange); | 327 DISALLOW_COPY_AND_ASSIGN(InFlightSetModalChange); |
323 }; | 328 }; |
324 | 329 |
325 } // namespace aura | 330 } // namespace aura |
326 | 331 |
327 #endif // UI_AURA_MUS_IN_FLIGHT_CHANGE_H_ | 332 #endif // UI_AURA_MUS_IN_FLIGHT_CHANGE_H_ |
OLD | NEW |