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

Side by Side 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 unified diff | 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 »
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 UI_AURA_MUS_IN_FLIGHT_CHANGE_H_ 5 #ifndef UI_AURA_MUS_IN_FLIGHT_CHANGE_H_
6 #define UI_AURA_MUS_IN_FLIGHT_CHANGE_H_ 6 #define UI_AURA_MUS_IN_FLIGHT_CHANGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "ui/aura/window_observer.h" 16 #include "ui/aura/window_observer.h"
17 #include "ui/base/ui_base_types.h"
17 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
18 19
19 namespace ui { 20 namespace ui {
20 21
21 namespace mojom { 22 namespace mojom {
22 enum class Cursor : int32_t; 23 enum class Cursor : int32_t;
23 } 24 }
24 25
25 } // namespace ui 26 } // namespace ui
26 27
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // InFlightChange: 307 // InFlightChange:
307 void SetRevertValueFrom(const InFlightChange& change) override; 308 void SetRevertValueFrom(const InFlightChange& change) override;
308 void Revert() override; 309 void Revert() override;
309 310
310 private: 311 private:
311 float revert_opacity_; 312 float revert_opacity_;
312 313
313 DISALLOW_COPY_AND_ASSIGN(InFlightOpacityChange); 314 DISALLOW_COPY_AND_ASSIGN(InFlightOpacityChange);
314 }; 315 };
315 316
316 class InFlightSetModalChange : public InFlightChange { 317 class InFlightSetModalTypeChange : public InFlightChange {
317 public: 318 public:
318 explicit InFlightSetModalChange(WindowMus* window); 319 InFlightSetModalTypeChange(WindowMus* window, ui::ModalType revert_value);
319 ~InFlightSetModalChange() override; 320 ~InFlightSetModalTypeChange() override;
320 321
321 // InFlightChange: 322 // InFlightChange:
322 void SetRevertValueFrom(const InFlightChange& change) override; 323 void SetRevertValueFrom(const InFlightChange& change) override;
323 void Revert() override; 324 void Revert() override;
324 325
325 private: 326 private:
326 DISALLOW_COPY_AND_ASSIGN(InFlightSetModalChange); 327 ui::ModalType revert_modal_type_;
328
329 DISALLOW_COPY_AND_ASSIGN(InFlightSetModalTypeChange);
327 }; 330 };
328 331
329 } // namespace aura 332 } // namespace aura
330 333
331 #endif // UI_AURA_MUS_IN_FLIGHT_CHANGE_H_ 334 #endif // UI_AURA_MUS_IN_FLIGHT_CHANGE_H_
OLDNEW
« 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