Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Issue 10513009: Indicate focused state on text buttons with blue outline. (Closed)

Created:
8 years, 6 months ago by flackr
Modified:
8 years, 6 months ago
Reviewers:
tony, sky, xiyuan
CC:
chromium-reviews, tfarina, darin-cc_chromium.org
Visibility:
Public.

Description

Indicate focused state on text buttons with blue outline. BUG=118040 TEST=Visit http://www.pagetutor.com/keeper/mystash/secretstuff.html and focus the native views text buttons. They should get a blue outline to indicate focus. Examine native web buttons which should be unaffected by this patch. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140711

Patch Set 1 #

Total comments: 13

Patch Set 2 : Review comments. #

Patch Set 3 : Keep normal focus rect for WIN and base TextButton class. #

Total comments: 2

Patch Set 4 : Merge with master and address nit. #

Total comments: 2

Patch Set 5 : Only set is_focused on not win. #

Total comments: 1

Patch Set 6 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -9 lines) Patch
M ui/base/native_theme/native_theme.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/native_theme/native_theme_base.cc View 1 2 3 2 chunks +9 lines, -5 lines 0 comments Download
M ui/views/controls/button/text_button.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/controls/button/text_button.cc View 1 2 3 4 5 3 chunks +11 lines, -1 line 0 comments Download
M webkit/glue/webthemeengine_impl_android.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/webthemeengine_impl_linux.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/webthemeengine_impl_win.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
flackr
PTAL, thanks!
8 years, 6 months ago (2012-06-04 18:55:38 UTC) #1
tony
I think xiyuan was the original author of this code. https://chromiumcodereview.appspot.com/10513009/diff/1/ui/base/native_theme/native_theme_base.cc File ui/base/native_theme/native_theme_base.cc (right): https://chromiumcodereview.appspot.com/10513009/diff/1/ui/base/native_theme/native_theme_base.cc#newcode490 ...
8 years, 6 months ago (2012-06-04 19:20:44 UTC) #2
xiyuan
https://chromiumcodereview.appspot.com/10513009/diff/1/ui/views/controls/button/text_button.cc File ui/views/controls/button/text_button.cc (left): https://chromiumcodereview.appspot.com/10513009/diff/1/ui/views/controls/button/text_button.cc#oldcode759 ui/views/controls/button/text_button.cc:759: if (HasFocus() && (focusable() || IsAccessibilityFocusable())) { On 2012/06/04 ...
8 years, 6 months ago (2012-06-04 19:46:53 UTC) #3
flackr
https://chromiumcodereview.appspot.com/10513009/diff/1/ui/base/native_theme/native_theme_base.cc File ui/base/native_theme/native_theme_base.cc (right): https://chromiumcodereview.appspot.com/10513009/diff/1/ui/base/native_theme/native_theme_base.cc#newcode490 ui/base/native_theme/native_theme_base.cc:490: State state, On 2012/06/04 19:20:45, tony wrote: > Can ...
8 years, 6 months ago (2012-06-05 14:13:18 UTC) #4
xiyuan
LGTM with one nit. http://codereview.chromium.org/10513009/diff/8001/ui/base/native_theme/native_theme_base.cc File ui/base/native_theme/native_theme_base.cc (right): http://codereview.chromium.org/10513009/diff/8001/ui/base/native_theme/native_theme_base.cc#newcode536 ui/base/native_theme/native_theme_base.cc:536: kBorderAlpha = 0xff; nit: Change ...
8 years, 6 months ago (2012-06-05 17:12:53 UTC) #5
tony
LGTM2
8 years, 6 months ago (2012-06-05 17:15:44 UTC) #6
flackr
http://codereview.chromium.org/10513009/diff/8001/ui/base/native_theme/native_theme_base.cc File ui/base/native_theme/native_theme_base.cc (right): http://codereview.chromium.org/10513009/diff/8001/ui/base/native_theme/native_theme_base.cc#newcode536 ui/base/native_theme/native_theme_base.cc:536: kBorderAlpha = 0xff; On 2012/06/05 17:12:53, xiyuan wrote: > ...
8 years, 6 months ago (2012-06-05 18:20:03 UTC) #7
sky
http://codereview.chromium.org/10513009/diff/15002/ui/views/controls/button/text_button.cc File ui/views/controls/button/text_button.cc (right): http://codereview.chromium.org/10513009/diff/15002/ui/views/controls/button/text_button.cc#newcode863 ui/views/controls/button/text_button.cc:863: params->button.is_focused = HasFocus() && Does this result in a ...
8 years, 6 months ago (2012-06-05 19:48:57 UTC) #8
flackr
http://codereview.chromium.org/10513009/diff/15002/ui/views/controls/button/text_button.cc File ui/views/controls/button/text_button.cc (right): http://codereview.chromium.org/10513009/diff/15002/ui/views/controls/button/text_button.cc#newcode863 ui/views/controls/button/text_button.cc:863: params->button.is_focused = HasFocus() && On 2012/06/05 19:48:57, sky wrote: ...
8 years, 6 months ago (2012-06-05 20:11:47 UTC) #9
sky
LGTM http://codereview.chromium.org/10513009/diff/19002/ui/views/controls/button/text_button.cc File ui/views/controls/button/text_button.cc (right): http://codereview.chromium.org/10513009/diff/19002/ui/views/controls/button/text_button.cc#newcode864 ui/views/controls/button/text_button.cc:864: params->button.is_focused = HasFocus() && Add a comment as ...
8 years, 6 months ago (2012-06-05 20:25:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/10513009/20002
8 years, 6 months ago (2012-06-06 03:52:59 UTC) #11
commit-bot: I haz the power
8 years, 6 months ago (2012-06-06 05:29:45 UTC) #12
Change committed as 140711

Powered by Google App Engine
This is Rietveld 408576698