WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
115026
Improve the way UI element information is passed between AccessibilityMediaControls and the localization code
https://bugs.webkit.org/show_bug.cgi?id=115026
Summary
Improve the way UI element information is passed between AccessibilityMediaCo...
Benjamin Poulain
Reported
2013-04-23 02:17:09 PDT
Improve the way UI element information is passed between AccessibilityMediaControls and the localization code
Attachments
Patch
(41.96 KB, patch)
2013-04-23 02:21 PDT
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion
(484.83 KB, application/zip)
2013-04-23 04:42 PDT
,
Build Bot
no flags
Details
Patch
(42.90 KB, patch)
2013-04-23 16:06 PDT
,
Benjamin Poulain
rniwa
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2013-04-23 02:21:28 PDT
Created
attachment 199205
[details]
Patch
Early Warning System Bot
Comment 2
2013-04-23 02:26:50 PDT
Comment on
attachment 199205
[details]
Patch
Attachment 199205
[details]
did not pass qt-wk2-ews (qt-wk2): Output:
http://webkit-queues.appspot.com/results/59841
Early Warning System Bot
Comment 3
2013-04-23 02:27:23 PDT
Comment on
attachment 199205
[details]
Patch
Attachment 199205
[details]
did not pass qt-ews (qt): Output:
http://webkit-queues.appspot.com/results/55830
Build Bot
Comment 4
2013-04-23 04:42:52 PDT
Comment on
attachment 199205
[details]
Patch
Attachment 199205
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/200387
New failing tests: accessibility/media-element.html
Build Bot
Comment 5
2013-04-23 04:42:53 PDT
Created
attachment 199217
[details]
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-04 Port: mac-mountainlion Platform: Mac OS X 10.8.2
Build Bot
Comment 6
2013-04-23 13:32:40 PDT
Comment on
attachment 199205
[details]
Patch
Attachment 199205
[details]
did not pass win-ews (win): Output:
http://webkit-queues.appspot.com/results/77188
Benjamin Poulain
Comment 7
2013-04-23 16:06:29 PDT
Created
attachment 199332
[details]
Patch
chris fleizach
Comment 8
2013-04-23 22:46:37 PDT
Comment on
attachment 199332
[details]
Patch There's already a set of enums for media controls, (MediaControlElementType). It seems we should leverage that instead of defining another set
Benjamin Poulain
Comment 9
2013-04-23 22:58:34 PDT
(In reply to
comment #8
)
> (From update of
attachment 199332
[details]
) > There's already a set of enums for media controls, (MediaControlElementType). It seems we should leverage that instead of defining another set
I intentionally avoided them. By defining a enum for the localization, we ensure every new value has a case in the switch-case (on all ports and in both function). If you look at the two bugs fixed in this patch, they would have been avoided by using this separate enum :)
Benjamin Poulain
Comment 10
2013-04-23 23:00:12 PDT
Although...I am assuming the current design is right. If every type of MediaControlElementType is supposed to have a string, then it would be better to use that enum.
chris fleizach
Comment 11
2013-04-23 23:15:12 PDT
(In reply to
comment #10
)
> Although...I am assuming the current design is right. > > If every type of MediaControlElementType is supposed to have a string, then it would be better to use that enum.
My guess is yes. I had a patch ready a few days ago that i forgot about how the VolumeSliders did not have labels. They should have had them
Ryosuke Niwa
Comment 12
2013-04-23 23:28:01 PDT
Comment on
attachment 199332
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=199332&action=review
> Source/WebCore/platform/LocalizedStrings.h:241 > + ENUM_CLASS(LocalizedMediaControlElement) {
I would call this MediaControlElementStringType or MediaControlElementString. LocalizedMediaControlElement makes it sound as if this is an element.
> Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp:541 > + return String();
Can we ever reach here?
> Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp:587 > + return String();
Ditto.
> Source/WebCore/platform/qt/LocalizedStringsQt.cpp:515 > + return String();
Ditto.
> Source/WebCore/platform/qt/LocalizedStringsQt.cpp:561 > + return String();
Ditto.
chris fleizach
Comment 13
2013-04-24 08:04:51 PDT
(In reply to
comment #11
)
> (In reply to
comment #10
) > > Although...I am assuming the current design is right. > > > > If every type of MediaControlElementType is supposed to have a string, then it would be better to use that enum. > > My guess is yes. I had a patch ready a few days ago that i forgot about how the VolumeSliders did not have labels. They should have had them
I looked over that emum list again. Everything there should get a description of some sort.
Benjamin Poulain
Comment 14
2013-04-24 20:14:01 PDT
> > My guess is yes. I had a patch ready a few days ago that i forgot about how the VolumeSliders did not have labels. They should have had them > > I looked over that emum list again. Everything there should get a description of some sort.
Your call. Should I land this or do you want to change the class to use the other enum?
chris fleizach
Comment 15
2013-04-25 09:17:18 PDT
(In reply to
comment #14
)
> > > My guess is yes. I had a patch ready a few days ago that i forgot about how the VolumeSliders did not have labels. They should have had them > > > > I looked over that emum list again. Everything there should get a description of some sort. > > Your call. > Should I land this or do you want to change the class to use the other enum?
I think we should use the existing enums. The chances of someone adding a new type and forgetting about this enum list is probably non-zero Thanks
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug