Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ui / accessibility / ax_view_state.cc
blob11044bc16dd05304e96441b33641153621637a0a
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/accessibility/ax_view_state.h"
7 namespace ui {
9 AXViewState::AXViewState()
10 : role(AX_ROLE_CLIENT),
11 selection_start(-1),
12 selection_end(-1),
13 index(-1),
14 count(-1),
15 state_(0) { }
17 AXViewState::~AXViewState() { }
19 void AXViewState::AddStateFlag(ui::AXState state_flag) {
20 state_ |= (1 << state_flag);
23 bool AXViewState::HasStateFlag(ui::AXState state_flag) const {
24 return 0 != (state_ & (1 << state_flag));
27 } // namespace ui