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

Side by Side Diff: Source/core/rendering/HitTestResult.h

Issue 15179002: Remove code that is unused after ContextMenu cleanup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove canHandleRequest code from DRT Created 7 years, 7 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/core/page/Settings.in ('k') | Source/core/rendering/HitTestResult.cpp » ('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) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void setInnerNode(Node*); 88 void setInnerNode(Node*);
89 void setInnerNonSharedNode(Node*); 89 void setInnerNonSharedNode(Node*);
90 void setURLElement(Element*); 90 void setURLElement(Element*);
91 void setScrollbar(Scrollbar*); 91 void setScrollbar(Scrollbar*);
92 void setIsOverWidget(bool b) { m_isOverWidget = b; } 92 void setIsOverWidget(bool b) { m_isOverWidget = b; }
93 93
94 Frame* targetFrame() const; 94 Frame* targetFrame() const;
95 bool isSelected() const; 95 bool isSelected() const;
96 String spellingToolTip(TextDirection&) const; 96 String spellingToolTip(TextDirection&) const;
97 String title(TextDirection&) const; 97 String title(TextDirection&) const;
98 String innerTextIfTruncated(TextDirection&) const;
99 String altDisplayString() const; 98 String altDisplayString() const;
100 String titleDisplayString() const; 99 String titleDisplayString() const;
101 Image* image() const; 100 Image* image() const;
102 IntRect imageRect() const; 101 IntRect imageRect() const;
103 KURL absoluteImageURL() const; 102 KURL absoluteImageURL() const;
104 KURL absolutePDFURL() const;
105 KURL absoluteMediaURL() const; 103 KURL absoluteMediaURL() const;
106 KURL absoluteLinkURL() const; 104 KURL absoluteLinkURL() const;
107 String textContent() const; 105 String textContent() const;
108 bool isLiveLink() const; 106 bool isLiveLink() const;
109 bool isContentEditable() const; 107 bool isContentEditable() const;
110 void toggleMediaControlsDisplay() const;
111 void toggleMediaLoopPlayback() const;
112 void enterFullscreenForVideo() const;
113 bool mediaControlsEnabled() const;
114 bool mediaLoopEnabled() const;
115 bool mediaPlaying() const;
116 bool mediaSupportsFullscreen() const;
117 void toggleMediaPlayState() const;
118 bool mediaHasAudio() const;
119 bool mediaIsVideo() const;
120 bool mediaMuted() const;
121 void toggleMediaMuteState() const;
122 108
123 // Returns true if it is rect-based hit test and needs to continue until the rect is fully 109 // Returns true if it is rect-based hit test and needs to continue until the rect is fully
124 // enclosed by the boundaries of a node. 110 // enclosed by the boundaries of a node.
125 bool addNodeToRectBasedTestResult(Node*, const HitTestRequest&, const HitTes tLocation& pointInContainer, const LayoutRect& = LayoutRect()); 111 bool addNodeToRectBasedTestResult(Node*, const HitTestRequest&, const HitTes tLocation& pointInContainer, const LayoutRect& = LayoutRect());
126 bool addNodeToRectBasedTestResult(Node*, const HitTestRequest&, const HitTes tLocation& pointInContainer, const FloatRect&); 112 bool addNodeToRectBasedTestResult(Node*, const HitTestRequest&, const HitTes tLocation& pointInContainer, const FloatRect&);
127 void append(const HitTestResult&); 113 void append(const HitTestResult&);
128 114
129 // If m_rectBasedTestResult is 0 then set it to a new NodeSet. Return *m_rec tBasedTestResult. Lazy allocation makes 115 // If m_rectBasedTestResult is 0 then set it to a new NodeSet. Return *m_rec tBasedTestResult. Lazy allocation makes
130 // sense because the NodeSet is seldom necessary, and it's somewhat expensiv e to allocate and initialize. This method does 116 // sense because the NodeSet is seldom necessary, and it's somewhat expensiv e to allocate and initialize. This method does
131 // the same thing as mutableRectBasedTestResult(), but here the return value is const. 117 // the same thing as mutableRectBasedTestResult(), but here the return value is const.
(...skipping 17 matching lines...) Expand all
149 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderWidget for example). 135 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderWidget for example).
150 136
151 mutable OwnPtr<NodeSet> m_rectBasedTestResult; 137 mutable OwnPtr<NodeSet> m_rectBasedTestResult;
152 }; 138 };
153 139
154 String displayString(const String&, const Node*); 140 String displayString(const String&, const Node*);
155 141
156 } // namespace WebCore 142 } // namespace WebCore
157 143
158 #endif // HitTestResult_h 144 #endif // HitTestResult_h
OLDNEW
« no previous file with comments | « Source/core/page/Settings.in ('k') | Source/core/rendering/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698