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

Unified Diff: services/ui/ws/test_utils.h

Issue 2745143004: Inform window manager about modal windows in mus+ash. (Closed)
Patch Set: rebased. 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/public/interfaces/window_manager.mojom ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.h
diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
index 22ddee3cbb99ade45c5e89015dca7d90d946d5fb..87bb3615633f82d0e063c8f1bcd8083b46feffae 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -331,6 +331,7 @@ class TestWindowManager : public mojom::WindowManager {
uint32_t on_accelerator_id() { return on_accelerator_id_; }
bool got_display_removed() const { return got_display_removed_; }
int64_t display_removed_id() const { return display_removed_id_; }
+ bool on_set_modal_type_called() { return on_set_modal_type_called_; }
private:
// WindowManager:
@@ -348,6 +349,7 @@ class TestWindowManager : public mojom::WindowManager {
uint32_t window_id,
const std::string& name,
const base::Optional<std::vector<uint8_t>>& value) override {}
+ void WmSetModalType(uint32_t window_id, ui::ModalType type) override;
void WmSetCanFocus(uint32_t window_id, bool can_focus) override {}
void WmCreateTopLevelWindow(
uint32_t change_id,
@@ -370,6 +372,7 @@ class TestWindowManager : public mojom::WindowManager {
std::unique_ptr<ui::Event> event) override;
bool on_perform_move_loop_called_ = false;
+ bool on_set_modal_type_called_ = false;
bool got_create_top_level_window_;
uint32_t change_id_;
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698