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/lib/window_tree_client_impl.h" | 8 #include "components/mus/public/cpp/lib/window_tree_client_impl.h" |
9 #include "components/mus/public/cpp/window_tree_connection.h" | 9 #include "components/mus/public/cpp/window_tree_connection.h" |
10 | 10 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 void InFlightVisibleChange::SetRevertValueFrom(const InFlightChange& change) { | 180 void InFlightVisibleChange::SetRevertValueFrom(const InFlightChange& change) { |
181 revert_visible_ = | 181 revert_visible_ = |
182 static_cast<const InFlightVisibleChange&>(change).revert_visible_; | 182 static_cast<const InFlightVisibleChange&>(change).revert_visible_; |
183 } | 183 } |
184 | 184 |
185 void InFlightVisibleChange::Revert() { | 185 void InFlightVisibleChange::Revert() { |
186 WindowPrivate(window()).LocalSetVisible(revert_visible_); | 186 WindowPrivate(window()).LocalSetVisible(revert_visible_); |
187 } | 187 } |
188 | 188 |
| 189 // InFlightSetModalChange ------------------------------------------------------ |
| 190 |
| 191 InFlightSetModalChange::InFlightSetModalChange(Window* window) |
| 192 : InFlightChange(window, ChangeType::SET_MODAL) {} |
| 193 |
| 194 void InFlightSetModalChange::SetRevertValueFrom(const InFlightChange& change) {} |
| 195 |
| 196 void InFlightSetModalChange::Revert() { |
| 197 WindowPrivate(window()).LocalUnsetModal(); |
| 198 } |
| 199 |
189 } // namespace mus | 200 } // namespace mus |
OLD | NEW |