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

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

Issue 2098183002: Make system modal check more strict (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed cut Created 4 years, 5 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 | « no previous file | 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void OnWindowAddedToLayout(aura::Window* child) override; 43 void OnWindowAddedToLayout(aura::Window* child) override;
44 void OnWillRemoveWindowFromLayout(aura::Window* child) override; 44 void OnWillRemoveWindowFromLayout(aura::Window* child) override;
45 void SetChildBounds(aura::Window* child, 45 void SetChildBounds(aura::Window* child,
46 const gfx::Rect& requested_bounds) override; 46 const gfx::Rect& requested_bounds) override;
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 54
54 // Overridden from keyboard::KeyboardControllerObserver: 55 // Overridden from keyboard::KeyboardControllerObserver:
55 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 56 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
56 57
57 // True if the window is either contained by the top most modal window, 58 // True if the window is either contained by the top most modal window,
58 // or contained by its transient children. 59 // or contained by its transient children.
59 bool IsPartOfActiveModalWindow(aura::Window* window); 60 bool IsPartOfActiveModalWindow(aura::Window* window);
60 61
61 // Activates next modal window if any. Returns false if there 62 // Activates next modal window if any. Returns false if there
62 // are no more modal windows in this layout manager. 63 // are no more modal windows in this layout manager.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 103
103 // A stack of modal windows. Only the topmost can receive events. 104 // A stack of modal windows. Only the topmost can receive events.
104 std::vector<aura::Window*> modal_windows_; 105 std::vector<aura::Window*> modal_windows_;
105 106
106 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager); 107 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager);
107 }; 108 };
108 109
109 } // namespace ash 110 } // namespace ash
110 111
111 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 112 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/system_modal_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698