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

Side by Side 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: Merge ConstrainedWebDialog functions Created 4 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_ 5 #ifndef UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_
6 #define UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_ 6 #define UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ui/aura/env_observer.h" 12 #include "ui/aura/env_observer.h"
13 #include "ui/aura/window_observer.h" 13 #include "ui/aura/window_observer.h"
14 #include "ui/events/event_handler.h" 14 #include "ui/events/event_handler.h"
15 #include "ui/wm/wm_export.h" 15 #include "ui/wm/wm_export.h"
16 16
17 namespace ui { 17 namespace ui {
18 class EventTarget; 18 class EventTarget;
19 class LocatedEvent; 19 class LocatedEvent;
20 } 20 }
21 21
22 namespace wm { 22 namespace wm {
23 23
24 // Key for native window proprety that indicates if the window (should be
25 // ui::MODAL_TYPE_WINDOW) is top level with a transient parent and allows
26 // events to be sent to the transient parent. Otherwise, window modal
27 // transients will absorb all events sent to the transient parent.
28 WM_EXPORT extern const char kAllowTransientParentEventsKey[];
29
24 // Sets the modal parent for the child. 30 // Sets the modal parent for the child.
25 WM_EXPORT void SetModalParent(aura::Window* child, aura::Window* parent); 31 WM_EXPORT void SetModalParent(aura::Window* child, aura::Window* parent);
26 32
27 // Returns the modal transient child of |window|, or NULL if |window| does not 33 // Returns the modal transient child of |window|, or NULL if |window| does not
28 // have any modal transient children. 34 // have any modal transient children.
29 WM_EXPORT aura::Window* GetModalTransient(aura::Window* window); 35 WM_EXPORT aura::Window* GetModalTransient(aura::Window* window);
30 36
31 // WindowModalityController is an event filter that consumes events sent to 37 // WindowModalityController is an event filter that consumes events sent to
32 // windows that are the transient parents of window-modal windows. This filter 38 // windows that are the transient parents of window-modal windows. This filter
33 // must be added to the CompoundEventFilter so that activation works properly. 39 // must be added to the CompoundEventFilter so that activation works properly.
(...skipping 28 matching lines...) Expand all
62 std::vector<aura::Window*> windows_; 68 std::vector<aura::Window*> windows_;
63 69
64 ui::EventTarget* event_target_; 70 ui::EventTarget* event_target_;
65 71
66 DISALLOW_COPY_AND_ASSIGN(WindowModalityController); 72 DISALLOW_COPY_AND_ASSIGN(WindowModalityController);
67 }; 73 };
68 74
69 } // namespace wm 75 } // namespace wm
70 76
71 #endif // UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_ 77 #endif // UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « components/web_modal/single_web_contents_dialog_manager.h ('k') | ui/wm/core/window_modality_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698