Descriptionno native implementation of Textfield.
This is based on the original CL http://codereview.chromium.org/3142008.
The key difference is
* This uses Textfield framework and NativeTextfieldView implements NativeTextfieldWrapper.
This allows us to swap the implementation without recompling the tree and can start
testing on bots.
* Changed the name of the model to TextfieldViewModel as TextfieldModel may be confusing
as other Textfield implementations are not using it. I also changed to use string16 instead
of gap buffer as it's enough for single line text. We can update the model to use GapBuffer when necessary.
* Changed to use string16 as that's what chrome codebase should use.
* Added a switch to turn on TextfieldView.
I also filled a couple of features such as:
* selection by key
* mouse actions (move cursor, selection)
* used WordIterator, which is i18n compatible, to move cursor by word
* blinking cursor
This is only for linux based build due to KeyStroke difference.
I'm going to move some of test utlity function in chrome/browser/automation/ui_controls to app/test
and will add more test once the migration is done.
BUG=none
TEST=new unit tests are added : NativeTestfieldViewTest and TextfieldViewModelTest.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69523
Patch Set 1 #Patch Set 2 : fix test #Patch Set 3 : " #
Total comments: 73
Patch Set 4 : addressed comments. fix touch build #Patch Set 5 : "remove chrome switch. always use TextfieldView for touch" #Patch Set 6 : " #Patch Set 7 : view -> views rename #
Total comments: 1
Patch Set 8 : fix test #Patch Set 9 : " #
Total comments: 1
Patch Set 10 : remove selection_end and add tests #
Total comments: 18
Patch Set 11 : " #Patch Set 12 : " #
Total comments: 4
Patch Set 13 : fix comment #Messages
Total messages: 20 (0 generated)
|