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