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