| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |