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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 class PartialScreenshotEventFilter; | 79 class PartialScreenshotEventFilter; |
80 class ResizeShadowController; | 80 class ResizeShadowController; |
81 class RootWindowLayoutManager; | 81 class RootWindowLayoutManager; |
82 class ScreenDimmer; | 82 class ScreenDimmer; |
83 class ShadowController; | 83 class ShadowController; |
84 class ShelfLayoutManager; | 84 class ShelfLayoutManager; |
85 class ShellContextMenu; | 85 class ShellContextMenu; |
86 class SystemGestureEventFilter; | 86 class SystemGestureEventFilter; |
87 class StackingController; | 87 class StackingController; |
88 class TooltipController; | 88 class TooltipController; |
| 89 class TouchObserverHUD; |
89 class VisibilityController; | 90 class VisibilityController; |
90 class WindowModalityController; | 91 class WindowModalityController; |
91 class WorkspaceController; | 92 class WorkspaceController; |
92 } | 93 } |
93 | 94 |
94 // Shell is a singleton object that presents the Shell API and implements the | 95 // Shell is a singleton object that presents the Shell API and implements the |
95 // RootWindow's delegate interface. | 96 // RootWindow's delegate interface. |
96 // | 97 // |
97 // Upon creation, the Shell sets itself as the RootWindow's delegate, which | 98 // Upon creation, the Shell sets itself as the RootWindow's delegate, which |
98 // takes ownership of the Shell. | 99 // takes ownership of the Shell. |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_; | 362 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_; |
362 | 363 |
363 #if !defined(OS_MACOSX) | 364 #if !defined(OS_MACOSX) |
364 // An event filter that pre-handles global accelerators. | 365 // An event filter that pre-handles global accelerators. |
365 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; | 366 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; |
366 #endif | 367 #endif |
367 | 368 |
368 // An event filter that pre-handles all key events to send them to an IME. | 369 // An event filter that pre-handles all key events to send them to an IME. |
369 scoped_ptr<aura::shared::InputMethodEventFilter> input_method_filter_; | 370 scoped_ptr<aura::shared::InputMethodEventFilter> input_method_filter_; |
370 | 371 |
| 372 // An event filter that silently keeps track of all touch events and controls |
| 373 // a heads-up display. This is enabled only if --ash-touch-hud flag is used. |
| 374 scoped_ptr<internal::TouchObserverHUD> touch_observer_hud_; |
| 375 |
371 // The shelf for managing the launcher and the status widget in non-compact | 376 // The shelf for managing the launcher and the status widget in non-compact |
372 // mode. Shell does not own the shelf. Instead, it is owned by container of | 377 // mode. Shell does not own the shelf. Instead, it is owned by container of |
373 // the status area. | 378 // the status area. |
374 internal::ShelfLayoutManager* shelf_; | 379 internal::ShelfLayoutManager* shelf_; |
375 | 380 |
376 // Manages layout of panels. Owned by PanelContainer. | 381 // Manages layout of panels. Owned by PanelContainer. |
377 internal::PanelLayoutManager* panel_layout_manager_; | 382 internal::PanelLayoutManager* panel_layout_manager_; |
378 | 383 |
379 ObserverList<ShellObserver> observers_; | 384 ObserverList<ShellObserver> observers_; |
380 | 385 |
381 // Owned by aura::RootWindow, cached here for type safety. | 386 // Owned by aura::RootWindow, cached here for type safety. |
382 internal::RootWindowLayoutManager* root_window_layout_; | 387 internal::RootWindowLayoutManager* root_window_layout_; |
383 | 388 |
384 // System tray with clock, Wi-Fi signal, etc. | 389 // System tray with clock, Wi-Fi signal, etc. |
385 scoped_ptr<SystemTray> tray_; | 390 scoped_ptr<SystemTray> tray_; |
386 | 391 |
387 // Used by ash/shell. | 392 // Used by ash/shell. |
388 content::BrowserContext* browser_context_; | 393 content::BrowserContext* browser_context_; |
389 | 394 |
390 DISALLOW_COPY_AND_ASSIGN(Shell); | 395 DISALLOW_COPY_AND_ASSIGN(Shell); |
391 }; | 396 }; |
392 | 397 |
393 } // namespace ash | 398 } // namespace ash |
394 | 399 |
395 #endif // ASH_SHELL_H_ | 400 #endif // ASH_SHELL_H_ |
OLD | NEW |