Index: ui/views/controls/window_label.cc |
diff --git a/ui/views/controls/window_label.cc b/ui/views/controls/window_label.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..677ab739f10c9c4ae3079243e7c99836a59f390b |
--- /dev/null |
+++ b/ui/views/controls/window_label.cc |
@@ -0,0 +1,24 @@ |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ui/views/controls/window_label.h" |
+ |
+#include "ui/accessibility/ax_view_state.h" |
+#include "ui/views/controls/label.h" |
+ |
+namespace views { |
+ |
+WindowLabel::WindowLabel() : Label() { |
+} |
+WindowLabel::~WindowLabel() { |
+} |
+ |
+void WindowLabel::GetAccessibleState(ui::AXViewState* state) { |
+ // TODO(dmazzoni) Change role to "window" |
tdanderson
2014/04/29 14:46:27
Add : after (dmazzoni), and add . at the end of th
Nina
2014/04/29 18:31:40
Done, and he does know the TODO. We should probabl
|
+ state->role = ui::AX_ROLE_BUTTON; |
+ state->AddStateFlag(ui::AX_STATE_READ_ONLY); |
+ state->name = layout_text(); |
+} |
+ |
+} // namespace views |