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

Unified 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: Code review fix 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 side-by-side diff with in-line comments
Download patch
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index c0a555f40681e5d46a5b04c2d86df0c626e18f93..15f28d3e2ad65fb17dac4ac57b949f9236f8b15f 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -13,6 +13,7 @@
#include "ash/desktop_background/desktop_background_view.h"
#include "ash/drag_drop/drag_drop_controller.h"
#include "ash/focus_cycler.h"
+#include "ash/high_contrast/high_contrast_controller.h"
#include "ash/launcher/launcher.h"
#include "ash/magnifier/magnification_controller.h"
#include "ash/monitor/monitor_controller.h"
@@ -738,12 +739,15 @@ void Shell::Init() {
drag_drop_controller_.reset(new internal::DragDropController);
magnification_controller_.reset(new internal::MagnificationController);
+ high_contrast_controller_.reset(new internal::HighContrastController);
power_button_controller_.reset(new PowerButtonController);
AddShellObserver(power_button_controller_.get());
video_detector_.reset(new VideoDetector);
window_cycle_controller_.reset(new WindowCycleController);
monitor_controller_.reset(new internal::MonitorController);
screen_dimmer_.reset(new internal::ScreenDimmer);
+
+ high_contrast_controller_->SetEnable(delegate_->IsHighContrastEnabled());
}
aura::Window* Shell::GetContainer(int container_id) {

Powered by Google App Engine
This is Rietveld 408576698