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

Side by Side Diff: ash/shell.h

Issue 13947019: Clean up selected ash defines for MessagePumpLinux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 7 years, 8 months 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/display/display_controller.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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 void set_browser_context(content::BrowserContext* browser_context) { 414 void set_browser_context(content::BrowserContext* browser_context) {
415 browser_context_ = browser_context; 415 browser_context_ = browser_context;
416 } 416 }
417 417
418 // Initializes the root window to be used for a secondary display. 418 // Initializes the root window to be used for a secondary display.
419 void InitRootWindowForSecondaryDisplay(aura::RootWindow* root); 419 void InitRootWindowForSecondaryDisplay(aura::RootWindow* root);
420 420
421 // Starts the animation that occurs on first login. 421 // Starts the animation that occurs on first login.
422 void DoInitialWorkspaceAnimation(); 422 void DoInitialWorkspaceAnimation();
423 423
424 #if defined(OS_CHROMEOS) 424 #if defined(OS_CHROMEOS) && defined(USE_X11)
425 // TODO(oshima): Move these objects to DisplayController. 425 // TODO(oshima): Move these objects to DisplayController.
426 chromeos::OutputConfigurator* output_configurator() { 426 chromeos::OutputConfigurator* output_configurator() {
427 return output_configurator_.get(); 427 return output_configurator_.get();
428 } 428 }
429 internal::OutputConfiguratorAnimation* output_configurator_animation() { 429 internal::OutputConfiguratorAnimation* output_configurator_animation() {
430 return output_configurator_animation_.get(); 430 return output_configurator_animation_.get();
431 } 431 }
432 internal::DisplayErrorObserver* display_error_observer() { 432 internal::DisplayErrorObserver* display_error_observer() {
433 return display_error_observer_.get(); 433 return display_error_observer_.get();
434 } 434 }
435 #endif // defined(OS_CHROMEOS) 435 #endif // defined(OS_CHROMEOS)
sadrul 2013/04/09 20:05:42 && defined(USE_X11) here too. sorry I missed this
rjkroege 2013/04/09 20:51:42 Done.
436 436
437 RootWindowHostFactory* root_window_host_factory() { 437 RootWindowHostFactory* root_window_host_factory() {
438 return root_window_host_factory_.get(); 438 return root_window_host_factory_.get();
439 } 439 }
440 440
441 LauncherModel* launcher_model() { 441 LauncherModel* launcher_model() {
442 return launcher_model_.get(); 442 return launcher_model_.get();
443 } 443 }
444 444
445 // Returns the launcher delegate, creating if necesary. 445 // Returns the launcher delegate, creating if necesary.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 #if !defined(OS_MACOSX) 553 #if !defined(OS_MACOSX)
554 // An event filter that pre-handles global accelerators. 554 // An event filter that pre-handles global accelerators.
555 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; 555 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_;
556 #endif 556 #endif
557 557
558 // An event filter that pre-handles all key events to send them to an IME. 558 // An event filter that pre-handles all key events to send them to an IME.
559 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_; 559 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_;
560 560
561 scoped_ptr<internal::DisplayManager> display_manager_; 561 scoped_ptr<internal::DisplayManager> display_manager_;
562 562
563 #if defined(OS_CHROMEOS) 563 #if defined(OS_CHROMEOS) && defined(USE_X11)
564 // Controls video output device state. 564 // Controls video output device state.
565 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; 565 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
566 scoped_ptr<internal::OutputConfiguratorAnimation> 566 scoped_ptr<internal::OutputConfiguratorAnimation>
567 output_configurator_animation_; 567 output_configurator_animation_;
568 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_; 568 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_;
569 569
570 // Receives output change events and udpates the display manager. 570 // Receives output change events and udpates the display manager.
571 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_; 571 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_;
572 #endif // defined(OS_CHROMEOS) 572 #endif // defined(OS_CHROMEOS)
sadrul 2013/04/09 20:05:42 ditto
rjkroege 2013/04/09 20:51:42 Done.
573 573
574 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a 574 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
575 // pointer to vend to test code. 575 // pointer to vend to test code.
576 AshNativeCursorManager* native_cursor_manager_; 576 AshNativeCursorManager* native_cursor_manager_;
577 views::corewm::CursorManager cursor_manager_; 577 views::corewm::CursorManager cursor_manager_;
578 578
579 ObserverList<ShellObserver> observers_; 579 ObserverList<ShellObserver> observers_;
580 580
581 // Used by ash/shell. 581 // Used by ash/shell.
582 content::BrowserContext* browser_context_; 582 content::BrowserContext* browser_context_;
583 583
584 // For testing only: simulate that a modal window is open 584 // For testing only: simulate that a modal window is open
585 bool simulate_modal_window_open_for_testing_; 585 bool simulate_modal_window_open_for_testing_;
586 586
587 DISALLOW_COPY_AND_ASSIGN(Shell); 587 DISALLOW_COPY_AND_ASSIGN(Shell);
588 }; 588 };
589 589
590 } // namespace ash 590 } // namespace ash
591 591
592 #endif // ASH_SHELL_H_ 592 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/display/display_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698