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

Unified Diff: ui/views/controls/window_label.cc

Issue 251103005: Added arrow key navigation to Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with latest changes, test stub (don't look into that yet!) Created 6 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698