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

Unified Diff: ui/views/controls/button/custom_button.cc

Issue 13524005: Cleanup: remove NotifyAccessibilityEvent from views::Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/views/apps_grid_view.cc ('k') | ui/views/controls/button/image_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/custom_button.cc
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc
index f9901dd6f9f30122a5248cbf3d980cbc29f20b54..bd5124c0b0e3c75861e317c8a4b5aca155127670 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -84,10 +84,8 @@ void CustomButton::SetHotTracked(bool is_hot_tracked) {
if (state_ != STATE_DISABLED)
SetState(is_hot_tracked ? STATE_HOVERED : STATE_NORMAL);
- if (is_hot_tracked && GetWidget()) {
- GetWidget()->NotifyAccessibilityEvent(
- this, ui::AccessibilityTypes::EVENT_FOCUS, true);
- }
+ if (is_hot_tracked)
+ NotifyAccessibilityEvent(ui::AccessibilityTypes::EVENT_FOCUS, true);
}
bool CustomButton::IsHotTracked() const {
« no previous file with comments | « ui/app_list/views/apps_grid_view.cc ('k') | ui/views/controls/button/image_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698