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

Side by Side Diff: WebCore/rendering/RenderTextControl.h

Issue 4056004: Merge 69831 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 2 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
« no previous file with comments | « WebCore/html/HTMLFormControlElement.cpp ('k') | WebCore/rendering/RenderTextControl.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, 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
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
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
OLDNEW
« no previous file with comments | « WebCore/html/HTMLFormControlElement.cpp ('k') | WebCore/rendering/RenderTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698