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

Unified Diff: components/mus/public/cpp/window.h

Issue 1784573002: mus: Client-side implementation of modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b548402_modal_windows_server
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 side-by-side diff with in-line comments
Download patch
Index: components/mus/public/cpp/window.h
diff --git a/components/mus/public/cpp/window.h b/components/mus/public/cpp/window.h
index 92db4c7ec1b8ec08bb07f9d74004b6fbfa597bfb..a04af04ce7141dd9c8505acba6a71be0ee8d17c7 100644
--- a/components/mus/public/cpp/window.h
+++ b/components/mus/public/cpp/window.h
@@ -185,6 +185,9 @@ class Window {
const Window* transient_parent() const { return transient_parent_; }
const Children& transient_children() const { return transient_children_; }
+ void SetModal();
+ bool is_modal() const { return is_modal_; }
+
Window* GetChildById(Id id);
void SetTextInputState(mojo::TextInputStatePtr state);
@@ -243,6 +246,7 @@ class Window {
void LocalRemoveChild(Window* child);
void LocalAddTransientWindow(Window* transient_window);
void LocalRemoveTransientWindow(Window* transient_window);
+ void LocalSetModal();
// Returns true if the order actually changed.
bool LocalReorder(Window* relative, mojom::OrderDirection direction);
void LocalSetBounds(const gfx::Rect& old_bounds, const gfx::Rect& new_bounds);
@@ -297,6 +301,8 @@ class Window {
Window* transient_parent_;
Children transient_children_;
+ bool is_modal_;
+
base::ObserverList<WindowObserver> observers_;
InputEventHandler* input_event_handler_;

Powered by Google App Engine
This is Rietveld 408576698