| 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 | |
| 276 // Creates a default views::NonClientFrameView for use by windows in the | 272 // Creates a default views::NonClientFrameView for use by windows in the |
| 277 // Ash environment. | 273 // Ash environment. |
| 278 views::NonClientFrameView* CreateDefaultNonClientFrameView( | 274 views::NonClientFrameView* CreateDefaultNonClientFrameView( |
| 279 views::Widget* widget); | 275 views::Widget* widget); |
| 280 | 276 |
| 281 // Sets work area insets of the display containing |window|, pings observers. | 277 // Sets work area insets of the display containing |window|, pings observers. |
| 282 void SetDisplayWorkAreaInsets(aura::Window* window, | 278 void SetDisplayWorkAreaInsets(aura::Window* window, |
| 283 const gfx::Insets& insets); | 279 const gfx::Insets& insets); |
| 284 | 280 |
| 285 // Called when a casting session is started or stopped. | 281 // Called when a casting session is started or stopped. |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 base::ObserverList<ShellObserver> shell_observers_; | 833 base::ObserverList<ShellObserver> shell_observers_; |
| 838 | 834 |
| 839 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 835 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 840 | 836 |
| 841 DISALLOW_COPY_AND_ASSIGN(Shell); | 837 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 842 }; | 838 }; |
| 843 | 839 |
| 844 } // namespace ash | 840 } // namespace ash |
| 845 | 841 |
| 846 #endif // ASH_SHELL_H_ | 842 #endif // ASH_SHELL_H_ |
| OLD | NEW |