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

Unified Diff: ui/views/controls/native_control_win.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/views/controls/native_control.cc ('k') | ui/views/controls/slider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native_control_win.cc
diff --git a/ui/views/controls/native_control_win.cc b/ui/views/controls/native_control_win.cc
index b16ffd1da5b0da8591eec1cb8e08e72b6d461850..32a06ba5cadb91555831aea93b07974626ecea0b 100644
--- a/ui/views/controls/native_control_win.cc
+++ b/ui/views/controls/native_control_win.cc
@@ -113,10 +113,8 @@ void NativeControlWin::OnFocus() {
parent_view->HasFocus();
// Send the accessibility focus notification.
- if (parent_view->GetWidget()) {
- parent_view->GetWidget()->NotifyAccessibilityEvent(
- parent_view, ui::AccessibilityTypes::EVENT_FOCUS, send_native_event);
- }
+ parent_view->NotifyAccessibilityEvent(
+ ui::AccessibilityTypes::EVENT_FOCUS, send_native_event);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ui/views/controls/native_control.cc ('k') | ui/views/controls/slider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698