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

Side by Side Diff: ui/accessibility/ax_view_state.cc

Issue 2000403003: [forbots] IWYU for ax_enums.h Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/accessibility/ax_view_state.h ('k') | ui/accessibility/platform/ax_platform_node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/accessibility/ax_view_state.h" 5 #include "ui/accessibility/ax_view_state.h"
6 6
7 #include "ui/accessibility/ax_enums.h"
8
7 namespace ui { 9 namespace ui {
8 10
9 AXViewState::AXViewState() 11 AXViewState::AXViewState()
10 : role(AX_ROLE_CLIENT), 12 : role(AX_ROLE_CLIENT),
11 selection_start(-1), 13 selection_start(-1),
12 selection_end(-1), 14 selection_end(-1),
13 index(-1), 15 index(-1),
14 count(-1), 16 count(-1),
15 state_(0) { } 17 state_(0) { }
16 18
17 AXViewState::~AXViewState() { } 19 AXViewState::~AXViewState() { }
18 20
19 void AXViewState::AddStateFlag(ui::AXState state_flag) { 21 void AXViewState::AddStateFlag(ui::AXState state_flag) {
20 state_ |= (1 << state_flag); 22 state_ |= (1 << state_flag);
21 } 23 }
22 24
23 bool AXViewState::HasStateFlag(ui::AXState state_flag) const { 25 bool AXViewState::HasStateFlag(ui::AXState state_flag) const {
24 return 0 != (state_ & (1 << state_flag)); 26 return 0 != (state_ & (1 << state_flag));
25 } 27 }
26 28
27 } // namespace ui 29 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/ax_view_state.h ('k') | ui/accessibility/platform/ax_platform_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698