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

Unified Diff: Source/WebCore/accessibility/AccessibilityObject.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WTF/wtf/text/WTFString.cpp ('k') | Source/WebCore/accessibility/AccessibilityObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/accessibility/AccessibilityObject.h
diff --git a/Source/WebCore/accessibility/AccessibilityObject.h b/Source/WebCore/accessibility/AccessibilityObject.h
index 6bbe99aeffe21865502f6b4265fed973cd6cb2f8..b906941d4ad2082f13a555ae3935591449edb815 100644
--- a/Source/WebCore/accessibility/AccessibilityObject.h
+++ b/Source/WebCore/accessibility/AccessibilityObject.h
@@ -39,37 +39,6 @@
#include <wtf/RefPtr.h>
#include <wtf/Vector.h>
-#if PLATFORM(MAC)
-#include <wtf/RetainPtr.h>
-#elif PLATFORM(WIN) && !OS(WINCE)
-#include "AccessibilityObjectWrapperWin.h"
-#include "COMPtr.h"
-#endif
-
-#if PLATFORM(MAC)
-
-typedef struct _NSRange NSRange;
-
-OBJC_CLASS NSArray;
-OBJC_CLASS NSAttributedString;
-OBJC_CLASS NSData;
-OBJC_CLASS NSMutableAttributedString;
-OBJC_CLASS NSString;
-OBJC_CLASS NSValue;
-OBJC_CLASS NSView;
-OBJC_CLASS WebAccessibilityObjectWrapper;
-
-typedef WebAccessibilityObjectWrapper AccessibilityObjectWrapper;
-
-#elif PLATFORM(GTK)
-typedef struct _AtkObject AtkObject;
-typedef struct _AtkObject AccessibilityObjectWrapper;
-#elif PLATFORM(CHROMIUM)
-// Chromium does not use a wrapper.
-#else
-class AccessibilityObjectWrapper;
-#endif
-
namespace WebCore {
class AccessibilityObject;
@@ -810,24 +779,7 @@ public:
virtual String mathFencedCloseString() const { return String(); }
virtual int mathLineThickness() const { return 0; }
-#if HAVE(ACCESSIBILITY)
-#if PLATFORM(GTK)
- AccessibilityObjectWrapper* wrapper() const;
- void setWrapper(AccessibilityObjectWrapper*);
-#elif !PLATFORM(CHROMIUM)
- AccessibilityObjectWrapper* wrapper() const { return m_wrapper.get(); }
- void setWrapper(AccessibilityObjectWrapper* wrapper)
- {
- m_wrapper = wrapper;
- }
-#endif
-#endif
-
-#if PLATFORM(MAC)
- void overrideAttachmentParent(AccessibilityObject* parent);
-#else
void overrideAttachmentParent(AccessibilityObject*) { }
-#endif
#if HAVE(ACCESSIBILITY)
// a platform-specific method for determining if an attachment is ignored
@@ -863,23 +815,10 @@ protected:
virtual AccessibilityRole buttonRoleType() const;
bool ariaIsHidden() const;
-#if PLATFORM(GTK)
- bool allowsTextRanges() const;
- unsigned getLengthForTextRange() const;
-#else
bool allowsTextRanges() const { return isTextControl(); }
unsigned getLengthForTextRange() const { return text().length(); }
-#endif
-#if PLATFORM(MAC)
- RetainPtr<WebAccessibilityObjectWrapper> m_wrapper;
-#elif PLATFORM(WIN) && !OS(WINCE)
- COMPtr<AccessibilityObjectWrapper> m_wrapper;
-#elif PLATFORM(GTK)
- AtkObject* m_wrapper;
-#elif PLATFORM(CHROMIUM)
bool m_detached;
-#endif
};
#if !HAVE(ACCESSIBILITY)
« no previous file with comments | « Source/WTF/wtf/text/WTFString.cpp ('k') | Source/WebCore/accessibility/AccessibilityObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698