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

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: Change to CrOS only. Created 4 years, 4 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 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 // Key for native window property that indicates if the window should have
24 // bounds independent of its modal parent.
Mike Wittman 2016/08/12 22:51:35 Mention which platforms support this in the commen
rbpotter 2016/08/15 18:03:46 Done.
25 WM_EXPORT extern const char kHasIndependentBoundsKey[];
23 26
24 // Sets the modal parent for the child. 27 // Sets the modal parent for the child.
25 WM_EXPORT void SetModalParent(aura::Window* child, aura::Window* parent); 28 WM_EXPORT void SetModalParent(aura::Window* child, aura::Window* parent);
26 29
27 // Returns the modal transient child of |window|, or NULL if |window| does not 30 // Returns the modal transient child of |window|, or NULL if |window| does not
28 // have any modal transient children. 31 // have any modal transient children.
29 WM_EXPORT aura::Window* GetModalTransient(aura::Window* window); 32 WM_EXPORT aura::Window* GetModalTransient(aura::Window* window);
30 33
31 // WindowModalityController is an event filter that consumes events sent to 34 // WindowModalityController is an event filter that consumes events sent to
32 // windows that are the transient parents of window-modal windows. This filter 35 // windows that are the transient parents of window-modal windows. This filter
(...skipping 29 matching lines...) Expand all
62 std::vector<aura::Window*> windows_; 65 std::vector<aura::Window*> windows_;
63 66
64 ui::EventTarget* event_target_; 67 ui::EventTarget* event_target_;
65 68
66 DISALLOW_COPY_AND_ASSIGN(WindowModalityController); 69 DISALLOW_COPY_AND_ASSIGN(WindowModalityController);
67 }; 70 };
68 71
69 } // namespace wm 72 } // namespace wm
70 73
71 #endif // UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_ 74 #endif // UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698