summaryrefslogtreecommitdiffstats
path: root/ash/high_contrast
diff options
context:
space:
mode:
authorsteveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-22 09:49:06 +0000
committersteveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-22 09:49:06 +0000
commit2a26caf6f9b233925a746c0adfc96c9f1c06fe3d (patch)
tree5c4a28df8a665c8102d91f26968a3d9ac92a6a0f /ash/high_contrast
parentbeb38e49fed94ca2e496658ff75152a7ced7a5da (diff)
downloadchromium_src-2a26caf6f9b233925a746c0adfc96c9f1c06fe3d.zip
chromium_src-2a26caf6f9b233925a746c0adfc96c9f1c06fe3d.tar.gz
chromium_src-2a26caf6f9b233925a746c0adfc96c9f1c06fe3d.tar.bz2
Revert 138212 - Implement High Contrast mode for Chrome OS.
-Add controller to ash for managing the state of High Contrast mode -Add API to shell to allow Chromium to turn the mode on and off -Add the option to the Chromium OS accessibility settings page. -Add functions to layer.cc/h to enable an inversion filter. This change breaks the build on the Windows canaries after WebKit r117864 due to a change in the the Chromium WebFilterOperation API. See http://build.chromium.org/p/chromium.webkit/builders/Win%20Builder/builds/22082 and https://bugs.webkit.org/show_bug.cgi?id=87046. BUG=chromium-os:30678 Review URL: https://chromiumcodereview.appspot.com/10201014 TBR=zork@chromium.org Review URL: https://chromiumcodereview.appspot.com/10407089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/high_contrast')
-rw-r--r--ash/high_contrast/high_contrast_controller.cc24
-rw-r--r--ash/high_contrast/high_contrast_controller.h36
2 files changed, 0 insertions, 60 deletions
diff --git a/ash/high_contrast/high_contrast_controller.cc b/ash/high_contrast/high_contrast_controller.cc
deleted file mode 100644
index b501fc9..0000000
--- a/ash/high_contrast/high_contrast_controller.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/high_contrast/high_contrast_controller.h"
-
-#include "ash/shell.h"
-#include "ui/aura/root_window.h"
-#include "ui/compositor/layer.h"
-
-namespace ash {
-
-HighContrastController::HighContrastController()
- : enabled_(false) {
- root_window_ = ash::Shell::GetRootWindow();
-}
-
-void HighContrastController::SetEnabled(bool enabled) {
- enabled_ = enabled;
-
- root_window_->layer()->SetInverted(enabled_);
-}
-
-} // namespace ash
diff --git a/ash/high_contrast/high_contrast_controller.h b/ash/high_contrast/high_contrast_controller.h
deleted file mode 100644
index b5b589f..0000000
--- a/ash/high_contrast/high_contrast_controller.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_
-#define ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_
-#pragma once
-
-#include "ash/ash_export.h"
-#include "base/basictypes.h"
-
-namespace aura {
-class RootWindow;
-}
-
-namespace ash {
-
-class ASH_EXPORT HighContrastController {
- public:
- HighContrastController();
-
- ~HighContrastController() {}
-
- void SetEnabled(bool enabled);
-
- private:
- aura::RootWindow* root_window_;
-
- bool enabled_;
-
- DISALLOW_COPY_AND_ASSIGN(HighContrastController);
-};
-
-} // namespace ash
-
-#endif // ASH_HIGH_CONTRAST_HIGH_CONTRAST_CONTROLLER_H_