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

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: Added early out 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
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698