| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 bool lastChangeWasUserEdit() const { return m_lastChangeWasUserEdit; } | 40 bool lastChangeWasUserEdit() const { return m_lastChangeWasUserEdit; } |
| 41 void setLastChangeWasUserEdit(bool lastChangeWasUserEdit); | 41 void setLastChangeWasUserEdit(bool lastChangeWasUserEdit); |
| 42 | 42 |
| 43 int selectionStart(); | 43 int selectionStart(); |
| 44 int selectionEnd(); | 44 int selectionEnd(); |
| 45 void setSelectionStart(int); | 45 void setSelectionStart(int); |
| 46 void setSelectionEnd(int); | 46 void setSelectionEnd(int); |
| 47 void select(); | 47 void select(); |
| 48 void setSelectionRange(int start, int end); | 48 void setSelectionRange(int start, int end); |
| 49 VisibleSelection selection(int start, int end) const; | 49 PassRefPtr<Range> selection(int start, int end) const; |
| 50 | 50 |
| 51 virtual void subtreeHasChanged(); | 51 virtual void subtreeHasChanged(); |
| 52 String text(); | 52 String text(); |
| 53 String textWithHardLineBreaks(); | 53 String textWithHardLineBreaks(); |
| 54 void selectionChanged(bool userTriggered); | 54 void selectionChanged(bool userTriggered); |
| 55 | 55 |
| 56 VisiblePosition visiblePositionForIndex(int index); | 56 VisiblePosition visiblePositionForIndex(int index); |
| 57 int indexForVisiblePosition(const VisiblePosition&); | 57 int indexForVisiblePosition(const VisiblePosition&); |
| 58 | 58 |
| 59 void updatePlaceholderVisibility(bool, bool); | 59 void updatePlaceholderVisibility(bool, bool); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 ASSERT(!object || object->isTextControl()); | 125 ASSERT(!object || object->isTextControl()); |
| 126 return static_cast<const RenderTextControl*>(object); | 126 return static_cast<const RenderTextControl*>(object); |
| 127 } | 127 } |
| 128 | 128 |
| 129 // This will catch anyone doing an unnecessary cast. | 129 // This will catch anyone doing an unnecessary cast. |
| 130 void toRenderTextControl(const RenderTextControl*); | 130 void toRenderTextControl(const RenderTextControl*); |
| 131 | 131 |
| 132 } // namespace WebCore | 132 } // namespace WebCore |
| 133 | 133 |
| 134 #endif // RenderTextControl_h | 134 #endif // RenderTextControl_h |
| OLD | NEW |