summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 19:13:46 +0000
committerstevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 19:13:46 +0000
commitfbf2ce7fba29eab550fee1bc8a2a7422a92bca77 (patch)
treeeb61d4c9738d0c2ad7799ba616d2594919119dd8
parent51620d0b22f462ec2290d3426e010b476690c924 (diff)
downloadchromium_src-fbf2ce7fba29eab550fee1bc8a2a7422a92bca77.zip
chromium_src-fbf2ce7fba29eab550fee1bc8a2a7422a92bca77.tar.gz
chromium_src-fbf2ce7fba29eab550fee1bc8a2a7422a92bca77.tar.bz2
Changed CLB to select all text when active tab is clicked.
BUG=83537 TEST=In compact nav mode, ensure that clicking an active (foreground) tab shows the compact location bar with the text selected. Review URL: http://codereview.chromium.org/6992034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86670 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc b/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc
index e496cd7..d0376a3 100644
--- a/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc
+++ b/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc
@@ -365,7 +365,10 @@ void CompactLocationBarViewHost::TabChangedAt(TabContentsWrapper* contents,
}
void CompactLocationBarViewHost::ActiveTabClicked(int index) {
+ // On active tab click, show the compact location bar and also select all the
+ // contents for quick editing.
UpdateOnTabChange(index, true);
+ GetCompactLocationBarView()->SetFocusAndSelection(true);
}
////////////////////////////////////////////////////////////////////////////////