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

Side by Side Diff: components/mus/public/cpp/lib/in_flight_change.h

Issue 1811913004: mus: Allow SetModal to fail gracefully (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed constructor/destructor Created 4 years, 9 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 | « no previous file | components/mus/public/cpp/lib/in_flight_change.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 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 private: 247 private:
248 mojom::Cursor revert_cursor_; 248 mojom::Cursor revert_cursor_;
249 249
250 DISALLOW_COPY_AND_ASSIGN(InFlightPredefinedCursorChange); 250 DISALLOW_COPY_AND_ASSIGN(InFlightPredefinedCursorChange);
251 }; 251 };
252 252
253 class InFlightVisibleChange : public InFlightChange { 253 class InFlightVisibleChange : public InFlightChange {
254 public: 254 public:
255 InFlightVisibleChange(Window* window, const bool revert_value); 255 InFlightVisibleChange(Window* window, const bool revert_value);
256 ~InFlightVisibleChange() override;
256 257
257 // InFlightChange: 258 // InFlightChange:
258 void SetRevertValueFrom(const InFlightChange& change) override; 259 void SetRevertValueFrom(const InFlightChange& change) override;
259 void Revert() override; 260 void Revert() override;
260 261
261 private: 262 private:
262 bool revert_visible_; 263 bool revert_visible_;
263 264
264 DISALLOW_COPY_AND_ASSIGN(InFlightVisibleChange); 265 DISALLOW_COPY_AND_ASSIGN(InFlightVisibleChange);
265 }; 266 };
266 267
268 class InFlightSetModalChange : public InFlightChange {
269 public:
270 explicit InFlightSetModalChange(Window* window);
271 ~InFlightSetModalChange() override;
272
273 // InFlightChange:
274 void SetRevertValueFrom(const InFlightChange& change) override;
275 void Revert() override;
276
277 private:
278 DISALLOW_COPY_AND_ASSIGN(InFlightSetModalChange);
279 };
280
267 } // namespace mus 281 } // namespace mus
268 282
269 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ 283 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_
OLDNEW
« no previous file with comments | « no previous file | components/mus/public/cpp/lib/in_flight_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698