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

Unified Diff: chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc

Issue 6992034: Changed CLB to select all text when active tab is clicked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc
===================================================================
--- chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc (revision 86419)
+++ chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc (working copy)
@@ -349,7 +349,9 @@
}
void CompactLocationBarViewHost::ActiveTabClicked(int index) {
- UpdateOnTabChange(index, true);
+ // On active tab click, show the compact location bar and also select all the
+ // contents for quick editing.
+ browser_view()->SetFocusToLocationBar(true);
MAD 2011/05/25 00:21:18 Feels a bit weird to have to go back to the browse
SteveT 2011/05/25 04:16:42 Agreed. I forgot that the CLBView had a method to
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698