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

Side by Side Diff: chrome/browser/ui/views/extensions/disabled_extensions_view.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/extensions/disabled_extensions_view.h" 5 #include "chrome/browser/ui/views/extensions/disabled_extensions_view.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 } 380 }
381 381
382 void DisabledExtensionsView::GetAccessibleState( 382 void DisabledExtensionsView::GetAccessibleState(
383 ui::AccessibleViewState* state) { 383 ui::AccessibleViewState* state) {
384 state->role = ui::AccessibilityTypes::ROLE_ALERT; 384 state->role = ui::AccessibilityTypes::ROLE_ALERT;
385 } 385 }
386 386
387 void DisabledExtensionsView::ViewHierarchyChanged(bool is_add, 387 void DisabledExtensionsView::ViewHierarchyChanged(bool is_add,
388 View* parent, 388 View* parent,
389 View* child) { 389 View* child) {
390 if (is_add && child == this) { 390 if (is_add && child == this)
391 GetWidget()->NotifyAccessibilityEvent( 391 NotifyAccessibilityEvent(ui::AccessibilityTypes::EVENT_ALERT, true);
392 this, ui::AccessibilityTypes::EVENT_ALERT, true);
393 }
394 } 392 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | chrome/browser/ui/views/infobars/infobar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698