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 <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 return high_contrast_controller_.get(); | 307 return high_contrast_controller_.get(); |
308 } | 308 } |
309 | 309 |
310 internal::MagnificationController* magnification_controller() { | 310 internal::MagnificationController* magnification_controller() { |
311 return magnification_controller_.get(); | 311 return magnification_controller_.get(); |
312 } | 312 } |
313 | 313 |
314 // TODO(oshima): Remove methods that are moved to RootWindowController. | 314 // TODO(oshima): Remove methods that are moved to RootWindowController. |
315 Launcher* launcher(); | 315 Launcher* launcher(); |
316 | 316 |
317 const ScreenAsh* screen() { return screen_; } | 317 const ScreenAsh* screen() { return screen_.get(); } |
318 | 318 |
319 // Force the shelf to query for it's current visibility state. | 319 // Force the shelf to query for it's current visibility state. |
320 void UpdateShelfVisibility(); | 320 void UpdateShelfVisibility(); |
321 | 321 |
322 // Sets/gets the shelf auto-hide behavior. | 322 // Sets/gets the shelf auto-hide behavior. |
323 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); | 323 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); |
324 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; | 324 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; |
325 | 325 |
326 void SetShelfAlignment(ShelfAlignment alignment); | 326 void SetShelfAlignment(ShelfAlignment alignment); |
327 ShelfAlignment GetShelfAlignment(); | 327 ShelfAlignment GetShelfAlignment(); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 | 404 |
405 // ash::internal::SystemModalContainerEventFilterDelegate overrides: | 405 // ash::internal::SystemModalContainerEventFilterDelegate overrides: |
406 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE; | 406 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE; |
407 | 407 |
408 static Shell* instance_; | 408 static Shell* instance_; |
409 | 409 |
410 // If set before the Shell is initialized, the mouse cursor will be hidden | 410 // If set before the Shell is initialized, the mouse cursor will be hidden |
411 // when the screen is initially created. | 411 // when the screen is initially created. |
412 static bool initially_hide_cursor_; | 412 static bool initially_hide_cursor_; |
413 | 413 |
414 ScreenAsh* screen_; | 414 scoped_ptr<ScreenAsh> screen_; |
415 | 415 |
416 // Active root window. Never becomes NULL during the session. | 416 // Active root window. Never becomes NULL during the session. |
417 aura::RootWindow* active_root_window_; | 417 aura::RootWindow* active_root_window_; |
418 | 418 |
419 // The CompoundEventFilter owned by aura::Env object. | 419 // The CompoundEventFilter owned by aura::Env object. |
420 scoped_ptr<aura::shared::CompoundEventFilter> env_filter_; | 420 scoped_ptr<aura::shared::CompoundEventFilter> env_filter_; |
421 | 421 |
422 std::vector<WindowAndBoundsPair> to_restore_; | 422 std::vector<WindowAndBoundsPair> to_restore_; |
423 | 423 |
424 #if !defined(OS_MACOSX) | 424 #if !defined(OS_MACOSX) |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 493 |
494 // Used by ash/shell. | 494 // Used by ash/shell. |
495 content::BrowserContext* browser_context_; | 495 content::BrowserContext* browser_context_; |
496 | 496 |
497 DISALLOW_COPY_AND_ASSIGN(Shell); | 497 DISALLOW_COPY_AND_ASSIGN(Shell); |
498 }; | 498 }; |
499 | 499 |
500 } // namespace ash | 500 } // namespace ash |
501 | 501 |
502 #endif // ASH_SHELL_H_ | 502 #endif // ASH_SHELL_H_ |
OLD | NEW |