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

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: correctly fixed merge conflict Created 7 years, 7 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 void set_browser_context(content::BrowserContext* browser_context) { 416 void set_browser_context(content::BrowserContext* browser_context) {
417 browser_context_ = browser_context; 417 browser_context_ = browser_context;
418 } 418 }
419 419
420 // Initializes the root window to be used for a secondary display. 420 // Initializes the root window to be used for a secondary display.
421 void InitRootWindowForSecondaryDisplay(aura::RootWindow* root); 421 void InitRootWindowForSecondaryDisplay(aura::RootWindow* root);
422 422
423 // Starts the animation that occurs on first login. 423 // Starts the animation that occurs on first login.
424 void DoInitialWorkspaceAnimation(); 424 void DoInitialWorkspaceAnimation();
425 425
426 #if defined(OS_CHROMEOS) 426 #if defined(OS_CHROMEOS) && defined(USE_X11)
427 // TODO(oshima): Move these objects to DisplayController. 427 // TODO(oshima): Move these objects to DisplayController.
428 chromeos::OutputConfigurator* output_configurator() { 428 chromeos::OutputConfigurator* output_configurator() {
429 return output_configurator_.get(); 429 return output_configurator_.get();
430 } 430 }
431 internal::OutputConfiguratorAnimation* output_configurator_animation() { 431 internal::OutputConfiguratorAnimation* output_configurator_animation() {
432 return output_configurator_animation_.get(); 432 return output_configurator_animation_.get();
433 } 433 }
434 internal::DisplayErrorObserver* display_error_observer() { 434 internal::DisplayErrorObserver* display_error_observer() {
435 return display_error_observer_.get(); 435 return display_error_observer_.get();
436 } 436 }
437 #endif // defined(OS_CHROMEOS) 437 #endif // defined(OS_CHROMEOS) && defined(USE_X11)
438 438
439 RootWindowHostFactory* root_window_host_factory() { 439 RootWindowHostFactory* root_window_host_factory() {
440 return root_window_host_factory_.get(); 440 return root_window_host_factory_.get();
441 } 441 }
442 442
443 LauncherModel* launcher_model() { 443 LauncherModel* launcher_model() {
444 return launcher_model_.get(); 444 return launcher_model_.get();
445 } 445 }
446 446
447 // Returns the launcher delegate, creating if necesary. 447 // Returns the launcher delegate, creating if necesary.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 #if !defined(OS_MACOSX) 557 #if !defined(OS_MACOSX)
558 // An event filter that pre-handles global accelerators. 558 // An event filter that pre-handles global accelerators.
559 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_; 559 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_;
560 #endif 560 #endif
561 561
562 // An event filter that pre-handles all key events to send them to an IME. 562 // An event filter that pre-handles all key events to send them to an IME.
563 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_; 563 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_;
564 564
565 scoped_ptr<internal::DisplayManager> display_manager_; 565 scoped_ptr<internal::DisplayManager> display_manager_;
566 566
567 #if defined(OS_CHROMEOS) 567 #if defined(OS_CHROMEOS) && defined(USE_X11)
568 // Controls video output device state. 568 // Controls video output device state.
569 scoped_ptr<chromeos::OutputConfigurator> output_configurator_; 569 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
570 scoped_ptr<internal::OutputConfiguratorAnimation> 570 scoped_ptr<internal::OutputConfiguratorAnimation>
571 output_configurator_animation_; 571 output_configurator_animation_;
572 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_; 572 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_;
573 573
574 // Receives output change events and udpates the display manager. 574 // Receives output change events and udpates the display manager.
575 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_; 575 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_;
576 #endif // defined(OS_CHROMEOS) 576 #endif // defined(OS_CHROMEOS) && defined(USE_X11)
577 577
578 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a 578 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
579 // pointer to vend to test code. 579 // pointer to vend to test code.
580 AshNativeCursorManager* native_cursor_manager_; 580 AshNativeCursorManager* native_cursor_manager_;
581 views::corewm::CursorManager cursor_manager_; 581 views::corewm::CursorManager cursor_manager_;
582 582
583 ObserverList<ShellObserver> observers_; 583 ObserverList<ShellObserver> observers_;
584 584
585 // Used by ash/shell. 585 // Used by ash/shell.
586 content::BrowserContext* browser_context_; 586 content::BrowserContext* browser_context_;
587 587
588 // For testing only: simulate that a modal window is open 588 // For testing only: simulate that a modal window is open
589 bool simulate_modal_window_open_for_testing_; 589 bool simulate_modal_window_open_for_testing_;
590 590
591 DISALLOW_COPY_AND_ASSIGN(Shell); 591 DISALLOW_COPY_AND_ASSIGN(Shell);
592 }; 592 };
593 593
594 } // namespace ash 594 } // namespace ash
595 595
596 #endif // ASH_SHELL_H_ 596 #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