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

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: 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // InFlightChange: 257 // InFlightChange:
258 void SetRevertValueFrom(const InFlightChange& change) override; 258 void SetRevertValueFrom(const InFlightChange& change) override;
259 void Revert() override; 259 void Revert() override;
260 260
261 private: 261 private:
262 bool revert_visible_; 262 bool revert_visible_;
263 263
264 DISALLOW_COPY_AND_ASSIGN(InFlightVisibleChange); 264 DISALLOW_COPY_AND_ASSIGN(InFlightVisibleChange);
265 }; 265 };
266 266
267 class InFlightSetModalChange : public InFlightChange {
268 public:
269 InFlightSetModalChange(Window* window);
sky 2016/03/17 22:59:42 explicit, and don't have the compiler generate des
mohsen 2016/03/17 23:51:30 Done. Also added destructor for InFlightVisibleCha
270
271 // InFlightChange:
272 void SetRevertValueFrom(const InFlightChange& change) override;
273 void Revert() override;
274
275 private:
276 DISALLOW_COPY_AND_ASSIGN(InFlightSetModalChange);
277 };
278
267 } // namespace mus 279 } // namespace mus
268 280
269 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_IN_FLIGHT_CHANGE_H_ 281 #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