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

Side by Side Diff: Source/WebCore/accessibility/AccessibilityObject.cpp

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 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
« no previous file with comments | « Source/WebCore/accessibility/AccessibilityObject.h ('k') | Source/WebCore/config.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 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 namespace WebCore { 69 namespace WebCore {
70 70
71 using namespace HTMLNames; 71 using namespace HTMLNames;
72 72
73 AccessibilityObject::AccessibilityObject() 73 AccessibilityObject::AccessibilityObject()
74 : m_id(0) 74 : m_id(0)
75 , m_haveChildren(false) 75 , m_haveChildren(false)
76 , m_role(UnknownRole) 76 , m_role(UnknownRole)
77 , m_lastKnownIsIgnoredValue(DefaultBehavior) 77 , m_lastKnownIsIgnoredValue(DefaultBehavior)
78 #if PLATFORM(GTK)
79 , m_wrapper(0)
80 #elif PLATFORM(CHROMIUM)
81 , m_detached(false) 78 , m_detached(false)
82 #endif
83 { 79 {
84 } 80 }
85 81
86 AccessibilityObject::~AccessibilityObject() 82 AccessibilityObject::~AccessibilityObject()
87 { 83 {
88 ASSERT(isDetached()); 84 ASSERT(isDetached());
89 } 85 }
90 86
91 void AccessibilityObject::detach() 87 void AccessibilityObject::detach()
92 { 88 {
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1839 } 1835 }
1840 1836
1841 bool AccessibilityObject::ariaPressedIsPresent() const 1837 bool AccessibilityObject::ariaPressedIsPresent() const
1842 { 1838 {
1843 return !getAttribute(aria_pressedAttr).isEmpty(); 1839 return !getAttribute(aria_pressedAttr).isEmpty();
1844 } 1840 }
1845 1841
1846 TextIteratorBehavior AccessibilityObject::textIteratorBehaviorForTextRange() con st 1842 TextIteratorBehavior AccessibilityObject::textIteratorBehaviorForTextRange() con st
1847 { 1843 {
1848 TextIteratorBehavior behavior = TextIteratorIgnoresStyleVisibility; 1844 TextIteratorBehavior behavior = TextIteratorIgnoresStyleVisibility;
1849
1850 #if PLATFORM(GTK)
1851 // We need to emit replaced elements for GTK, and present
1852 // them with the 'object replacement character' (0xFFFC).
1853 behavior = static_cast<TextIteratorBehavior>(behavior | TextIteratorEmitsObj ectReplacementCharacters);
1854 #endif
1855
1856 return behavior; 1845 return behavior;
1857 } 1846 }
1858 1847
1859 AccessibilityRole AccessibilityObject::buttonRoleType() const 1848 AccessibilityRole AccessibilityObject::buttonRoleType() const
1860 { 1849 {
1861 // If aria-pressed is present, then it should be exposed as a toggle button. 1850 // If aria-pressed is present, then it should be exposed as a toggle button.
1862 // http://www.w3.org/TR/wai-aria/states_and_properties#aria-pressed 1851 // http://www.w3.org/TR/wai-aria/states_and_properties#aria-pressed
1863 if (ariaPressedIsPresent()) 1852 if (ariaPressedIsPresent())
1864 return ToggleButtonRole; 1853 return ToggleButtonRole;
1865 if (ariaHasPopup()) 1854 if (ariaHasPopup())
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 1912
1924 bool result = computeAccessibilityIsIgnored(); 1913 bool result = computeAccessibilityIsIgnored();
1925 1914
1926 if (attributeCache) 1915 if (attributeCache)
1927 attributeCache->setIgnored(axObjectID(), result ? IgnoreObject : Include Object); 1916 attributeCache->setIgnored(axObjectID(), result ? IgnoreObject : Include Object);
1928 1917
1929 return result; 1918 return result;
1930 } 1919 }
1931 1920
1932 } // namespace WebCore 1921 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/accessibility/AccessibilityObject.h ('k') | Source/WebCore/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698