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

Side by Side Diff: services/ui/public/cpp/lib/in_flight_change.cc

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng nits Created 4 years, 5 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 | « services/ui/public/cpp/lib/in_flight_change.h ('k') | services/ui/public/cpp/lib/window.cc » ('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 "services/ui/public/cpp/lib/in_flight_change.h" 5 #include "services/ui/public/cpp/lib/in_flight_change.h"
6 6
7 #include "services/ui/public/cpp/lib/window_private.h" 7 #include "services/ui/public/cpp/lib/window_private.h"
8 #include "services/ui/public/cpp/window_tree_client.h" 8 #include "services/ui/public/cpp/window_tree_client.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 21 matching lines...) Expand all
32 32
33 void InFlightBoundsChange::SetRevertValueFrom(const InFlightChange& change) { 33 void InFlightBoundsChange::SetRevertValueFrom(const InFlightChange& change) {
34 revert_bounds_ = 34 revert_bounds_ =
35 static_cast<const InFlightBoundsChange&>(change).revert_bounds_; 35 static_cast<const InFlightBoundsChange&>(change).revert_bounds_;
36 } 36 }
37 37
38 void InFlightBoundsChange::Revert() { 38 void InFlightBoundsChange::Revert() {
39 WindowPrivate(window()).LocalSetBounds(window()->bounds(), revert_bounds_); 39 WindowPrivate(window()).LocalSetBounds(window()->bounds(), revert_bounds_);
40 } 40 }
41 41
42 // InFlightMoveLoopChange -----------------------------------------------------
43
44 InFlightMoveLoopChange::InFlightMoveLoopChange(Window* window)
45 : InFlightChange(window, ChangeType::MOVE_LOOP) {}
46
47 void InFlightMoveLoopChange::SetRevertValueFrom(const InFlightChange& change) {}
48
49 void InFlightMoveLoopChange::Revert() {
50 // Reverting bounds happens in the window server in the error case; it cannot
51 // happen in the client because this could conflict with a
52 // InFlightBoundsChange.
53 }
54
42 // CrashInFlightChange -------------------------------------------------------- 55 // CrashInFlightChange --------------------------------------------------------
43 56
44 CrashInFlightChange::CrashInFlightChange(Window* window, ChangeType type) 57 CrashInFlightChange::CrashInFlightChange(Window* window, ChangeType type)
45 : InFlightChange(window, type) {} 58 : InFlightChange(window, type) {}
46 59
47 CrashInFlightChange::~CrashInFlightChange() {} 60 CrashInFlightChange::~CrashInFlightChange() {}
48 61
49 void CrashInFlightChange::SetRevertValueFrom(const InFlightChange& change) { 62 void CrashInFlightChange::SetRevertValueFrom(const InFlightChange& change) {
50 CHECK(false); 63 CHECK(false);
51 } 64 }
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 224
212 InFlightSetModalChange::~InFlightSetModalChange() {} 225 InFlightSetModalChange::~InFlightSetModalChange() {}
213 226
214 void InFlightSetModalChange::SetRevertValueFrom(const InFlightChange& change) {} 227 void InFlightSetModalChange::SetRevertValueFrom(const InFlightChange& change) {}
215 228
216 void InFlightSetModalChange::Revert() { 229 void InFlightSetModalChange::Revert() {
217 WindowPrivate(window()).LocalUnsetModal(); 230 WindowPrivate(window()).LocalUnsetModal();
218 } 231 }
219 232
220 } // namespace ui 233 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/lib/in_flight_change.h ('k') | services/ui/public/cpp/lib/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698