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

Unified Diff: ui/wm/core/window_modality_controller.h

Issue 2172363002: Created min size for print preview dialog and modified to allow the Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac build error Created 4 years, 3 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: ui/wm/core/window_modality_controller.h
diff --git a/ui/wm/core/window_modality_controller.h b/ui/wm/core/window_modality_controller.h
index 106db131be96645f01f04602b4665aaf314e9c45..ddf0bd8deec4925b14cfde6a38bc362c1ce952e8 100644
--- a/ui/wm/core/window_modality_controller.h
+++ b/ui/wm/core/window_modality_controller.h
@@ -21,13 +21,24 @@ class LocatedEvent;
namespace wm {
+// Key for native window proprety that indicates if the window (should be
+// ui::MODAL_TYPE_WINDOW) is top level with a transient parent and allows
+// events to be sent to the transient parent. Otherwise, window modal
+// transients will absorb all events sent to the transient parent.
+WM_EXPORT extern const char kAllowTransientParentEventsKey[];
+
// Sets the modal parent for the child.
WM_EXPORT void SetModalParent(aura::Window* child, aura::Window* parent);
// Returns the modal transient child of |window|, or NULL if |window| does not
-// have any modal transient children.
+// have any modal transient children or if the children do not block the parent
+// window.
WM_EXPORT aura::Window* GetModalTransient(aura::Window* window);
+// Returns the modal transient of |window| including window modal transients
+// that do not block the parent window.
+WM_EXPORT aura::Window* HasWindowModalTransient(aura::Window * window);
+
// WindowModalityController is an event filter that consumes events sent to
// windows that are the transient parents of window-modal windows. This filter
// must be added to the CompoundEventFilter so that activation works properly.

Powered by Google App Engine
This is Rietveld 408576698