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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_input.h

Issue 20587003: InstantExtended: record initial focus state for omnibox interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments. Created 7 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 enum PageClassification { 51 enum PageClassification {
52 INVALID_SPEC = 0, // invalid URI; shouldn't happen 52 INVALID_SPEC = 0, // invalid URI; shouldn't happen
53 NEW_TAB_PAGE = 1, // chrome://newtab/ 53 NEW_TAB_PAGE = 1, // chrome://newtab/
54 // Note that chrome://newtab/ doesn't have to be the built-in 54 // Note that chrome://newtab/ doesn't have to be the built-in
55 // version; it could be replaced by an extension. 55 // version; it could be replaced by an extension.
56 BLANK = 2, // about:blank 56 BLANK = 2, // about:blank
57 HOMEPAGE = 3, // user switched settings to "open this page" mode. 57 HOMEPAGE = 3, // user switched settings to "open this page" mode.
58 // Note that if the homepage is set to the new tab page or about blank, 58 // Note that if the homepage is set to the new tab page or about blank,
59 // then we'll classify the web page into those categories, not HOMEPAGE. 59 // then we'll classify the web page into those categories, not HOMEPAGE.
60 OTHER = 4, // everything not included somewhere else on this list 60 OTHER = 4, // everything not included somewhere else on this list
61 INSTANT_NEW_TAB_PAGE = 5, // new tab page rendered by Instant 61 OBSOLETE_INSTANT_NEW_TAB_PAGE = 5, // new tab page rendered by Instant
62 // The user is on a search result page that's doing search term 62 // The user is on a search result page that's doing search term
63 // replacement, meaning the search terms should've appeared in the omnibox 63 // replacement, meaning the search terms should've appeared in the omnibox
64 // before the user started editing it, not the URL of the page. 64 // before the user started editing it, not the URL of the page.
65 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT = 6 65 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT = 6,
66 // The new tab page in which this omnibox interaction first started
67 // with the user having focus in the omnibox.
68 INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS = 7,
Peter Kasting 2013/08/02 17:59:38 It's inappropriate to add this data here. This en
Mark P 2013/08/02 18:10:39 I explicitly asked him to include it in PageClassi
69 // The new tab page in which this omnibox interaction first started
70 // with the user having focus in the fakebox.
71 INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS = 8,
66 }; 72 };
67 73
68 AutocompleteInput(); 74 AutocompleteInput();
69 // |text| and |cursor_position| represent the input query and location of 75 // |text| and |cursor_position| represent the input query and location of
70 // the cursor with the query respectively. |cursor_position| may be set to 76 // the cursor with the query respectively. |cursor_position| may be set to
71 // string16::npos if the input |text| doesn't come directly from the user's 77 // string16::npos if the input |text| doesn't come directly from the user's
72 // typing. 78 // typing.
73 // 79 //
74 // |desired_tld| is the user's desired TLD, if one is not already present in 80 // |desired_tld| is the user's desired TLD, if one is not already present in
75 // the text to autocomplete. When this is non-empty, it also implies that 81 // the text to autocomplete. When this is non-empty, it also implies that
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 url_parse::Parsed parts_; 228 url_parse::Parsed parts_;
223 string16 scheme_; 229 string16 scheme_;
224 GURL canonicalized_url_; 230 GURL canonicalized_url_;
225 bool prevent_inline_autocomplete_; 231 bool prevent_inline_autocomplete_;
226 bool prefer_keyword_; 232 bool prefer_keyword_;
227 bool allow_exact_keyword_match_; 233 bool allow_exact_keyword_match_;
228 MatchesRequested matches_requested_; 234 MatchesRequested matches_requested_;
229 }; 235 };
230 236
231 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ 237 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | chrome/browser/metrics/metrics_log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698