Description was changed from ========== Switch to selected 8-dot braille table in email and url ...
3 years, 8 months ago
(2017-04-10 20:27:12 UTC)
#1
Description was changed from
==========
Switch to selected 8-dot braille table in email and url text fields
BUG=
==========
to
==========
Switch to selected 8-dot braille table in email and url text fields
BUG=
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
David Tseng
Description was changed from ========== Switch to selected 8-dot braille table in email and url ...
3 years, 8 months ago
(2017-04-10 20:28:45 UTC)
#2
Description was changed from
==========
Switch to selected 8-dot braille table in email and url text fields
BUG=
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
Switch to selected 8-dot braille table in email and url text fields
BUG=707933
TEST=verify manually email and url type inputs have 8-dot i/o. Verify that
switching away from these fields reverts back to user selected table.
OutputE2ETest revision for automation.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
3 years, 8 months ago
(2017-04-10 20:28:53 UTC)
#4
dmazzoni
Let's think about a solution for 6-dot-only displays like Canute. https://codereview.chromium.org/2813743002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js (right): https://codereview.chromium.org/2813743002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js#newcode47 ...
3 years, 8 months ago
(2017-04-10 22:47:33 UTC)
#5
Let's think about a solution for 6-dot-only displays like Canute.
https://codereview.chromium.org/2813743002/diff/1/chrome/browser/resources/ch...
File chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
(right):
https://codereview.chromium.org/2813743002/diff/1/chrome/browser/resources/ch...
chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js:47:
localStorage['brailleTable'] = localStorage['brailleTable8'];
Maybe I'm not understanding what's happening here, but it looks like if you were
to exit Chrome after tabbing to a url field, your braille settings would be
changed to
match your 8-dot table and wouldn't be restored.
How about a function somewhere that retrieves the current braille table, rather
than
the braille code accessing it from localStorage directly? Then that code could
check
whether we're focused on a text field or not, but the actual underlying setting
wouldn't change.
I don't have a strong preference as to the exact solution but I would prefer
some
cleaner solution that doesn't require a save/restore, maybe refactoring
braille_translator_manager a bit.
https://codereview.chromium.org/2813743002/diff/1/chrome/browser/resources/ch...
chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js:49:
window['braille_translator_manager'].refresh();
Why is this hack needed here, is this for Closure?
David Tseng
In terms of 6-dot only displays, we need to revisit that topic at a higher ...
3 years, 8 months ago
(2017-04-11 17:38:39 UTC)
#6
In terms of 6-dot only displays, we need to revisit that topic at a higher level
since various other things rely upon 8 dot output including the cursor (dots
7-8). 8-dot input might not be an issue if the display has 8-dot perkins keys.
PTAL
https://codereview.chromium.org/2813743002/diff/1/chrome/browser/resources/ch...
File chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
(right):
https://codereview.chromium.org/2813743002/diff/1/chrome/browser/resources/ch...
chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js:47:
localStorage['brailleTable'] = localStorage['brailleTable8'];
On 2017/04/10 22:47:33, dmazzoni wrote:
> Maybe I'm not understanding what's happening here, but it looks like if you
were
> to exit Chrome after tabbing to a url field, your braille settings would be
> changed to
> match your 8-dot table and wouldn't be restored.
>
> How about a function somewhere that retrieves the current braille table,
rather
> than
> the braille code accessing it from localStorage directly? Then that code could
> check
> whether we're focused on a text field or not, but the actual underlying
setting
> wouldn't change.
>
> I don't have a strong preference as to the exact solution but I would prefer
> some
> cleaner solution that doesn't require a save/restore, maybe refactoring
> braille_translator_manager a bit.
I extracted all code in refresh that relies upon localStorage. Note that
localStorage['brailleTable'] is the user selected table with 'brailleTable6' and
'brailleTable8' being the user selected variants for each type of table.
https://codereview.chromium.org/2813743002/diff/1/chrome/browser/resources/ch...
chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js:49:
window['braille_translator_manager'].refresh();
On 2017/04/10 22:47:33, dmazzoni wrote:
> Why is this hack needed here, is this for Closure?
Not really a hack since it's exported on window. Underlying issue is that
Classic background is itself never exported on window, so all members (and
submembers) are inaccessible. I made BrailleBackground a singleton and use that
to get the BTM.
dmazzoni
lgtm https://codereview.chromium.org/2813743002/diff/20001/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): https://codereview.chromium.org/2813743002/diff/20001/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode708 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:708: node_data->html_attributes.push_back(std::make_pair("type", "url")); Doesn't need to be done in ...
3 years, 8 months ago
(2017-04-11 17:46:19 UTC)
#7
3 years, 8 months ago
(2017-04-11 18:11:20 UTC)
#9
+ thestig for c/b/u/v/o/omnibox_view_views.cc
Lei Zhang
On 2017/04/11 18:11:20, David Tseng wrote: > + thestig for c/b/u/v/o/omnibox_view_views.cc lgtm You can ask ...
3 years, 8 months ago
(2017-04-11 18:25:29 UTC)
#10
On 2017/04/11 18:11:20, David Tseng wrote:
> + thestig for c/b/u/v/o/omnibox_view_views.cc
lgtm
You can ask chrome/browser/ui/views/omnibox/OWNERS, BTW.
David Tseng
The CQ bit was checked by dtseng@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-12 14:24:50 UTC)
#11
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1492016478046280, "parent_rev": "dc448150e1780b9158ecce7cf8ee153a8f9f61cf", "commit_rev": "e49774a1cca97ac55ee4f9af730cc36cb4b79015"}
3 years, 8 months ago
(2017-04-12 17:28:00 UTC)
#18
CQ is committing da patch.
Bot data: {"patchset_id": 40001, "attempt_start_ts": 1492016478046280,
"parent_rev": "dc448150e1780b9158ecce7cf8ee153a8f9f61cf", "commit_rev":
"e49774a1cca97ac55ee4f9af730cc36cb4b79015"}
commit-bot: I haz the power
Description was changed from ========== Switch to selected 8-dot braille table in email and url ...
3 years, 8 months ago
(2017-04-12 17:29:00 UTC)
#19
Message was sent while issue was closed.
Description was changed from
==========
Switch to selected 8-dot braille table in email and url text fields
BUG=707933
TEST=verify manually email and url type inputs have 8-dot i/o. Verify that
switching away from these fields reverts back to user selected table.
OutputE2ETest revision for automation.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
Switch to selected 8-dot braille table in email and url text fields
BUG=707933
TEST=verify manually email and url type inputs have 8-dot i/o. Verify that
switching away from these fields reverts back to user selected table.
OutputE2ETest revision for automation.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2813743002
Cr-Commit-Position: refs/heads/master@{#464066}
Committed:
https://chromium.googlesource.com/chromium/src/+/e49774a1cca97ac55ee4f9af730c...
==========
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/e49774a1cca97ac55ee4f9af730cc36cb4b79015
3 years, 8 months ago
(2017-04-12 17:29:01 UTC)
#20
Issue 2813743002: Switch to selected 8-dot braille table in email and url text fields
(Closed)
Created 3 years, 8 months ago by David Tseng
Modified 3 years, 8 months ago
Reviewers: dmazzoni, Lei Zhang
Base URL:
Comments: 5