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

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: 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 class UserWallpaperDelegate; 78 class UserWallpaperDelegate;
79 class VideoDetector; 79 class VideoDetector;
80 class WebNotificationTray; 80 class WebNotificationTray;
81 class WindowCycleController; 81 class WindowCycleController;
82 82
83 namespace internal { 83 namespace internal {
84 class AcceleratorFilter; 84 class AcceleratorFilter;
85 class ActivationController; 85 class ActivationController;
86 class AppListController; 86 class AppListController;
87 class CaptureController; 87 class CaptureController;
88 class DisplayChangeObserverX11;
89 class DisplayManager;
88 class DragDropController; 90 class DragDropController;
89 class EventClientImpl; 91 class EventClientImpl;
90 class EventRewriterEventFilter; 92 class EventRewriterEventFilter;
91 class FocusCycler; 93 class FocusCycler;
92 class MagnificationController; 94 class MagnificationController;
93 class MouseCursorEventFilter; 95 class MouseCursorEventFilter;
94 class OutputConfiguratorAnimation; 96 class OutputConfiguratorAnimation;
95 class OverlayEventFilter; 97 class OverlayEventFilter;
96 class ResizeShadowController; 98 class ResizeShadowController;
97 class RootWindowController; 99 class RootWindowController;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // Adds/removes observer. 262 // Adds/removes observer.
261 void AddShellObserver(ShellObserver* observer); 263 void AddShellObserver(ShellObserver* observer);
262 void RemoveShellObserver(ShellObserver* observer); 264 void RemoveShellObserver(ShellObserver* observer);
263 265
264 #if !defined(OS_MACOSX) 266 #if !defined(OS_MACOSX)
265 AcceleratorController* accelerator_controller() { 267 AcceleratorController* accelerator_controller() {
266 return accelerator_controller_.get(); 268 return accelerator_controller_.get();
267 } 269 }
268 #endif // !defined(OS_MACOSX) 270 #endif // !defined(OS_MACOSX)
269 271
272 internal::DisplayManager* display_manager() {
273 return display_manager_.get();
274 }
270 aura::shared::CompoundEventFilter* env_filter() { 275 aura::shared::CompoundEventFilter* env_filter() {
271 return env_filter_.get(); 276 return env_filter_.get();
272 } 277 }
273 internal::TooltipController* tooltip_controller() { 278 internal::TooltipController* tooltip_controller() {
274 return tooltip_controller_.get(); 279 return tooltip_controller_.get();
275 } 280 }
276 internal::EventRewriterEventFilter* event_rewriter_filter() { 281 internal::EventRewriterEventFilter* event_rewriter_filter() {
277 return event_rewriter_filter_.get(); 282 return event_rewriter_filter_.get();
278 } 283 }
279 internal::OverlayEventFilter* overlay_filter() { 284 internal::OverlayEventFilter* overlay_filter() {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 } 324 }
320 325
321 HighContrastController* high_contrast_controller() { 326 HighContrastController* high_contrast_controller() {
322 return high_contrast_controller_.get(); 327 return high_contrast_controller_.get();
323 } 328 }
324 329
325 internal::MagnificationController* magnification_controller() { 330 internal::MagnificationController* magnification_controller() {
326 return magnification_controller_.get(); 331 return magnification_controller_.get();
327 } 332 }
328 333
329 const ScreenAsh* screen() { return screen_; } 334 ScreenAsh* screen() { return screen_; }
330 335
331 // Force the shelf to query for it's current visibility state. 336 // Force the shelf to query for it's current visibility state.
332 void UpdateShelfVisibility(); 337 void UpdateShelfVisibility();
333 338
334 // TODO(oshima): Define an interface to access shelf/launcher 339 // TODO(oshima): Define an interface to access shelf/launcher
335 // state, or just use Launcher. 340 // state, or just use Launcher.
336 341
337 // Sets/gets the shelf auto-hide behavior on |root_window|. 342 // Sets/gets the shelf auto-hide behavior on |root_window|.
338 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, 343 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior,
339 aura::RootWindow* root_window); 344 aura::RootWindow* root_window);
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; 514 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_;
510 #endif 515 #endif
511 516
512 // An event filter that pre-handles all key events to send them to an IME. 517 // An event filter that pre-handles all key events to send them to an IME.
513 scoped_ptr<aura::shared::InputMethodEventFilter> input_method_filter_; 518 scoped_ptr<aura::shared::InputMethodEventFilter> input_method_filter_;
514 519
515 // An event filter that silently keeps track of all touch events and controls 520 // An event filter that silently keeps track of all touch events and controls
516 // a heads-up display. This is enabled only if --ash-touch-hud flag is used. 521 // a heads-up display. This is enabled only if --ash-touch-hud flag is used.
517 scoped_ptr<internal::TouchObserverHUD> touch_observer_hud_; 522 scoped_ptr<internal::TouchObserverHUD> touch_observer_hud_;
518 523
524 scoped_ptr<internal::DisplayManager> display_manager_;
525
519 #if defined(OS_CHROMEOS) 526 #if defined(OS_CHROMEOS)
520 // Controls video output device state. 527 // Controls video output device state.
521 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; 528 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
522 scoped_ptr<internal::OutputConfiguratorAnimation> 529 scoped_ptr<internal::OutputConfiguratorAnimation>
523 output_configurator_animation_; 530 output_configurator_animation_;
531
532 // Recieves output change events and udpates the display manager.
Ben Goodger (Google) 2012/11/12 21:41:01 Receives
oshima 2012/11/13 17:49:37 Done.
533 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_;
524 #endif // defined(OS_CHROMEOS) 534 #endif // defined(OS_CHROMEOS)
525 535
526 CursorManager cursor_manager_; 536 CursorManager cursor_manager_;
527 537
528 ObserverList<ShellObserver> observers_; 538 ObserverList<ShellObserver> observers_;
529 539
530 // Used by ash/shell. 540 // Used by ash/shell.
531 content::BrowserContext* browser_context_; 541 content::BrowserContext* browser_context_;
532 542
533 // For testing only: simulate that a modal window is open 543 // For testing only: simulate that a modal window is open
534 bool simulate_modal_window_open_for_testing_; 544 bool simulate_modal_window_open_for_testing_;
535 545
536 DISALLOW_COPY_AND_ASSIGN(Shell); 546 DISALLOW_COPY_AND_ASSIGN(Shell);
537 }; 547 };
538 548
539 } // namespace ash 549 } // namespace ash
540 550
541 #endif // ASH_SHELL_H_ 551 #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