| 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 #include "components/mus/public/cpp/lib/in_flight_change.h" | 5 #include "components/mus/public/cpp/lib/in_flight_change.h" |
| 6 | 6 |
| 7 #include "components/mus/public/cpp/lib/window_private.h" | 7 #include "components/mus/public/cpp/lib/window_private.h" |
| 8 #include "components/mus/public/cpp/window_tree_client.h" | 8 #include "components/mus/public/cpp/window_tree_client.h" |
| 9 | 9 |
| 10 namespace mus { | 10 namespace mus { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 CrashInFlightChange::CrashInFlightChange(Window* window, ChangeType type) | 44 CrashInFlightChange::CrashInFlightChange(Window* window, ChangeType type) |
| 45 : InFlightChange(window, type) {} | 45 : InFlightChange(window, type) {} |
| 46 | 46 |
| 47 CrashInFlightChange::~CrashInFlightChange() {} | 47 CrashInFlightChange::~CrashInFlightChange() {} |
| 48 | 48 |
| 49 void CrashInFlightChange::SetRevertValueFrom(const InFlightChange& change) { | 49 void CrashInFlightChange::SetRevertValueFrom(const InFlightChange& change) { |
| 50 CHECK(false); | 50 CHECK(false); |
| 51 } | 51 } |
| 52 | 52 |
| 53 void CrashInFlightChange::ChangeFailed() { | 53 void CrashInFlightChange::ChangeFailed() { |
| 54 DLOG(ERROR) << "changed failed, type=" << static_cast<int>(change_type()); |
| 54 CHECK(false); | 55 CHECK(false); |
| 55 } | 56 } |
| 56 | 57 |
| 57 void CrashInFlightChange::Revert() { | 58 void CrashInFlightChange::Revert() { |
| 58 CHECK(false); | 59 CHECK(false); |
| 59 } | 60 } |
| 60 | 61 |
| 61 // InFlightWindowChange ------------------------------------------------------- | 62 // InFlightWindowChange ------------------------------------------------------- |
| 62 | 63 |
| 63 InFlightWindowTreeClientChange::InFlightWindowTreeClientChange( | 64 InFlightWindowTreeClientChange::InFlightWindowTreeClientChange( |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 211 |
| 211 InFlightSetModalChange::~InFlightSetModalChange() {} | 212 InFlightSetModalChange::~InFlightSetModalChange() {} |
| 212 | 213 |
| 213 void InFlightSetModalChange::SetRevertValueFrom(const InFlightChange& change) {} | 214 void InFlightSetModalChange::SetRevertValueFrom(const InFlightChange& change) {} |
| 214 | 215 |
| 215 void InFlightSetModalChange::Revert() { | 216 void InFlightSetModalChange::Revert() { |
| 216 WindowPrivate(window()).LocalUnsetModal(); | 217 WindowPrivate(window()).LocalUnsetModal(); |
| 217 } | 218 } |
| 218 | 219 |
| 219 } // namespace mus | 220 } // namespace mus |
| OLD | NEW |