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

Side by Side Diff: Source/core/accessibility/AccessibilityMenuList.cpp

Issue 24752002: Cleanup <static_cast>: Switch to toFoo for Accessibility Objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
OLDNEW
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 { 99 {
100 RefPtr<Document> document = &m_renderer->document(); 100 RefPtr<Document> document = &m_renderer->document();
101 AXObjectCache* cache = document->axObjectCache(); 101 AXObjectCache* cache = document->axObjectCache();
102 102
103 const AccessibilityChildrenVector& childObjects = children(); 103 const AccessibilityChildrenVector& childObjects = children();
104 if (!childObjects.isEmpty()) { 104 if (!childObjects.isEmpty()) {
105 ASSERT(childObjects.size() == 1); 105 ASSERT(childObjects.size() == 1);
106 ASSERT(childObjects[0]->isMenuListPopup()); 106 ASSERT(childObjects[0]->isMenuListPopup());
107 107
108 if (childObjects[0]->isMenuListPopup()) { 108 if (childObjects[0]->isMenuListPopup()) {
109 if (AccessibilityMenuListPopup* popup = static_cast<AccessibilityMen uListPopup*>(childObjects[0].get())) 109 if (AccessibilityMenuListPopup* popup = toAccessibilityMenuListPopup (childObjects[0].get()))
110 popup->didUpdateActiveOption(optionIndex); 110 popup->didUpdateActiveOption(optionIndex);
111 } 111 }
112 } 112 }
113 113
114 cache->postNotification(this, document.get(), AXObjectCache::AXMenuListValue Changed, true, PostSynchronously); 114 cache->postNotification(this, document.get(), AXObjectCache::AXMenuListValue Changed, true, PostSynchronously);
115 } 115 }
116 116
117 } // namespace WebCore 117 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AccessibilityListBoxOption.h ('k') | Source/core/accessibility/AccessibilityMenuListOption.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698