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

Side by Side Diff: chrome/browser/metrics/metrics_log.cc

Issue 20587003: InstantExtended: record initial focus state for omnibox interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 #include "chrome/browser/metrics/metrics_log.h" 5 #include "chrome/browser/metrics/metrics_log.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 case AutocompleteInput::INVALID_SPEC: 147 case AutocompleteInput::INVALID_SPEC:
148 return OmniboxEventProto::INVALID_SPEC; 148 return OmniboxEventProto::INVALID_SPEC;
149 case AutocompleteInput::NEW_TAB_PAGE: 149 case AutocompleteInput::NEW_TAB_PAGE:
150 return OmniboxEventProto::NEW_TAB_PAGE; 150 return OmniboxEventProto::NEW_TAB_PAGE;
151 case AutocompleteInput::BLANK: 151 case AutocompleteInput::BLANK:
152 return OmniboxEventProto::BLANK; 152 return OmniboxEventProto::BLANK;
153 case AutocompleteInput::HOMEPAGE: 153 case AutocompleteInput::HOMEPAGE:
154 return OmniboxEventProto::HOMEPAGE; 154 return OmniboxEventProto::HOMEPAGE;
155 case AutocompleteInput::OTHER: 155 case AutocompleteInput::OTHER:
156 return OmniboxEventProto::OTHER; 156 return OmniboxEventProto::OTHER;
157 case AutocompleteInput::INSTANT_NEW_TAB_PAGE:
158 return OmniboxEventProto::INSTANT_NEW_TAB_PAGE;
159 case AutocompleteInput::SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT: 157 case AutocompleteInput::SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT:
160 return OmniboxEventProto:: 158 return OmniboxEventProto::
161 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT; 159 SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT;
160 case AutocompleteInput::INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS:
161 return OmniboxEventProto::
162 INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS;
163 case AutocompleteInput::INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS:
164 return OmniboxEventProto::
165 INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS;
162 } 166 }
163 return OmniboxEventProto::INVALID_SPEC; 167 return OmniboxEventProto::INVALID_SPEC;
164 } 168 }
165 169
166 ProfilerEventProto::TrackedObject::ProcessType AsProtobufProcessType( 170 ProfilerEventProto::TrackedObject::ProcessType AsProtobufProcessType(
167 int process_type) { 171 int process_type) {
168 switch (process_type) { 172 switch (process_type) {
169 case content::PROCESS_TYPE_BROWSER: 173 case content::PROCESS_TYPE_BROWSER:
170 return ProfilerEventProto::TrackedObject::BROWSER; 174 return ProfilerEventProto::TrackedObject::BROWSER;
171 case content::PROCESS_TYPE_RENDERER: 175 case content::PROCESS_TYPE_RENDERER:
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 952
949 paired_device->set_vendor_prefix(vendor_prefix); 953 paired_device->set_vendor_prefix(vendor_prefix);
950 } 954 }
951 955
952 paired_device->set_vendor_id(device->GetVendorID()); 956 paired_device->set_vendor_id(device->GetVendorID());
953 paired_device->set_product_id(device->GetProductID()); 957 paired_device->set_product_id(device->GetProductID());
954 paired_device->set_device_id(device->GetDeviceID()); 958 paired_device->set_device_id(device->GetDeviceID());
955 } 959 }
956 #endif // defined(OS_CHROMEOS) 960 #endif // defined(OS_CHROMEOS)
957 } 961 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_input.h ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698