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

Side by Side Diff: ash/wm/system_modal_container_layout_manager.h

Issue 2070163002: Fix "modal isn't modal in multi displays" issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « ash/wm/event_client_impl.cc ('k') | ash/wm/system_modal_container_layout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
6 #define ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 6 #define ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Overridden from aura::WindowObserver: 48 // Overridden from aura::WindowObserver:
49 void OnWindowPropertyChanged(aura::Window* window, 49 void OnWindowPropertyChanged(aura::Window* window,
50 const void* key, 50 const void* key,
51 intptr_t old) override; 51 intptr_t old) override;
52 void OnWindowDestroying(aura::Window* window) override; 52 void OnWindowDestroying(aura::Window* window) override;
53 53
54 // Overridden from keyboard::KeyboardControllerObserver: 54 // Overridden from keyboard::KeyboardControllerObserver:
55 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 55 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
56 56
57 // Can a given |window| receive and handle input events? 57 // True if the window is either contained by the top most modal window,
58 bool CanWindowReceiveEvents(aura::Window* window); 58 // or contained by its transient children.
59 bool IsPartOfActiveModalWindow(aura::Window* window);
59 60
60 // Activates next modal window if any. Returns false if there 61 // Activates next modal window if any. Returns false if there
61 // are no more modal windows in this layout manager. 62 // are no more modal windows in this layout manager.
62 bool ActivateNextModalWindow(); 63 bool ActivateNextModalWindow();
63 64
64 // Creates modal background window, which is a partially-opaque 65 // Creates modal background window, which is a partially-opaque
65 // fullscreen window. If there is already a modal background window, 66 // fullscreen window. If there is already a modal background window,
66 // it will bring it the top. 67 // it will bring it the top.
67 void CreateModalBackground(); 68 void CreateModalBackground();
68 69
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 102
102 // A stack of modal windows. Only the topmost can receive events. 103 // A stack of modal windows. Only the topmost can receive events.
103 std::vector<aura::Window*> modal_windows_; 104 std::vector<aura::Window*> modal_windows_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager); 106 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager);
106 }; 107 };
107 108
108 } // namespace ash 109 } // namespace ash
109 110
110 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 111 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/event_client_impl.cc ('k') | ash/wm/system_modal_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698