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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 namespace internal { | 77 namespace internal { |
78 class AcceleratorFilter; | 78 class AcceleratorFilter; |
79 class ActivationController; | 79 class ActivationController; |
80 class AppListController; | 80 class AppListController; |
81 class CaptureController; | 81 class CaptureController; |
82 class DragDropController; | 82 class DragDropController; |
83 class FocusCycler; | 83 class FocusCycler; |
84 class KeyRewriterEventFilter; | 84 class KeyRewriterEventFilter; |
85 class MagnificationController; | 85 class MagnificationController; |
86 class MonitorController; | 86 class DisplayController; |
87 class MouseCursorEventFilter; | 87 class MouseCursorEventFilter; |
88 class PanelLayoutManager; | 88 class PanelLayoutManager; |
89 class PartialScreenshotEventFilter; | 89 class PartialScreenshotEventFilter; |
90 class ResizeShadowController; | 90 class ResizeShadowController; |
91 class RootWindowController; | 91 class RootWindowController; |
92 class RootWindowLayoutManager; | 92 class RootWindowLayoutManager; |
93 class ShadowController; | 93 class ShadowController; |
94 class ShelfLayoutManager; | 94 class ShelfLayoutManager; |
95 class ShellContextMenu; | 95 class ShellContextMenu; |
96 class SlowAnimationEventFilter; | 96 class SlowAnimationEventFilter; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 bool IsModalWindowOpen() const; | 212 bool IsModalWindowOpen() const; |
213 | 213 |
214 // Creates a default views::NonClientFrameView for use by windows in the | 214 // Creates a default views::NonClientFrameView for use by windows in the |
215 // Ash environment. | 215 // Ash environment. |
216 views::NonClientFrameView* CreateDefaultNonClientFrameView( | 216 views::NonClientFrameView* CreateDefaultNonClientFrameView( |
217 views::Widget* widget); | 217 views::Widget* widget); |
218 | 218 |
219 // Rotates focus through containers that can receive focus. | 219 // Rotates focus through containers that can receive focus. |
220 void RotateFocus(Direction direction); | 220 void RotateFocus(Direction direction); |
221 | 221 |
222 // Sets the work area insets of the monitor that contains |window|, | 222 // Sets the work area insets of the display that contains |window|, |
223 // this notifies observers too. | 223 // this notifies observers too. |
224 // TODO(sky): this no longer really replicates what happens and is unreliable. | 224 // TODO(sky): this no longer really replicates what happens and is unreliable. |
225 // Remove this. | 225 // Remove this. |
226 void SetMonitorWorkAreaInsets(aura::Window* window, | 226 void SetDisplayWorkAreaInsets(aura::Window* window, |
227 const gfx::Insets& insets); | 227 const gfx::Insets& insets); |
228 | 228 |
229 // Called when the user logs in. | 229 // Called when the user logs in. |
230 void OnLoginStateChanged(user::LoginStatus status); | 230 void OnLoginStateChanged(user::LoginStatus status); |
231 | 231 |
232 // Called when the application is exiting. | 232 // Called when the application is exiting. |
233 void OnAppTerminating(); | 233 void OnAppTerminating(); |
234 | 234 |
235 // Called when the screen is locked (after the lock window is visible) or | 235 // Called when the screen is locked (after the lock window is visible) or |
236 // unlocked. | 236 // unlocked. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 } | 272 } |
273 VideoDetector* video_detector() { | 273 VideoDetector* video_detector() { |
274 return video_detector_.get(); | 274 return video_detector_.get(); |
275 } | 275 } |
276 WindowCycleController* window_cycle_controller() { | 276 WindowCycleController* window_cycle_controller() { |
277 return window_cycle_controller_.get(); | 277 return window_cycle_controller_.get(); |
278 } | 278 } |
279 internal::FocusCycler* focus_cycler() { | 279 internal::FocusCycler* focus_cycler() { |
280 return focus_cycler_.get(); | 280 return focus_cycler_.get(); |
281 } | 281 } |
282 internal::MonitorController* monitor_controller() { | 282 internal::DisplayController* display_controller() { |
283 return monitor_controller_.get(); | 283 return display_controller_.get(); |
284 } | 284 } |
285 | 285 |
286 ShellDelegate* delegate() { return delegate_.get(); } | 286 ShellDelegate* delegate() { return delegate_.get(); } |
287 | 287 |
288 UserWallpaperDelegate* user_wallpaper_delegate() { | 288 UserWallpaperDelegate* user_wallpaper_delegate() { |
289 return user_wallpaper_delegate_.get(); | 289 return user_wallpaper_delegate_.get(); |
290 } | 290 } |
291 | 291 |
292 HighContrastController* high_contrast_controller() { | 292 HighContrastController* high_contrast_controller() { |
293 return high_contrast_controller_.get(); | 293 return high_contrast_controller_.get(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 // Made available for tests. | 339 // Made available for tests. |
340 internal::ShadowController* shadow_controller() { | 340 internal::ShadowController* shadow_controller() { |
341 return shadow_controller_.get(); | 341 return shadow_controller_.get(); |
342 } | 342 } |
343 | 343 |
344 content::BrowserContext* browser_context() { return browser_context_; } | 344 content::BrowserContext* browser_context() { return browser_context_; } |
345 void set_browser_context(content::BrowserContext* browser_context) { | 345 void set_browser_context(content::BrowserContext* browser_context) { |
346 browser_context_ = browser_context; | 346 browser_context_ = browser_context; |
347 } | 347 } |
348 | 348 |
349 // Initializes the root window to be used for a secondary monitor. | 349 // Initializes the root window to be used for a secondary display. |
350 void InitRootWindowForSecondaryMonitor(aura::RootWindow* root); | 350 void InitRootWindowForSecondaryDisplay(aura::RootWindow* root); |
351 | 351 |
352 #if defined(OS_CHROMEOS) | 352 #if defined(OS_CHROMEOS) |
353 chromeos::OutputConfigurator* output_configurator() { | 353 chromeos::OutputConfigurator* output_configurator() { |
354 return output_configurator_.get(); | 354 return output_configurator_.get(); |
355 } | 355 } |
356 #endif // defined(OS_CHROMEOS) | 356 #endif // defined(OS_CHROMEOS) |
357 | 357 |
358 private: | 358 private: |
359 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); | 359 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); |
360 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); | 360 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_; | 422 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_; |
423 scoped_ptr<internal::ShadowController> shadow_controller_; | 423 scoped_ptr<internal::ShadowController> shadow_controller_; |
424 scoped_ptr<internal::TooltipController> tooltip_controller_; | 424 scoped_ptr<internal::TooltipController> tooltip_controller_; |
425 scoped_ptr<internal::VisibilityController> visibility_controller_; | 425 scoped_ptr<internal::VisibilityController> visibility_controller_; |
426 scoped_ptr<DesktopBackgroundController> desktop_background_controller_; | 426 scoped_ptr<DesktopBackgroundController> desktop_background_controller_; |
427 scoped_ptr<PowerButtonController> power_button_controller_; | 427 scoped_ptr<PowerButtonController> power_button_controller_; |
428 scoped_ptr<UserActivityDetector> user_activity_detector_; | 428 scoped_ptr<UserActivityDetector> user_activity_detector_; |
429 scoped_ptr<VideoDetector> video_detector_; | 429 scoped_ptr<VideoDetector> video_detector_; |
430 scoped_ptr<WindowCycleController> window_cycle_controller_; | 430 scoped_ptr<WindowCycleController> window_cycle_controller_; |
431 scoped_ptr<internal::FocusCycler> focus_cycler_; | 431 scoped_ptr<internal::FocusCycler> focus_cycler_; |
432 scoped_ptr<internal::MonitorController> monitor_controller_; | 432 scoped_ptr<internal::DisplayController> display_controller_; |
433 scoped_ptr<HighContrastController> high_contrast_controller_; | 433 scoped_ptr<HighContrastController> high_contrast_controller_; |
434 scoped_ptr<internal::MagnificationController> magnification_controller_; | 434 scoped_ptr<internal::MagnificationController> magnification_controller_; |
435 scoped_ptr<aura::FocusManager> focus_manager_; | 435 scoped_ptr<aura::FocusManager> focus_manager_; |
436 scoped_ptr<aura::client::UserActionClient> user_action_client_; | 436 scoped_ptr<aura::client::UserActionClient> user_action_client_; |
437 scoped_ptr<internal::MouseCursorEventFilter> mouse_cursor_filter_; | 437 scoped_ptr<internal::MouseCursorEventFilter> mouse_cursor_filter_; |
438 | 438 |
439 // An event filter that rewrites or drops a key event. | 439 // An event filter that rewrites or drops a key event. |
440 scoped_ptr<internal::KeyRewriterEventFilter> key_rewriter_filter_; | 440 scoped_ptr<internal::KeyRewriterEventFilter> key_rewriter_filter_; |
441 | 441 |
442 // An event filter that pre-handles key events while the partial | 442 // An event filter that pre-handles key events while the partial |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 | 482 |
483 // Used by ash/shell. | 483 // Used by ash/shell. |
484 content::BrowserContext* browser_context_; | 484 content::BrowserContext* browser_context_; |
485 | 485 |
486 DISALLOW_COPY_AND_ASSIGN(Shell); | 486 DISALLOW_COPY_AND_ASSIGN(Shell); |
487 }; | 487 }; |
488 | 488 |
489 } // namespace ash | 489 } // namespace ash |
490 | 490 |
491 #endif // ASH_SHELL_H_ | 491 #endif // ASH_SHELL_H_ |
OLD | NEW |