| 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 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; | 53 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; |
| 54 | 54 |
| 55 // Overridden from keyboard::KeyboardControllerObserver: | 55 // Overridden from keyboard::KeyboardControllerObserver: |
| 56 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; | 56 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; |
| 57 void OnKeyboardClosed() override {} |
| 57 | 58 |
| 58 // True if the window is either contained by the top most modal window, | 59 // True if the window is either contained by the top most modal window, |
| 59 // or contained by its transient children. | 60 // or contained by its transient children. |
| 60 bool IsPartOfActiveModalWindow(aura::Window* window); | 61 bool IsPartOfActiveModalWindow(aura::Window* window); |
| 61 | 62 |
| 62 // Activates next modal window if any. Returns false if there | 63 // Activates next modal window if any. Returns false if there |
| 63 // are no more modal windows in this layout manager. | 64 // are no more modal windows in this layout manager. |
| 64 bool ActivateNextModalWindow(); | 65 bool ActivateNextModalWindow(); |
| 65 | 66 |
| 66 // Creates modal background window, which is a partially-opaque | 67 // Creates modal background window, which is a partially-opaque |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 104 |
| 104 // A stack of modal windows. Only the topmost can receive events. | 105 // A stack of modal windows. Only the topmost can receive events. |
| 105 std::vector<aura::Window*> modal_windows_; | 106 std::vector<aura::Window*> modal_windows_; |
| 106 | 107 |
| 107 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager); | 108 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // namespace ash | 111 } // namespace ash |
| 111 | 112 |
| 112 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ | 113 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ |
| OLD | NEW |