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

Unified Diff: ui/aura/mus/in_flight_change.h

Issue 2710023007: Make WindowTree::SetModal() take the type. (Closed)
Patch Set: address feedback. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/window_tree_unittest.cc ('k') | ui/aura/mus/in_flight_change.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/in_flight_change.h
diff --git a/ui/aura/mus/in_flight_change.h b/ui/aura/mus/in_flight_change.h
index 6a8b6d4fa88822da665a64156f066152b4c37f92..113a9e78c55ac0c9a7458122aee241841e44f9df 100644
--- a/ui/aura/mus/in_flight_change.h
+++ b/ui/aura/mus/in_flight_change.h
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "ui/aura/window_observer.h"
+#include "ui/base/ui_base_types.h"
#include "ui/gfx/geometry/rect.h"
namespace ui {
@@ -313,17 +314,19 @@ class InFlightOpacityChange : public InFlightChange {
DISALLOW_COPY_AND_ASSIGN(InFlightOpacityChange);
};
-class InFlightSetModalChange : public InFlightChange {
+class InFlightSetModalTypeChange : public InFlightChange {
public:
- explicit InFlightSetModalChange(WindowMus* window);
- ~InFlightSetModalChange() override;
+ InFlightSetModalTypeChange(WindowMus* window, ui::ModalType revert_value);
+ ~InFlightSetModalTypeChange() override;
// InFlightChange:
void SetRevertValueFrom(const InFlightChange& change) override;
void Revert() override;
private:
- DISALLOW_COPY_AND_ASSIGN(InFlightSetModalChange);
+ ui::ModalType revert_modal_type_;
+
+ DISALLOW_COPY_AND_ASSIGN(InFlightSetModalTypeChange);
};
} // namespace aura
« no previous file with comments | « services/ui/ws/window_tree_unittest.cc ('k') | ui/aura/mus/in_flight_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698