Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: ash/shell.h

Issue 11363124: Move DisplayManager and DisplayChangeObserverX11 from aura to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix rebase Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/screen_ash.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class UserWallpaperDelegate; 80 class UserWallpaperDelegate;
81 class VideoDetector; 81 class VideoDetector;
82 class WebNotificationTray; 82 class WebNotificationTray;
83 class WindowCycleController; 83 class WindowCycleController;
84 84
85 namespace internal { 85 namespace internal {
86 class AcceleratorFilter; 86 class AcceleratorFilter;
87 class ActivationController; 87 class ActivationController;
88 class AppListController; 88 class AppListController;
89 class CaptureController; 89 class CaptureController;
90 class DisplayChangeObserverX11;
91 class DisplayManager;
90 class DragDropController; 92 class DragDropController;
91 class EventClientImpl; 93 class EventClientImpl;
92 class EventRewriterEventFilter; 94 class EventRewriterEventFilter;
93 class FocusCycler; 95 class FocusCycler;
94 class MagnificationController; 96 class MagnificationController;
95 class MouseCursorEventFilter; 97 class MouseCursorEventFilter;
96 class OutputConfiguratorAnimation; 98 class OutputConfiguratorAnimation;
97 class OverlayEventFilter; 99 class OverlayEventFilter;
98 class ResizeShadowController; 100 class ResizeShadowController;
99 class RootWindowController; 101 class RootWindowController;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // Adds/removes observer. 258 // Adds/removes observer.
257 void AddShellObserver(ShellObserver* observer); 259 void AddShellObserver(ShellObserver* observer);
258 void RemoveShellObserver(ShellObserver* observer); 260 void RemoveShellObserver(ShellObserver* observer);
259 261
260 #if !defined(OS_MACOSX) 262 #if !defined(OS_MACOSX)
261 AcceleratorController* accelerator_controller() { 263 AcceleratorController* accelerator_controller() {
262 return accelerator_controller_.get(); 264 return accelerator_controller_.get();
263 } 265 }
264 #endif // !defined(OS_MACOSX) 266 #endif // !defined(OS_MACOSX)
265 267
268 internal::DisplayManager* display_manager() {
269 return display_manager_.get();
270 }
266 views::corewm::CompoundEventFilter* env_filter() { 271 views::corewm::CompoundEventFilter* env_filter() {
267 return env_filter_.get(); 272 return env_filter_.get();
268 } 273 }
269 internal::TooltipController* tooltip_controller() { 274 internal::TooltipController* tooltip_controller() {
270 return tooltip_controller_.get(); 275 return tooltip_controller_.get();
271 } 276 }
272 internal::EventRewriterEventFilter* event_rewriter_filter() { 277 internal::EventRewriterEventFilter* event_rewriter_filter() {
273 return event_rewriter_filter_.get(); 278 return event_rewriter_filter_.get();
274 } 279 }
275 internal::OverlayEventFilter* overlay_filter() { 280 internal::OverlayEventFilter* overlay_filter() {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 } 320 }
316 321
317 HighContrastController* high_contrast_controller() { 322 HighContrastController* high_contrast_controller() {
318 return high_contrast_controller_.get(); 323 return high_contrast_controller_.get();
319 } 324 }
320 325
321 internal::MagnificationController* magnification_controller() { 326 internal::MagnificationController* magnification_controller() {
322 return magnification_controller_.get(); 327 return magnification_controller_.get();
323 } 328 }
324 329
325 const ScreenAsh* screen() { return screen_; } 330 ScreenAsh* screen() { return screen_; }
326 331
327 // Force the shelf to query for it's current visibility state. 332 // Force the shelf to query for it's current visibility state.
328 void UpdateShelfVisibility(); 333 void UpdateShelfVisibility();
329 334
330 // TODO(oshima): Define an interface to access shelf/launcher 335 // TODO(oshima): Define an interface to access shelf/launcher
331 // state, or just use Launcher. 336 // state, or just use Launcher.
332 337
333 // Sets/gets the shelf auto-hide behavior on |root_window|. 338 // Sets/gets the shelf auto-hide behavior on |root_window|.
334 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, 339 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior,
335 aura::RootWindow* root_window); 340 aura::RootWindow* root_window);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; 517 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_;
513 #endif 518 #endif
514 519
515 // An event filter that pre-handles all key events to send them to an IME. 520 // An event filter that pre-handles all key events to send them to an IME.
516 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_; 521 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_;
517 522
518 // An event filter that silently keeps track of all touch events and controls 523 // An event filter that silently keeps track of all touch events and controls
519 // a heads-up display. This is enabled only if --ash-touch-hud flag is used. 524 // a heads-up display. This is enabled only if --ash-touch-hud flag is used.
520 scoped_ptr<internal::TouchObserverHUD> touch_observer_hud_; 525 scoped_ptr<internal::TouchObserverHUD> touch_observer_hud_;
521 526
527 scoped_ptr<internal::DisplayManager> display_manager_;
528
522 #if defined(OS_CHROMEOS) 529 #if defined(OS_CHROMEOS)
523 // Controls video output device state. 530 // Controls video output device state.
524 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; 531 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
525 scoped_ptr<internal::OutputConfiguratorAnimation> 532 scoped_ptr<internal::OutputConfiguratorAnimation>
526 output_configurator_animation_; 533 output_configurator_animation_;
534
535 // Receives output change events and udpates the display manager.
536 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_;
527 #endif // defined(OS_CHROMEOS) 537 #endif // defined(OS_CHROMEOS)
528 538
529 CursorManager cursor_manager_; 539 CursorManager cursor_manager_;
530 540
531 ObserverList<ShellObserver> observers_; 541 ObserverList<ShellObserver> observers_;
532 542
533 // Used by ash/shell. 543 // Used by ash/shell.
534 content::BrowserContext* browser_context_; 544 content::BrowserContext* browser_context_;
535 545
536 // For testing only: simulate that a modal window is open 546 // For testing only: simulate that a modal window is open
537 bool simulate_modal_window_open_for_testing_; 547 bool simulate_modal_window_open_for_testing_;
538 548
539 DISALLOW_COPY_AND_ASSIGN(Shell); 549 DISALLOW_COPY_AND_ASSIGN(Shell);
540 }; 550 };
541 551
542 } // namespace ash 552 } // namespace ash
543 553
544 #endif // ASH_SHELL_H_ 554 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/screen_ash.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698