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

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: Track independent bounds as native window property not member of widget class 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 //extern const char kHasIndependentBoundsKey[];
23 24
24 // Sets the modal parent for the child. 25 // Sets the modal parent for the child.
25 WM_EXPORT void SetModalParent(aura::Window* child, aura::Window* parent); 26 //
27 WM_EXPORT void SetModalParent(aura::Window* child, aura::Window* parent,
28 bool* independent,
29 const char * kHasIndependentBounds);
26 30
27 // Returns the modal transient child of |window|, or NULL if |window| does not 31 // Returns the modal transient child of |window|, or NULL if |window| does not
28 // have any modal transient children. 32 // have any modal transient children.
29 WM_EXPORT aura::Window* GetModalTransient(aura::Window* window); 33 WM_EXPORT aura::Window* GetModalTransient(aura::Window* window);
30 34
31 // WindowModalityController is an event filter that consumes events sent to 35 // WindowModalityController is an event filter that consumes events sent to
32 // windows that are the transient parents of window-modal windows. This filter 36 // windows that are the transient parents of window-modal windows. This filter
33 // must be added to the CompoundEventFilter so that activation works properly. 37 // must be added to the CompoundEventFilter so that activation works properly.
34 class WM_EXPORT WindowModalityController : public ui::EventHandler, 38 class WM_EXPORT WindowModalityController : public ui::EventHandler,
35 public aura::EnvObserver, 39 public aura::EnvObserver,
(...skipping 26 matching lines...) Expand all
62 std::vector<aura::Window*> windows_; 66 std::vector<aura::Window*> windows_;
63 67
64 ui::EventTarget* event_target_; 68 ui::EventTarget* event_target_;
65 69
66 DISALLOW_COPY_AND_ASSIGN(WindowModalityController); 70 DISALLOW_COPY_AND_ASSIGN(WindowModalityController);
67 }; 71 };
68 72
69 } // namespace wm 73 } // namespace wm
70 74
71 #endif // UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_ 75 #endif // UI_WM_CORE_WINDOW_MODALITY_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698