diff options
author | suzhe@google.com <suzhe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-04 21:28:30 +0000 |
---|---|---|
committer | suzhe@google.com <suzhe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-04 21:28:30 +0000 |
commit | 91d139522eea3e54dd5a7c0e3594c17f839f5758 (patch) | |
tree | 1aa8d1c6bcd940e0f4e3663bae1d8f93e9986693 | |
parent | 46dedb11925d4dad7833bc804ebb37e062463d11 (diff) | |
download | chromium_src-91d139522eea3e54dd5a7c0e3594c17f839f5758.zip chromium_src-91d139522eea3e54dd5a7c0e3594c17f839f5758.tar.gz chromium_src-91d139522eea3e54dd5a7c0e3594c17f839f5758.tar.bz2 |
Adds comment as per review feedback of http://codereview.chromium.org/6075004/
BUG=64983
TEST=none
Review URL: http://codereview.chromium.org/6018015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70449 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc index 68cdc82..62b9564 100644 --- a/chrome/browser/autocomplete/autocomplete_edit.cc +++ b/chrome/browser/autocomplete/autocomplete_edit.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -186,6 +186,13 @@ bool AutocompleteEditModel::UseVerbatimInstant() { return true; #endif + // The value of input.initial_prevent_inline_autocomplete() is determined by + // following conditions: + // 1. If the caret is at the end of the text (checked below). + // 2. If it's in IME composition mode. + // As we use a separated widget for displaying the instant suggest, it won't + // interfere with IME composition, so we don't need to care about the value of + // input.initial_prevent_inline_autocomplete() here. if (view_->DeleteAtEndPressed() || (popup_->selected_line() != 0) || just_deleted_text_) return true; |