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

Unified Diff: ui/accessibility/ax_view_state.cc

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 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 | « ui/accessibility/ax_view_state.h ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_view_state.cc
diff --git a/ui/accessibility/ax_view_state.cc b/ui/accessibility/ax_view_state.cc
deleted file mode 100644
index fe101a500c6aba94d61146ff8cb8c80ae5ae0127..0000000000000000000000000000000000000000
--- a/ui/accessibility/ax_view_state.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2011 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/accessibility/ax_view_state.h"
-
-namespace ui {
-
-AXViewState::AXViewState()
- : role(AX_ROLE_CLIENT),
- selection_start(-1),
- selection_end(-1),
- index(-1),
- count(-1),
- state_(0) { }
-
-AXViewState::~AXViewState() { }
-
-// static
-bool AXViewState::IsFlagSet(uint32_t state, ui::AXState state_flag) {
- return 0 != (state & (1 << state_flag));
-}
-
-void AXViewState::AddStateFlag(ui::AXState state_flag) {
- state_ |= (1 << state_flag);
-}
-
-bool AXViewState::HasStateFlag(ui::AXState state_flag) const {
- return IsFlagSet(state_, state_flag);
-}
-
-} // namespace ui
« no previous file with comments | « ui/accessibility/ax_view_state.h ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698