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

Side by Side Diff: WebKit/chromium/src/WebAccessibilityObject.cpp

Issue 3398006: Merge 67418 - 2010-09-13 Chris Guillory <chris.guillory@google.com>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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 | « WebKit/chromium/src/WebAccessibilityCacheImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 bool WebAccessibilityObject::canSetValueAttribute() const 95 bool WebAccessibilityObject::canSetValueAttribute() const
96 { 96 {
97 if (!m_private) 97 if (!m_private)
98 return false; 98 return false;
99 99
100 m_private->updateBackingStore(); 100 m_private->updateBackingStore();
101 return m_private->canSetValueAttribute(); 101 return m_private->canSetValueAttribute();
102 } 102 }
103 103
104 bool WebAccessibilityObject::isValid() const
105 {
106 if (!m_private)
107 return false;
108
109 m_private->updateBackingStore();
110 return m_private->axObjectID();
111 }
112
104 unsigned WebAccessibilityObject::childCount() const 113 unsigned WebAccessibilityObject::childCount() const
105 { 114 {
106 if (!m_private) 115 if (!m_private)
107 return 0; 116 return 0;
108 117
109 m_private->updateBackingStore(); 118 m_private->updateBackingStore();
110 return m_private->children().size(); 119 return m_private->children().size();
111 } 120 }
112 121
113 WebAccessibilityObject WebAccessibilityObject::childAt(unsigned index) const 122 WebAccessibilityObject WebAccessibilityObject::childAt(unsigned index) const
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 493
485 void WebAccessibilityObject::assign(WebAccessibilityObjectPrivate* p) 494 void WebAccessibilityObject::assign(WebAccessibilityObjectPrivate* p)
486 { 495 {
487 // p is already ref'd for us by the caller 496 // p is already ref'd for us by the caller
488 if (m_private) 497 if (m_private)
489 m_private->deref(); 498 m_private->deref();
490 m_private = p; 499 m_private = p;
491 } 500 }
492 501
493 } // namespace WebKit 502 } // namespace WebKit
OLDNEW
« no previous file with comments | « WebKit/chromium/src/WebAccessibilityCacheImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698