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

Side by Side Diff: WebCore/accessibility/AccessibilityImageMapLink.h

Issue 5543004: Merge 72969 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 26 matching lines...) Expand all
37 37
38 class AccessibilityImageMapLink : public AccessibilityObject { 38 class AccessibilityImageMapLink : public AccessibilityObject {
39 39
40 private: 40 private:
41 AccessibilityImageMapLink(); 41 AccessibilityImageMapLink();
42 public: 42 public:
43 static PassRefPtr<AccessibilityImageMapLink> create(); 43 static PassRefPtr<AccessibilityImageMapLink> create();
44 virtual ~AccessibilityImageMapLink(); 44 virtual ~AccessibilityImageMapLink();
45 45
46 void setHTMLAreaElement(HTMLAreaElement* element) { m_areaElement = element; } 46 void setHTMLAreaElement(HTMLAreaElement* element) { m_areaElement = element; }
47 HTMLAreaElement* areaElement() const { return m_areaElement; } 47 HTMLAreaElement* areaElement() const { return m_areaElement.get(); }
48 48
49 void setHTMLMapElement(HTMLMapElement* element) { m_mapElement = element; } 49 void setHTMLMapElement(HTMLMapElement* element) { m_mapElement = element; }
50 HTMLMapElement* mapElement() const { return m_mapElement; } 50 HTMLMapElement* mapElement() const { return m_mapElement.get(); }
51 51
52 virtual Node* node() const { return m_areaElement; } 52 virtual Node* node() const { return m_areaElement.get(); }
53 void setParent(AccessibilityObject* parent) { m_parent = parent; } 53 void setParent(AccessibilityObject* parent) { m_parent = parent; }
54 54
55 virtual AccessibilityRole roleValue() const; 55 virtual AccessibilityRole roleValue() const;
56 virtual bool accessibilityIsIgnored() const { return false; } 56 virtual bool accessibilityIsIgnored() const { return false; }
57 virtual bool isEnabled() const { return true; } 57 virtual bool isEnabled() const { return true; }
58 58
59 virtual AccessibilityObject* parentObject() const; 59 virtual AccessibilityObject* parentObject() const;
60 virtual Element* anchorElement() const; 60 virtual Element* anchorElement() const;
61 virtual Element* actionElement() const; 61 virtual Element* actionElement() const;
62 virtual KURL url() const; 62 virtual KURL url() const;
63 virtual bool isLink() const { return true; } 63 virtual bool isLink() const { return true; }
64 virtual bool isLinked() const { return true; } 64 virtual bool isLinked() const { return true; }
65 virtual String title() const; 65 virtual String title() const;
66 virtual String accessibilityDescription() const; 66 virtual String accessibilityDescription() const;
67 67
68 virtual String stringValueForMSAA() const; 68 virtual String stringValueForMSAA() const;
69 virtual String nameForMSAA() const; 69 virtual String nameForMSAA() const;
70 70
71 virtual IntSize size() const; 71 virtual IntSize size() const;
72 virtual IntRect elementRect() const; 72 virtual IntRect elementRect() const;
73 73
74 private: 74 private:
75 HTMLAreaElement* m_areaElement; 75 RefPtr<HTMLAreaElement> m_areaElement;
76 HTMLMapElement* m_mapElement; 76 RefPtr<HTMLMapElement> m_mapElement;
77 AccessibilityObject* m_parent; 77 AccessibilityObject* m_parent;
78 78
79 virtual bool isImageMapLink() const { return true; } 79 virtual bool isImageMapLink() const { return true; }
80 }; 80 };
81 81
82 } // namespace WebCore 82 } // namespace WebCore
83 83
84 #endif // AccessibilityImageMapLink_h 84 #endif // AccessibilityImageMapLink_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698