Commit fbf2ce7f authored by stevet@chromium.org's avatar stevet@chromium.org

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
parent 51620d0b
...@@ -365,7 +365,10 @@ void CompactLocationBarViewHost::TabChangedAt(TabContentsWrapper* contents, ...@@ -365,7 +365,10 @@ void CompactLocationBarViewHost::TabChangedAt(TabContentsWrapper* contents,
} }
void CompactLocationBarViewHost::ActiveTabClicked(int index) { 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); UpdateOnTabChange(index, true);
GetCompactLocationBarView()->SetFocusAndSelection(true);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment