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

Issue 12300008: Save/restore views omnibox selection on blur/focus, select all on click focus. (Closed)

Created:
7 years, 10 months ago by msw
Modified:
7 years, 10 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, tfarina, James Su, penghuang+watch_chromium.org, yusukes+watch_chromium.org, oshima
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183239

Patch Set 1 : Save selection on blur, restore on focus (via tab or mouse). #

Patch Set 2 : Select all on click-to-focus, instead of restoring the selection. #

Patch Set 3 : Sync and rebase #

Total comments: 4

Patch Set 4 : Restore comment. #

Patch Set 5 : Sync and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -23 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 chunks +11 lines, -20 lines 0 comments Download
M ui/views/controls/textfield/native_textfield_views.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
msw
Hey Peter and Oshima, please take a look; thanks! Note that this depends on https://codereview.chromium.org/12299003/
7 years, 10 months ago (2013-02-18 22:16:16 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/12300008/diff/4003/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (left): https://codereview.chromium.org/12300008/diff/4003/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#oldcode245 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:245: // into view and shift the contents jarringly. ...
7 years, 10 months ago (2013-02-19 01:56:24 UTC) #2
msw
Thanks, I'll rebase as needed and land with CQ / green tryjobs. https://codereview.chromium.org/12300008/diff/4003/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc ...
7 years, 10 months ago (2013-02-19 02:14:10 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12300008/10017
7 years, 10 months ago (2013-02-19 05:47:23 UTC) #4
commit-bot: I haz the power
Presubmit check for 12300008-10017 failed and returned exit status 1. INFO:root:Found 2 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-19 05:47:25 UTC) #5
msw
TBR'ing to Scott; take a look at my fix in native_textfield_views.cc if you wish.
7 years, 10 months ago (2013-02-19 07:55:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12300008/10017
7 years, 10 months ago (2013-02-19 07:56:14 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-19 09:31:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12300008/10017
7 years, 10 months ago (2013-02-19 10:26:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12300008/6015
7 years, 10 months ago (2013-02-19 16:00:32 UTC) #10
commit-bot: I haz the power
7 years, 10 months ago (2013-02-19 17:38:44 UTC) #11
Message was sent while issue was closed.
Change committed as 183239

Powered by Google App Engine
This is Rietveld 408576698