| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "modules/accessibility/AXMenuListPopup.h" | 27 #include "modules/accessibility/AXMenuListPopup.h" |
| 28 | 28 |
| 29 #include "core/html/HTMLSelectElement.h" | 29 #include "core/html/HTMLSelectElement.h" |
| 30 #include "modules/accessibility/AXMenuListOption.h" | 30 #include "modules/accessibility/AXMenuListOption.h" |
| 31 #include "modules/accessibility/AXObjectCacheImpl.h" | 31 #include "modules/accessibility/AXObjectCacheImpl.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 using namespace HTMLNames; | 35 using namespace HTMLNames; |
| 36 | 36 |
| 37 AXMenuListPopup::AXMenuListPopup() | 37 AXMenuListPopup::AXMenuListPopup(AXObjectCache* axObjectCache) |
| 38 : AXMockObject(axObjectCache) |
| 38 { | 39 { |
| 39 } | 40 } |
| 40 | 41 |
| 41 bool AXMenuListPopup::isVisible() const | 42 bool AXMenuListPopup::isVisible() const |
| 42 { | 43 { |
| 43 return false; | 44 return false; |
| 44 } | 45 } |
| 45 | 46 |
| 46 bool AXMenuListPopup::isOffScreen() const | 47 bool AXMenuListPopup::isOffScreen() const |
| 47 { | 48 { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 ASSERT_ARG(optionIndex, optionIndex < static_cast<int>(m_children.size())); | 141 ASSERT_ARG(optionIndex, optionIndex < static_cast<int>(m_children.size())); |
| 141 | 142 |
| 142 AXObjectCacheImpl* cache = axObjectCache(); | 143 AXObjectCacheImpl* cache = axObjectCache(); |
| 143 RefPtr<AXObject> child = m_children[optionIndex].get(); | 144 RefPtr<AXObject> child = m_children[optionIndex].get(); |
| 144 | 145 |
| 145 cache->postNotification(child.get(), document(), AXObjectCacheImpl::AXFocuse
dUIElementChanged, true); | 146 cache->postNotification(child.get(), document(), AXObjectCacheImpl::AXFocuse
dUIElementChanged, true); |
| 146 cache->postNotification(child.get(), document(), AXObjectCacheImpl::AXMenuLi
stItemSelected, true); | 147 cache->postNotification(child.get(), document(), AXObjectCacheImpl::AXMenuLi
stItemSelected, true); |
| 147 } | 148 } |
| 148 | 149 |
| 149 } // namespace blink | 150 } // namespace blink |
| OLD | NEW |