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 <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 261 |
262 static Config GetAshConfig(); | 262 static Config GetAshConfig(); |
263 static bool ShouldUseIMEService(); | 263 static bool ShouldUseIMEService(); |
264 | 264 |
265 // Registers all ash related prefs to the given |registry|. | 265 // Registers all ash related prefs to the given |registry|. |
266 static void RegisterPrefs(PrefRegistrySimple* registry); | 266 static void RegisterPrefs(PrefRegistrySimple* registry); |
267 | 267 |
268 // Returns true if simplified display management should be enabled. | 268 // Returns true if simplified display management should be enabled. |
269 // TODO(sky): remove this; temporary until http://crbug.com/718860 is done. | 269 // TODO(sky): remove this; temporary until http://crbug.com/718860 is done. |
270 static bool ShouldEnableSimplifiedDisplayManagement(); | 270 static bool ShouldEnableSimplifiedDisplayManagement(); |
| 271 // Use this variant if you have a Config and the Shell may not have been |
| 272 // initialized yet. |
| 273 static bool ShouldEnableSimplifiedDisplayManagement(ash::Config config); |
271 | 274 |
272 // Creates a default views::NonClientFrameView for use by windows in the | 275 // Creates a default views::NonClientFrameView for use by windows in the |
273 // Ash environment. | 276 // Ash environment. |
274 views::NonClientFrameView* CreateDefaultNonClientFrameView( | 277 views::NonClientFrameView* CreateDefaultNonClientFrameView( |
275 views::Widget* widget); | 278 views::Widget* widget); |
276 | 279 |
277 // Sets work area insets of the display containing |window|, pings observers. | 280 // Sets work area insets of the display containing |window|, pings observers. |
278 void SetDisplayWorkAreaInsets(aura::Window* window, | 281 void SetDisplayWorkAreaInsets(aura::Window* window, |
279 const gfx::Insets& insets); | 282 const gfx::Insets& insets); |
280 | 283 |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 base::ObserverList<ShellObserver> shell_observers_; | 834 base::ObserverList<ShellObserver> shell_observers_; |
832 | 835 |
833 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 836 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
834 | 837 |
835 DISALLOW_COPY_AND_ASSIGN(Shell); | 838 DISALLOW_COPY_AND_ASSIGN(Shell); |
836 }; | 839 }; |
837 | 840 |
838 } // namespace ash | 841 } // namespace ash |
839 | 842 |
840 #endif // ASH_SHELL_H_ | 843 #endif // ASH_SHELL_H_ |
OLD | NEW |