From a26dc3692818f34a1bb5341931ac2cd26819bb09 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Fri, 23 Apr 2010 01:48:58 +0000 Subject: Don't select all when autofocusing the location bar on New Tab creation. Users could already be typing in the omnibox before the load commits (e.g. due to a slow renderer process startup) and this typing would then be selected and overwritten. BUG=41466 TEST=On a very slow machine, typing before a new tab finishes loading should not be selected or cleared once the tab finishes loading. Review URL: http://codereview.chromium.org/1738004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45406 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/toolbar_controller.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/cocoa/toolbar_controller.h') diff --git a/chrome/browser/cocoa/toolbar_controller.h b/chrome/browser/cocoa/toolbar_controller.h index 3c5086b..0fdd8c4 100644 --- a/chrome/browser/cocoa/toolbar_controller.h +++ b/chrome/browser/cocoa/toolbar_controller.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -126,7 +126,7 @@ class ToolbarModel; - (id)customFieldEditorForObject:(id)obj; // Make the location bar the first responder, if possible. -- (void)focusLocationBar; +- (void)focusLocationBar:(BOOL)selectAll; // Updates the toolbar (and transitively the location bar) with the states of // the specified |tab|. If |shouldRestore| is true, we're switching -- cgit v1.1