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

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

Issue 2323823004: Add action for each button on opt-in IME menu. (Closed)
Patch Set: Created 4 years, 3 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 ASH_COMMON_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 5 #ifndef ASH_COMMON_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
6 #define ASH_COMMON_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 6 #define ASH_COMMON_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void SetChildBounds(WmWindow* child, 42 void SetChildBounds(WmWindow* child,
43 const gfx::Rect& requested_bounds) override; 43 const gfx::Rect& requested_bounds) override;
44 44
45 // Overridden from WmWindowObserver: 45 // Overridden from WmWindowObserver:
46 void OnWindowPropertyChanged(WmWindow* window, 46 void OnWindowPropertyChanged(WmWindow* window,
47 WmWindowProperty property) override; 47 WmWindowProperty property) override;
48 void OnWindowVisibilityChanged(WmWindow* window, bool visible) override; 48 void OnWindowVisibilityChanged(WmWindow* window, bool visible) override;
49 49
50 // Overridden from keyboard::KeyboardControllerObserver: 50 // Overridden from keyboard::KeyboardControllerObserver:
51 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 51 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
52 void OnKeyboardHidden() override;
52 53
53 // True if the window is either contained by the top most modal window, 54 // True if the window is either contained by the top most modal window,
54 // or contained by its transient children. 55 // or contained by its transient children.
55 bool IsPartOfActiveModalWindow(WmWindow* window); 56 bool IsPartOfActiveModalWindow(WmWindow* window);
56 57
57 // Activates next modal window if any. Returns false if there 58 // Activates next modal window if any. Returns false if there
58 // are no more modal windows in this layout manager. 59 // are no more modal windows in this layout manager.
59 bool ActivateNextModalWindow(); 60 bool ActivateNextModalWindow();
60 61
61 // Creates modal background window, which is a partially-opaque 62 // Creates modal background window, which is a partially-opaque
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Windows contained in this set are centered. Windows are automatically 106 // Windows contained in this set are centered. Windows are automatically
106 // added to this based on IsBoundsCentered(). 107 // added to this based on IsBoundsCentered().
107 std::set<const WmWindow*> windows_to_center_; 108 std::set<const WmWindow*> windows_to_center_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager); 110 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager);
110 }; 111 };
111 112
112 } // namespace ash 113 } // namespace ash
113 114
114 #endif // ASH_COMMON_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 115 #endif // ASH_COMMON_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698