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

Unified Diff: ui/views/controls/textfield/native_textfield_views.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/tabbed_pane/tabbed_pane.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_views.cc
diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
index f181fbff4b08305a9d83b3403837be77e9de6792..113176dcf40551310d348f8a26a5b644864c2935 100644
--- a/ui/views/controls/textfield/native_textfield_views.cc
+++ b/ui/views/controls/textfield/native_textfield_views.cc
@@ -474,8 +474,8 @@ void NativeTextfieldViews::UpdateText() {
model_->SetText(GetTextForDisplay(textfield_->text()));
OnCaretBoundsChanged();
SchedulePaint();
- textfield_->GetWidget()->NotifyAccessibilityEvent(
- textfield_, ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
+ textfield_->NotifyAccessibilityEvent(
+ ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
}
void NativeTextfieldViews::AppendText(const string16& text) {
@@ -621,8 +621,8 @@ void NativeTextfieldViews::SelectRange(const ui::Range& range) {
model_->SelectRange(range);
OnCaretBoundsChanged();
SchedulePaint();
- textfield_->GetWidget()->NotifyAccessibilityEvent(
- textfield_, ui::AccessibilityTypes::EVENT_SELECTION_CHANGED, true);
+ textfield_->NotifyAccessibilityEvent(
+ ui::AccessibilityTypes::EVENT_SELECTION_CHANGED, true);
}
gfx::SelectionModel NativeTextfieldViews::GetSelectionModel() const {
@@ -1222,8 +1222,8 @@ void NativeTextfieldViews::UpdateAfterChange(bool text_changed,
bool cursor_changed) {
if (text_changed) {
PropagateTextChange();
- textfield_->GetWidget()->NotifyAccessibilityEvent(
- textfield_, ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
+ textfield_->NotifyAccessibilityEvent(
+ ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
}
if (cursor_changed) {
is_cursor_visible_ = true;
@@ -1231,8 +1231,8 @@ void NativeTextfieldViews::UpdateAfterChange(bool text_changed,
if (!text_changed) {
// TEXT_CHANGED implies SELECTION_CHANGED, so we only need to fire
// this if only the selection changed.
- textfield_->GetWidget()->NotifyAccessibilityEvent(
- textfield_, ui::AccessibilityTypes::EVENT_SELECTION_CHANGED, true);
+ textfield_->NotifyAccessibilityEvent(
+ ui::AccessibilityTypes::EVENT_SELECTION_CHANGED, true);
}
}
if (text_changed || cursor_changed) {
« no previous file with comments | « ui/views/controls/tabbed_pane/tabbed_pane.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698