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

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

Issue 7145021: Merge 88456 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 int selectionStart() const; 43 int selectionStart() const;
44 int selectionEnd() const; 44 int selectionEnd() const;
45 PassRefPtr<Range> selection(int start, int end) const; 45 PassRefPtr<Range> selection(int start, int end) const;
46 46
47 virtual void subtreeHasChanged(); 47 virtual void subtreeHasChanged();
48 String text(); 48 String text();
49 String textWithHardLineBreaks(); 49 String textWithHardLineBreaks();
50 void selectionChanged(bool userTriggered); 50 void selectionChanged(bool userTriggered);
51 51
52 VisiblePosition visiblePositionForIndex(int index) const; 52 VisiblePosition visiblePositionForIndex(int index) const;
53 int indexForVisiblePosition(const VisiblePosition&) const; 53 static int indexForVisiblePosition(HTMLElement*, const VisiblePosition&);
54 54
55 void updatePlaceholderVisibility(bool, bool); 55 void updatePlaceholderVisibility(bool, bool);
56 56
57 protected: 57 protected:
58 RenderTextControl(Node*, bool); 58 RenderTextControl(Node*, bool);
59 59
60 int scrollbarThickness() const; 60 int scrollbarThickness() const;
61 void adjustInnerTextStyle(const RenderStyle* startStyle, RenderStyle* textBl ockStyle) const; 61 void adjustInnerTextStyle(const RenderStyle* startStyle, RenderStyle* textBl ockStyle) const;
62 void setInnerTextValue(const String&); 62 void setInnerTextValue(const String&);
63 63
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual void addFocusRingRects(Vector<IntRect>&, const IntPoint&); 95 virtual void addFocusRingRects(Vector<IntRect>&, const IntPoint&);
96 96
97 virtual bool canBeProgramaticallyScrolled(bool) const { return true; } 97 virtual bool canBeProgramaticallyScrolled(bool) const { return true; }
98 98
99 virtual bool requiresForcedStyleRecalcPropagation() const { return true; } 99 virtual bool requiresForcedStyleRecalcPropagation() const { return true; }
100 100
101 String finishText(Vector<UChar>&) const; 101 String finishText(Vector<UChar>&) const;
102 102
103 bool hasVisibleTextArea() const; 103 bool hasVisibleTextArea() const;
104 friend void setSelectionRange(Node*, int start, int end); 104 friend void setSelectionRange(Node*, int start, int end);
105 bool isSelectableElement(Node*) const; 105 static bool isSelectableElement(HTMLElement*, Node*);
106 106
107 virtual int textBlockInsetLeft() const = 0; 107 virtual int textBlockInsetLeft() const = 0;
108 virtual int textBlockInsetRight() const = 0; 108 virtual int textBlockInsetRight() const = 0;
109 virtual int textBlockInsetTop() const = 0; 109 virtual int textBlockInsetTop() const = 0;
110 110
111 void paintPlaceholder(PaintInfo&, int tx, int ty); 111 void paintPlaceholder(PaintInfo&, int tx, int ty);
112 112
113 bool m_lastChangeWasUserEdit; 113 bool m_lastChangeWasUserEdit;
114 }; 114 };
115 115
(...skipping 10 matching lines...) Expand all
126 ASSERT(!object || object->isTextControl()); 126 ASSERT(!object || object->isTextControl());
127 return static_cast<const RenderTextControl*>(object); 127 return static_cast<const RenderTextControl*>(object);
128 } 128 }
129 129
130 // This will catch anyone doing an unnecessary cast. 130 // This will catch anyone doing an unnecessary cast.
131 void toRenderTextControl(const RenderTextControl*); 131 void toRenderTextControl(const RenderTextControl*);
132 132
133 } // namespace WebCore 133 } // namespace WebCore
134 134
135 #endif // RenderTextControl_h 135 #endif // RenderTextControl_h
OLDNEW
« no previous file with comments | « Source/WebCore/accessibility/AccessibilityRenderObject.cpp ('k') | Source/WebCore/rendering/RenderTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698