| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |