OLD | NEW |
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/autocomplete/autocomplete_controller.h" | 5 #include "chrome/browser/autocomplete/autocomplete_controller.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 return; | 73 return; |
74 } | 74 } |
75 case AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED: { | 75 case AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED: { |
76 *subtype = 35; | 76 *subtype = 35; |
77 return; | 77 return; |
78 } | 78 } |
79 case AutocompleteMatchType::SEARCH_SUGGEST_PROFILE: { | 79 case AutocompleteMatchType::SEARCH_SUGGEST_PROFILE: { |
80 *subtype = 44; | 80 *subtype = 44; |
81 return; | 81 return; |
82 } | 82 } |
| 83 case AutocompleteMatchType::SEARCH_SUGGEST_ANSWER: { |
| 84 *subtype = 70; |
| 85 return; |
| 86 } |
83 case AutocompleteMatchType::NAVSUGGEST: { | 87 case AutocompleteMatchType::NAVSUGGEST: { |
84 // Do not set subtype here; subtype may have been set above. | 88 // Do not set subtype here; subtype may have been set above. |
85 *type = 5; | 89 *type = 5; |
86 return; | 90 return; |
87 } | 91 } |
88 case AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED: { | 92 case AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED: { |
89 *subtype = 57; | 93 *subtype = 57; |
90 return; | 94 return; |
91 } | 95 } |
92 case AutocompleteMatchType::URL_WHAT_YOU_TYPED: { | 96 case AutocompleteMatchType::URL_WHAT_YOU_TYPED: { |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 this, &AutocompleteController::ExpireCopiedEntries); | 647 this, &AutocompleteController::ExpireCopiedEntries); |
644 } | 648 } |
645 | 649 |
646 void AutocompleteController::StartStopTimer() { | 650 void AutocompleteController::StartStopTimer() { |
647 stop_timer_.Start(FROM_HERE, | 651 stop_timer_.Start(FROM_HERE, |
648 stop_timer_duration_, | 652 stop_timer_duration_, |
649 base::Bind(&AutocompleteController::Stop, | 653 base::Bind(&AutocompleteController::Stop, |
650 base::Unretained(this), | 654 base::Unretained(this), |
651 false)); | 655 false)); |
652 } | 656 } |
OLD | NEW |