After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 670719 - Expose ATK_STATE_EXPANDABLE and ATK_STATE_EXPANDED as appropriate for Alt+Tab switcher
Expose ATK_STATE_EXPANDABLE and ATK_STATE_EXPANDED as appropriate for Alt+Tab...
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on: 668366
Blocks:
 
 
Reported: 2012-02-24 00:53 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2012-03-15 19:01 UTC
See Also:
GNOME target: 3.4
GNOME version: 3.3/3.4


Attachments
Add EXPANDABLE and EXPANDED state on Alt+Tab popup items (1.81 KB, patch)
2012-03-08 12:57 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
reviewed Details | Review
Add EXPANDABLE and EXPANDED state on Alt+Tab popup items (2.21 KB, patch)
2012-03-12 16:26 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
committed Details | Review
Alternative patch (2.24 KB, patch)
2012-03-12 16:27 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
none Details | Review

Description Joanmarie Diggs (IRC: joanie) 2012-02-24 00:53:44 UTC
From the gnome-shell "Cheat Sheet":

> Alt+Tab switches between applications. Window previews of the
> applications with multiple windows are available as you cycle
> through. The previews show up after a short delay, but you can
> get them immediately by pressing the Down arrow key.

The fact that there are multiple windows which can be selected is presented to sighted users via a downward-pointing triangle. [1] The presence of this triangle should be exposed non-visually so that screen reader users know when they have the option to Down Arrow.

In chatting briefly with Piñeiro about this, exposing STATE_EXPANDABLE and STATE_EXPANDED seem like the most logical (and hopefully a relatively easy?) way to accomplish this.

[1] See https://live.gnome.org/GnomeShell/CheatSheet action=AttachFile&do=get&target=shortcuts-Alt-Tab.png
Comment 1 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-02-28 12:51:45 UTC
A JFYI comment.

While working on this I discovered something. If you are focused on one alt+tab switcher icon without the arrow, you still can press down and the thumbnail window appears. Yes, I didn't know it, I always thought that this would only work on icons with the arrow.

In theory that would mean that we could use EXPANDABLE for each icon on the alt+tab switcher.t

Anyway, the purpose of this bug is expose to the user that the icon could be worth to be expanded. So in the same way that the shell is showing to the user that arrow in the icons with more of one thumbnail, as a hint that it is worth to be expanded, although in fact, icons without the arrow are also expandable, I plan to do the same with the atk state.
Comment 2 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-08 12:57:13 UTC
Created attachment 209246 [details] [review]
Add EXPANDABLE and EXPANDED state on Alt+Tab popup items
Comment 3 Dan Winship 2012-03-09 15:02:22 UTC
Comment on attachment 209246 [details] [review]
Add EXPANDABLE and EXPANDED state on Alt+Tab popup items

You should just set EXPANDABLE on each relevant item from AppSwitcher._addIcon() rather than waiting until highlight() to do it.
Comment 4 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-12 16:26:28 UTC
Created attachment 209506 [details] [review]
Add EXPANDABLE and EXPANDED state on Alt+Tab popup items

(In reply to comment #3)
> (From update of attachment 209246 [details] [review])
> You should just set EXPANDABLE on each relevant item from
> AppSwitcher._addIcon() rather than waiting until highlight() to do it.

Done. Anyway this patch assumes that appIcon.cachedWindows.length is "== 1" or "> 1"

Just in case I will upload an alternative patch.
Comment 5 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-12 16:27:09 UTC
Created attachment 209507 [details] [review]
Alternative patch

This patch adds a extra if, instead of use the already existing one like previous patch.
Comment 6 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-12 16:29:51 UTC
BTW, although totally offtopic: AppSwitcher._addIcon has this line:

        let n = this._arrows.length;

But n is not used on this function.
Comment 7 Dan Winship 2012-03-15 17:54:14 UTC
Comment on attachment 209506 [details] [review]
Add EXPANDABLE and EXPANDED state on Alt+Tab popup items

cachedWindows.length can never be < 1, so you don't need the extra check