Save/restore views omnibox selection on blur/focus, select all on click focus.
*This CL depends on WIP: https://codereview.chromium.org/12299003/

Save saved_temporary_selection_ on OmniboxViewViews::OnBlur().
Restore saved_temporary_selection_ on OmniboxViewViews::OnFocus().
(only if select_all_on_mouse_release_ won't trigger)

Remove code to set the cursor to the text end on [tab] with a normal selection.

Run applicable handlers in NativeTextfieldViews::OnMousePressed.
(textfield_->OnMousePressed wasn't being run properly due to logic error)

BUG=134701, 176708
TEST=Cros (and Win Aura / with --enable-views-textfield) Omnibox behaves more like Windows (select all on click-to-focus, save/restore selection on tab-to-focus)
R=pkasting@chromium.org
TBR=sky@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12300008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183239 0039d316-1c4b-4281-b951-d872f2087c98
2 files changed