Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: ui/aura/mus/in_flight_change.cc

Issue 2454973003: Wires up modality for aura-mus (Closed)
Patch Set: more tests Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ui/aura/mus/in_flight_change.h" 5 #include "ui/aura/mus/in_flight_change.h"
6 6
7 #include "ui/aura/client/aura_constants.h"
7 #include "ui/aura/mus/window_mus.h" 8 #include "ui/aura/mus/window_mus.h"
8 #include "ui/aura/mus/window_port_mus.h" 9 #include "ui/aura/mus/window_port_mus.h"
9 #include "ui/aura/mus/window_tree_client.h" 10 #include "ui/aura/mus/window_tree_client.h"
10 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
12 #include "ui/base/ui_base_types.h"
11 13
12 namespace aura { 14 namespace aura {
13 15
14 // InFlightChange ------------------------------------------------------------- 16 // InFlightChange -------------------------------------------------------------
15 17
16 InFlightChange::InFlightChange(WindowMus* window, ChangeType type) 18 InFlightChange::InFlightChange(WindowMus* window, ChangeType type)
17 : window_(window), change_type_(type) {} 19 : window_(window), change_type_(type) {}
18 20
19 InFlightChange::~InFlightChange() {} 21 InFlightChange::~InFlightChange() {}
20 22
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // InFlightSetModalChange ------------------------------------------------------ 225 // InFlightSetModalChange ------------------------------------------------------
224 226
225 InFlightSetModalChange::InFlightSetModalChange(WindowMus* window) 227 InFlightSetModalChange::InFlightSetModalChange(WindowMus* window)
226 : InFlightChange(window, ChangeType::SET_MODAL) {} 228 : InFlightChange(window, ChangeType::SET_MODAL) {}
227 229
228 InFlightSetModalChange::~InFlightSetModalChange() {} 230 InFlightSetModalChange::~InFlightSetModalChange() {}
229 231
230 void InFlightSetModalChange::SetRevertValueFrom(const InFlightChange& change) {} 232 void InFlightSetModalChange::SetRevertValueFrom(const InFlightChange& change) {}
231 233
232 void InFlightSetModalChange::Revert() { 234 void InFlightSetModalChange::Revert() {
233 // TODO: modality is stored in keys in aura. 235 // TODO: need to support more than just off. http://crbug.com/660073.
234 // WindowPrivate(window()).LocalUnsetModal(); 236 window()->GetWindow()->SetProperty(client::kModalKey, ui::MODAL_TYPE_NONE);
235 } 237 }
236 238
237 } // namespace aura 239 } // namespace aura
OLDNEW
« no previous file with comments | « no previous file | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698