|
Add TextRange and GetSelectedRange, SelectRange and GetCursorPosition, which are necessary to implement ominibox.
I'm adding them as Views only and left win/gtk blank because we don't use win/gtk impl for omnibox.
I also didn't add TextRange variable to Textfield as its state is kept in Model. Let me know if you want to add it in Textfield class as well.
BUG=none
TEST=added new tests RangeTest, SelectRangeTest
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71811
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+325 lines, -26 lines) |
Patch |
 |
M |
views/controls/textfield/native_textfield_gtk.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
views/controls/textfield/native_textfield_gtk.cc
|
View
|
1
2
3
4
|
2 chunks |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
views/controls/textfield/native_textfield_views.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
views/controls/textfield/native_textfield_views.cc
|
View
|
|
1 chunk |
+14 lines, -2 lines |
0 comments
|
Download
|
 |
M |
views/controls/textfield/native_textfield_win.h
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
views/controls/textfield/native_textfield_win.cc
|
View
|
1
2
3
4
|
2 chunks |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
views/controls/textfield/native_textfield_wrapper.h
|
View
|
1
2
3
4
|
3 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
 |
M |
views/controls/textfield/textfield.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+62 lines, -2 lines |
0 comments
|
Download
|
 |
M |
views/controls/textfield/textfield.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+39 lines, -1 line |
0 comments
|
Download
|
 |
M |
views/controls/textfield/textfield_views_model.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
views/controls/textfield/textfield_views_model.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
 |
M |
views/controls/textfield/textfield_views_model_unittest.cc
|
View
|
1
2
3
4
|
11 chunks |
+131 lines, -15 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|