summaryrefslogtreecommitdiffstats
path: root/ash/launcher/launcher_button.h
diff options
context:
space:
mode:
authormukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 03:46:48 +0000
committermukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 03:46:48 +0000
commitae4283cfc9ab67552a088ad25cdcbae422923f7b (patch)
tree1f349d64a81579b1b536f965ac63f17f31610c5d /ash/launcher/launcher_button.h
parent57dfa62076d4180beab56de85f7770f83e05bae7 (diff)
downloadchromium_src-ae4283cfc9ab67552a088ad25cdcbae422923f7b.zip
chromium_src-ae4283cfc9ab67552a088ad25cdcbae422923f7b.tar.gz
chromium_src-ae4283cfc9ab67552a088ad25cdcbae422923f7b.tar.bz2
Set "Hover" status during focus for accessibility.
Based on the discussion on crbug.com/120499, we'd better to set the "hover" status to the launcher items when focused. This CL keeps the dotted rectangle too. R=zork@chromium.org,davemoore@chromium.org BUG=120499 TEST=manually verified Review URL: https://chromiumcodereview.appspot.com/10449077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141166 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher/launcher_button.h')
-rw-r--r--ash/launcher/launcher_button.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/launcher/launcher_button.h b/ash/launcher/launcher_button.h
index acce224..234c8af 100644
--- a/ash/launcher/launcher_button.h
+++ b/ash/launcher/launcher_button.h
@@ -36,6 +36,7 @@ class LauncherButton : public views::CustomButton {
// e.g. A TYPE_APP_SHORTCUT item whose corresponding app is being
// installed.
STATE_PENDING = 1 << 4,
+ STATE_FOCUSED = 1 << 5,
};
virtual ~LauncherButton();
@@ -91,6 +92,8 @@ class LauncherButton : public views::CustomButton {
virtual void Layout() OVERRIDE;
virtual bool GetTooltipText(const gfx::Point& p,
string16* tooltip) const OVERRIDE;
+ virtual void OnFocus() OVERRIDE;
+ virtual void OnBlur() OVERRIDE;
// Sets the icon image with a shadow.
void SetShadowedImage(const SkBitmap& bitmap);