diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-19 16:23:14 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-19 16:23:14 +0000 |
commit | 31a5e31f355d386a5e18444fa32df7efdcacfb8c (patch) | |
tree | 77053dbcd74017ebbddf0446d283517bb55dfc24 /ash/system/tray_accessibility.cc | |
parent | 197a77226e6085c845837a310a948bb0422a3292 (diff) | |
download | chromium_src-31a5e31f355d386a5e18444fa32df7efdcacfb8c.zip chromium_src-31a5e31f355d386a5e18444fa32df7efdcacfb8c.tar.gz chromium_src-31a5e31f355d386a5e18444fa32df7efdcacfb8c.tar.bz2 |
ash: Add accessibility and caps-lock buttons in the tray.
BUG=118861, 118859
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9720038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/tray_accessibility.cc')
-rw-r--r-- | ash/system/tray_accessibility.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ash/system/tray_accessibility.cc b/ash/system/tray_accessibility.cc new file mode 100644 index 0000000..8862dc8 --- /dev/null +++ b/ash/system/tray_accessibility.cc @@ -0,0 +1,25 @@ +// 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/system/tray_accessibility.h" + +#include "grit/ui_resources.h" +#include "ui/views/controls/image_view.h" + +namespace ash { +namespace internal { + +TrayAccessibility::TrayAccessibility() + : TrayImageItem(IDR_AURA_UBER_TRAY_ACCESSIBILITY) { +} + +TrayAccessibility::~TrayAccessibility() {} + +void TrayAccessibility::OnAccessibilityModeChanged(bool enabled) { + if (image_view()) + image_view()->SetVisible(enabled); +} + +} // namespace internal +} // namespace ash |