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

Side by Side Diff: services/ui/public/cpp/in_flight_change.h

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clear the implicit pointer drags before start. Created 4 years, 3 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
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 #ifndef SERVICES_UI_PUBLIC_CPP_IN_FLIGHT_CHANGE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_IN_FLIGHT_CHANGE_H_
6 #define SERVICES_UI_PUBLIC_CPP_IN_FLIGHT_CHANGE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_IN_FLIGHT_CHANGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // InFlightChange: 137 // InFlightChange:
138 void SetRevertValueFrom(const InFlightChange& change) override; 138 void SetRevertValueFrom(const InFlightChange& change) override;
139 void Revert() override; 139 void Revert() override;
140 140
141 private: 141 private:
142 gfx::Rect revert_bounds_; 142 gfx::Rect revert_bounds_;
143 143
144 DISALLOW_COPY_AND_ASSIGN(InFlightBoundsChange); 144 DISALLOW_COPY_AND_ASSIGN(InFlightBoundsChange);
145 }; 145 };
146 146
147 class InFlightMoveLoopChange : public InFlightChange { 147 class InFlightDragChange : public InFlightChange {
148 public: 148 public:
149 explicit InFlightMoveLoopChange(Window* window); 149 explicit InFlightDragChange(Window* window);
150 150
151 // InFlightChange: 151 // InFlightChange:
152 void SetRevertValueFrom(const InFlightChange& change) override; 152 void SetRevertValueFrom(const InFlightChange& change) override;
153 void Revert() override; 153 void Revert() override;
154 154
155 private: 155 private:
156 DISALLOW_COPY_AND_ASSIGN(InFlightMoveLoopChange); 156 DISALLOW_COPY_AND_ASSIGN(InFlightDragChange);
157 }; 157 };
158 158
159 // Inflight change that crashes on failure. This is useful for changes that are 159 // Inflight change that crashes on failure. This is useful for changes that are
160 // expected to always complete. 160 // expected to always complete.
161 class CrashInFlightChange : public InFlightChange { 161 class CrashInFlightChange : public InFlightChange {
162 public: 162 public:
163 CrashInFlightChange(Window* window, ChangeType type); 163 CrashInFlightChange(Window* window, ChangeType type);
164 ~CrashInFlightChange() override; 164 ~CrashInFlightChange() override;
165 165
166 // InFlightChange: 166 // InFlightChange:
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void SetRevertValueFrom(const InFlightChange& change) override; 302 void SetRevertValueFrom(const InFlightChange& change) override;
303 void Revert() override; 303 void Revert() override;
304 304
305 private: 305 private:
306 DISALLOW_COPY_AND_ASSIGN(InFlightSetModalChange); 306 DISALLOW_COPY_AND_ASSIGN(InFlightSetModalChange);
307 }; 307 };
308 308
309 } // namespace ui 309 } // namespace ui
310 310
311 #endif // SERVICES_UI_PUBLIC_CPP_IN_FLIGHT_CHANGE_H_ 311 #endif // SERVICES_UI_PUBLIC_CPP_IN_FLIGHT_CHANGE_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/public/cpp/in_flight_change.cc » ('j') | services/ui/public/cpp/window_drop_target.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698