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

Unified Diff: chrome/browser/chromeos/status/status_area_bubble.cc

Issue 8511004: Fix to correctly set accessible state of StatusAreaBubbleContentView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « chrome/browser/chromeos/status/status_area_bubble.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/status_area_bubble.cc
diff --git a/chrome/browser/chromeos/status/status_area_bubble.cc b/chrome/browser/chromeos/status/status_area_bubble.cc
index 8dacfdc249bd33a47a87661a1c313a6a6e81a251..1d6f3dcbc2a4a144ca03051d60e22464bffda704 100644
--- a/chrome/browser/chromeos/status/status_area_bubble.cc
+++ b/chrome/browser/chromeos/status/status_area_bubble.cc
@@ -7,6 +7,7 @@
#include "views/controls/label.h"
#include "views/layout/box_layout.h"
#include "views/layout/fill_layout.h"
+#include "ui/base/accessibility/accessible_view_state.h"
namespace chromeos {
@@ -67,6 +68,13 @@ void StatusAreaBubbleContentView::SetMessage(const string16& message) {
message_view_->SetText(message);
}
+void StatusAreaBubbleContentView::GetAccessibleState(
+ ui::AccessibleViewState* state) {
+ state->role = ui::AccessibilityTypes::ROLE_STATICTEXT;
+ state->state = ui::AccessibilityTypes::STATE_READONLY;
+ state->name = GetMessage();
+}
+
StatusAreaBubbleController::StatusAreaBubbleController()
: bubble_(NULL), content_(NULL) {
« no previous file with comments | « chrome/browser/chromeos/status/status_area_bubble.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698