OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 void setBase(const VisiblePosition&, EUserTriggered = NotUserTriggered); | 131 void setBase(const VisiblePosition&, EUserTriggered = NotUserTriggered); |
132 void setExtent(const VisiblePosition&, EUserTriggered = NotUserTriggered); | 132 void setExtent(const VisiblePosition&, EUserTriggered = NotUserTriggered); |
133 | 133 |
134 Position base() const { return m_selection.base(); } | 134 Position base() const { return m_selection.base(); } |
135 Position extent() const { return m_selection.extent(); } | 135 Position extent() const { return m_selection.extent(); } |
136 Position start() const { return m_selection.start(); } | 136 Position start() const { return m_selection.start(); } |
137 Position end() const { return m_selection.end(); } | 137 Position end() const { return m_selection.end(); } |
138 | 138 |
139 // Return the renderer that is responsible for painting the caret (in the se
lection start node) | 139 // Return the renderer that is responsible for painting the caret (in the se
lection start node) |
140 RenderObject* caretRenderer() const; | 140 RenderBlock* caretRenderer() const; |
141 | 141 |
142 // Caret rect local to the caret's renderer | 142 // Caret rect local to the caret's renderer |
143 LayoutRect localCaretRect(); | 143 LayoutRect localCaretRect(); |
144 | 144 |
145 // Bounds of (possibly transformed) caret in absolute coords | 145 // Bounds of (possibly transformed) caret in absolute coords |
146 IntRect absoluteCaretBounds(); | 146 IntRect absoluteCaretBounds(); |
147 void setCaretRectNeedsUpdate() { CaretBase::setCaretRectNeedsUpdate(); } | 147 void setCaretRectNeedsUpdate() { CaretBase::setCaretRectNeedsUpdate(); } |
148 | 148 |
149 void didChangeFocus(); | 149 void didChangeFocus(); |
150 void willBeModified(EAlteration, SelectionDirection); | 150 void willBeModified(EAlteration, SelectionDirection); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 } | 306 } |
307 } // namespace blink | 307 } // namespace blink |
308 | 308 |
309 #ifndef NDEBUG | 309 #ifndef NDEBUG |
310 // Outside the WebCore namespace for ease of invocation from gdb. | 310 // Outside the WebCore namespace for ease of invocation from gdb. |
311 void showTree(const blink::FrameSelection&); | 311 void showTree(const blink::FrameSelection&); |
312 void showTree(const blink::FrameSelection*); | 312 void showTree(const blink::FrameSelection*); |
313 #endif | 313 #endif |
314 | 314 |
315 #endif // FrameSelection_h | 315 #endif // FrameSelection_h |
OLD | NEW |