OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 package org.chromium.chrome.browser.snackbar; | 5 package org.chromium.chrome.browser.snackbar; |
6 | 6 |
7 import android.view.LayoutInflater; | 7 import android.view.LayoutInflater; |
8 import android.view.View; | 8 import android.view.View; |
9 import android.view.View.OnClickListener; | 9 import android.view.View.OnClickListener; |
10 import android.widget.PopupWindow; | 10 import android.widget.PopupWindow; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 87 } |
88 | 88 |
89 /** | 89 /** |
90 * Sends an accessibility event to mMessageView announcing that this window
was added so that | 90 * Sends an accessibility event to mMessageView announcing that this window
was added so that |
91 * the mMessageView content description is read aloud if accessibility is en
abled. | 91 * the mMessageView content description is read aloud if accessibility is en
abled. |
92 */ | 92 */ |
93 public void announceforAccessibility() { | 93 public void announceforAccessibility() { |
94 mMessageView.announceForAccessibility(mMessageView.getContentDescription
()); | 94 mMessageView.announceForAccessibility(mMessageView.getContentDescription
()); |
95 } | 95 } |
96 } | 96 } |
OLD | NEW |