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

Side by Side Diff: chrome/common/instant_types.h

Issue 10732002: Upstream rewrite of Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First round of comments Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_INSTANT_TYPES_H_ 5 #ifndef CHROME_COMMON_INSTANT_TYPES_H_
6 #define CHROME_COMMON_INSTANT_TYPES_H_ 6 #define CHROME_COMMON_INSTANT_TYPES_H_
7 7
8 // Enum describing the ways instant suggest text can be completed. 8 #include <string>
9
10 // Ways that the Instant suggested text is autocompleted into the omnibox.
9 enum InstantCompleteBehavior { 11 enum InstantCompleteBehavior {
10 // Complete the suggestion now. 12 // Autocomplete the suggestion immediately.
11 INSTANT_COMPLETE_NOW, 13 INSTANT_COMPLETE_NOW,
12 14
13 // Complete the suggestion after a delay. 15 // Autocomplete the suggestion after a delay.
sky 2012/07/19 17:55:19 Its my understanding we're not using this, can it
Jered 2012/07/19 22:01:33 It's still referenced several places in the code,
sky 2012/07/19 23:44:40 I think it can be removed from all of them. But, t
Jered 2012/07/20 16:10:18 I will wait, then.
14 INSTANT_COMPLETE_DELAYED, 16 INSTANT_COMPLETE_DELAYED,
15 17
16 // Never complete the suggestion. 18 // Do not autocomplete the suggestion. The suggestion may still be displayed
19 // in the omnibox, but not made a part of the omnibox text by default (e.g.,
20 // by displaying the suggestion as non-highlighted, non-selected gray text).
17 INSTANT_COMPLETE_NEVER 21 INSTANT_COMPLETE_NEVER
18 }; 22 };
19 23
20 #endif // CHROME_COMMON_INSTANT_TYPES_H_ 24 #endif // CHROME_COMMON_INSTANT_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698