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

Side by Side Diff: ash/shell.cc

Issue 10201014: Implement High Contrast mode for Chrome OS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove extra define guard Created 8 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
« no previous file with comments | « ash/shell.h ('k') | chrome/browser/chrome_browser_main_extra_parts_ash.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 #include "ash/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "ash/accelerators/focus_manager_factory.h" 10 #include "ash/accelerators/focus_manager_factory.h"
11 #include "ash/ash_switches.h" 11 #include "ash/ash_switches.h"
12 #include "ash/desktop_background/desktop_background_controller.h" 12 #include "ash/desktop_background/desktop_background_controller.h"
13 #include "ash/desktop_background/desktop_background_resources.h" 13 #include "ash/desktop_background/desktop_background_resources.h"
14 #include "ash/desktop_background/desktop_background_view.h" 14 #include "ash/desktop_background/desktop_background_view.h"
15 #include "ash/drag_drop/drag_drop_controller.h" 15 #include "ash/drag_drop/drag_drop_controller.h"
16 #include "ash/focus_cycler.h" 16 #include "ash/focus_cycler.h"
17 #include "ash/high_contrast/high_contrast_controller.h"
17 #include "ash/launcher/launcher.h" 18 #include "ash/launcher/launcher.h"
18 #include "ash/magnifier/magnification_controller.h" 19 #include "ash/magnifier/magnification_controller.h"
19 #include "ash/monitor/monitor_controller.h" 20 #include "ash/monitor/monitor_controller.h"
20 #include "ash/monitor/multi_monitor_manager.h" 21 #include "ash/monitor/multi_monitor_manager.h"
21 #include "ash/screen_ash.h" 22 #include "ash/screen_ash.h"
22 #include "ash/shell_context_menu.h" 23 #include "ash/shell_context_menu.h"
23 #include "ash/shell_delegate.h" 24 #include "ash/shell_delegate.h"
24 #include "ash/shell_factory.h" 25 #include "ash/shell_factory.h"
25 #include "ash/shell_window_ids.h" 26 #include "ash/shell_window_ids.h"
26 #include "ash/system/bluetooth/bluetooth_observer.h" 27 #include "ash/system/bluetooth/bluetooth_observer.h"
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 window_modality_controller_.reset(new internal::WindowModalityController); 748 window_modality_controller_.reset(new internal::WindowModalityController);
748 AddRootWindowEventFilter(window_modality_controller_.get()); 749 AddRootWindowEventFilter(window_modality_controller_.get());
749 750
750 visibility_controller_.reset(new internal::VisibilityController); 751 visibility_controller_.reset(new internal::VisibilityController);
751 752
752 tooltip_controller_.reset(new internal::TooltipController); 753 tooltip_controller_.reset(new internal::TooltipController);
753 AddRootWindowEventFilter(tooltip_controller_.get()); 754 AddRootWindowEventFilter(tooltip_controller_.get());
754 755
755 drag_drop_controller_.reset(new internal::DragDropController); 756 drag_drop_controller_.reset(new internal::DragDropController);
756 magnification_controller_.reset(new internal::MagnificationController); 757 magnification_controller_.reset(new internal::MagnificationController);
758 high_contrast_controller_.reset(new HighContrastController);
757 power_button_controller_.reset(new PowerButtonController); 759 power_button_controller_.reset(new PowerButtonController);
758 AddShellObserver(power_button_controller_.get()); 760 AddShellObserver(power_button_controller_.get());
759 video_detector_.reset(new VideoDetector); 761 video_detector_.reset(new VideoDetector);
760 window_cycle_controller_.reset(new WindowCycleController); 762 window_cycle_controller_.reset(new WindowCycleController);
761 monitor_controller_.reset(new internal::MonitorController); 763 monitor_controller_.reset(new internal::MonitorController);
762 screen_dimmer_.reset(new internal::ScreenDimmer); 764 screen_dimmer_.reset(new internal::ScreenDimmer);
763 765
764 views::FocusManagerFactory::Install(new AshFocusManagerFactory); 766 views::FocusManagerFactory::Install(new AshFocusManagerFactory);
765 } 767 }
766 768
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 panel_container->SetLayoutManager(panel_layout_manager_); 960 panel_container->SetLayoutManager(panel_layout_manager_);
959 } 961 }
960 } 962 }
961 963
962 void Shell::DisableWorkspaceGridLayout() { 964 void Shell::DisableWorkspaceGridLayout() {
963 if (workspace_controller_.get()) 965 if (workspace_controller_.get())
964 workspace_controller_->workspace_manager()->set_grid_size(0); 966 workspace_controller_->workspace_manager()->set_grid_size(0);
965 } 967 }
966 968
967 } // namespace ash 969 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | chrome/browser/chrome_browser_main_extra_parts_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698