| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // Rotates focus through containers that can receive focus. | 166 // Rotates focus through containers that can receive focus. |
| 167 void RotateFocus(Direction direction); | 167 void RotateFocus(Direction direction); |
| 168 | 168 |
| 169 // Sets the work area insets of the monitor that contains |window|, | 169 // Sets the work area insets of the monitor that contains |window|, |
| 170 // this notifies observers too. | 170 // this notifies observers too. |
| 171 // TODO(sky): this no longer really replicates what happens and is unreliable. | 171 // TODO(sky): this no longer really replicates what happens and is unreliable. |
| 172 // Remove this. | 172 // Remove this. |
| 173 void SetMonitorWorkAreaInsets(aura::Window* window, | 173 void SetMonitorWorkAreaInsets(aura::Window* window, |
| 174 const gfx::Insets& insets); | 174 const gfx::Insets& insets); |
| 175 | 175 |
| 176 // Called when the user logs in. |
| 177 void OnLoginStateChange(bool logged_in, bool is_guest); |
| 178 |
| 179 // Called when the application is exiting. |
| 180 void OnExit(); |
| 181 |
| 182 // Called when the screen is locked (after the lock window is visible) or |
| 183 // unlocked. |
| 184 void OnLockStateChange(bool locked); |
| 185 |
| 176 // Initializes |launcher_|. Does nothing if it's already initialized. | 186 // Initializes |launcher_|. Does nothing if it's already initialized. |
| 177 void CreateLauncher(); | 187 void CreateLauncher(); |
| 178 | 188 |
| 179 // Adds/removes observer. | 189 // Adds/removes observer. |
| 180 void AddShellObserver(ShellObserver* observer); | 190 void AddShellObserver(ShellObserver* observer); |
| 181 void RemoveShellObserver(ShellObserver* observer); | 191 void RemoveShellObserver(ShellObserver* observer); |
| 182 | 192 |
| 183 #if !defined(OS_MACOSX) | 193 #if !defined(OS_MACOSX) |
| 184 AcceleratorController* accelerator_controller() { | 194 AcceleratorController* accelerator_controller() { |
| 185 return accelerator_controller_.get(); | 195 return accelerator_controller_.get(); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 369 |
| 360 // Used by ash/shell. | 370 // Used by ash/shell. |
| 361 content::BrowserContext* browser_context_; | 371 content::BrowserContext* browser_context_; |
| 362 | 372 |
| 363 DISALLOW_COPY_AND_ASSIGN(Shell); | 373 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 364 }; | 374 }; |
| 365 | 375 |
| 366 } // namespace ash | 376 } // namespace ash |
| 367 | 377 |
| 368 #endif // ASH_SHELL_H_ | 378 #endif // ASH_SHELL_H_ |
| OLD | NEW |