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_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 static const aura::Window* GetContainer(const aura::RootWindow* root_window, | 193 static const aura::Window* GetContainer(const aura::RootWindow* root_window, |
194 int container_id); | 194 int container_id); |
195 | 195 |
196 // Returns the list of containers that match |container_id| in | 196 // Returns the list of containers that match |container_id| in |
197 // all root windows. If |priority_root| is given, the container | 197 // all root windows. If |priority_root| is given, the container |
198 // in the |priority_root| will be inserted at the top of the list. | 198 // in the |priority_root| will be inserted at the top of the list. |
199 static std::vector<aura::Window*> GetContainersFromAllRootWindows( | 199 static std::vector<aura::Window*> GetContainersFromAllRootWindows( |
200 int container_id, | 200 int container_id, |
201 aura::RootWindow* priority_root); | 201 aura::RootWindow* priority_root); |
202 | 202 |
203 // True if "launcher per display" feature is enabled. | |
204 static bool IsLauncherPerDisplayEnabled(); | |
205 | |
206 // True if an experimental maximize mode is enabled which forces browser and | 203 // True if an experimental maximize mode is enabled which forces browser and |
207 // application windows to be maximized only. | 204 // application windows to be maximized only. |
208 static bool IsForcedMaximizeMode(); | 205 static bool IsForcedMaximizeMode(); |
209 | 206 |
210 void set_active_root_window(aura::RootWindow* active_root_window) { | 207 void set_active_root_window(aura::RootWindow* active_root_window) { |
211 active_root_window_ = active_root_window; | 208 active_root_window_ = active_root_window; |
212 } | 209 } |
213 | 210 |
214 // Shows the context menu for the background and launcher at | 211 // Shows the context menu for the background and launcher at |
215 // |location_in_screen| (in screen coordinates). | 212 // |location_in_screen| (in screen coordinates). |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 | 596 |
600 // For testing only: simulate that a modal window is open | 597 // For testing only: simulate that a modal window is open |
601 bool simulate_modal_window_open_for_testing_; | 598 bool simulate_modal_window_open_for_testing_; |
602 | 599 |
603 DISALLOW_COPY_AND_ASSIGN(Shell); | 600 DISALLOW_COPY_AND_ASSIGN(Shell); |
604 }; | 601 }; |
605 | 602 |
606 } // namespace ash | 603 } // namespace ash |
607 | 604 |
608 #endif // ASH_SHELL_H_ | 605 #endif // ASH_SHELL_H_ |
OLD | NEW |