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

Side by Side Diff: Source/web/WebAXObject.cpp

Issue 495763005: Switch to using accessibilityEnabled and inlineTextBoxAccessibilityEnabled from settings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make WebAXObject methods noops Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 { 67 {
68 m_private = other.m_private; 68 m_private = other.m_private;
69 } 69 }
70 70
71 bool WebAXObject::equals(const WebAXObject& n) const 71 bool WebAXObject::equals(const WebAXObject& n) const
72 { 72 {
73 return m_private.get() == n.m_private.get(); 73 return m_private.get() == n.m_private.get();
74 } 74 }
75 75
76 // static 76 // static
77 void WebAXObject::enableAccessibility() 77 void WebAXObject::enableAccessibility() { }
78 {
79 AXObjectCache::enableAccessibility();
80 }
81 78
82 // static 79 // static
83 bool WebAXObject::accessibilityEnabled() 80 void WebAXObject::enableInlineTextBoxAccessibility() { }
84 {
85 return AXObjectCache::accessibilityEnabled();
86 }
87
88 // static
89 void WebAXObject::enableInlineTextBoxAccessibility()
90 {
91 AXObjectCache::setInlineTextBoxAccessibility(true);
92 }
93 81
94 bool WebAXObject::isDetached() const 82 bool WebAXObject::isDetached() const
95 { 83 {
96 if (m_private.isNull()) 84 if (m_private.isNull())
97 return true; 85 return true;
98 86
99 return m_private->isDetached(); 87 return m_private->isDetached();
100 } 88 }
101 89
102 int WebAXObject::axID() const 90 int WebAXObject::axID() const
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 m_private = object; 1159 m_private = object;
1172 return *this; 1160 return *this;
1173 } 1161 }
1174 1162
1175 WebAXObject::operator WTF::PassRefPtr<blink::AXObject>() const 1163 WebAXObject::operator WTF::PassRefPtr<blink::AXObject>() const
1176 { 1164 {
1177 return m_private.get(); 1165 return m_private.get();
1178 } 1166 }
1179 1167
1180 } // namespace blink 1168 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698