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

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

Issue 2784663003: mus: Rename mojom::Cursor to mojom::CursorType. (Closed)
Patch Set: Created 3 years, 8 months 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 | « ui/aura/mus/in_flight_change.h ('k') | ui/aura/mus/window_manager_delegate.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/client/aura_constants.h"
8 #include "ui/aura/mus/capture_synchronizer.h" 8 #include "ui/aura/mus/capture_synchronizer.h"
9 #include "ui/aura/mus/focus_synchronizer.h" 9 #include "ui/aura/mus/focus_synchronizer.h"
10 #include "ui/aura/mus/window_mus.h" 10 #include "ui/aura/mus/window_mus.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 178 }
179 179
180 void InFlightPropertyChange::Revert() { 180 void InFlightPropertyChange::Revert() {
181 window()->SetPropertyFromServer(property_name_, revert_value_.get()); 181 window()->SetPropertyFromServer(property_name_, revert_value_.get());
182 } 182 }
183 183
184 // InFlightPredefinedCursorChange --------------------------------------------- 184 // InFlightPredefinedCursorChange ---------------------------------------------
185 185
186 InFlightPredefinedCursorChange::InFlightPredefinedCursorChange( 186 InFlightPredefinedCursorChange::InFlightPredefinedCursorChange(
187 WindowMus* window, 187 WindowMus* window,
188 ui::mojom::Cursor revert_value) 188 ui::mojom::CursorType revert_value)
189 : InFlightChange(window, ChangeType::PREDEFINED_CURSOR), 189 : InFlightChange(window, ChangeType::PREDEFINED_CURSOR),
190 revert_cursor_(revert_value) {} 190 revert_cursor_(revert_value) {}
191 191
192 InFlightPredefinedCursorChange::~InFlightPredefinedCursorChange() {} 192 InFlightPredefinedCursorChange::~InFlightPredefinedCursorChange() {}
193 193
194 void InFlightPredefinedCursorChange::SetRevertValueFrom( 194 void InFlightPredefinedCursorChange::SetRevertValueFrom(
195 const InFlightChange& change) { 195 const InFlightChange& change) {
196 revert_cursor_ = 196 revert_cursor_ =
197 static_cast<const InFlightPredefinedCursorChange&>(change).revert_cursor_; 197 static_cast<const InFlightPredefinedCursorChange&>(change).revert_cursor_;
198 } 198 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 const InFlightChange& change) { 254 const InFlightChange& change) {
255 revert_modal_type_ = 255 revert_modal_type_ =
256 static_cast<const InFlightSetModalTypeChange&>(change).revert_modal_type_; 256 static_cast<const InFlightSetModalTypeChange&>(change).revert_modal_type_;
257 } 257 }
258 258
259 void InFlightSetModalTypeChange::Revert() { 259 void InFlightSetModalTypeChange::Revert() {
260 window()->GetWindow()->SetProperty(client::kModalKey, revert_modal_type_); 260 window()->GetWindow()->SetProperty(client::kModalKey, revert_modal_type_);
261 } 261 }
262 262
263 } // namespace aura 263 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/mus/in_flight_change.h ('k') | ui/aura/mus/window_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698