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