| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ios/chrome/browser/ui/omnibox/chrome_omnibox_client_ios.h" | 5 #include "ios/chrome/browser/ui/omnibox/chrome_omnibox_client_ios.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "components/favicon/ios/web_favicon_driver.h" | 9 #include "components/favicon/ios/web_favicon_driver.h" |
| 10 #include "components/omnibox/browser/omnibox_edit_controller.h" | 10 #include "components/omnibox/browser/omnibox_edit_controller.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 return ios::AutocompleteClassifierFactory::GetForBrowserState(browser_state_); | 116 return ios::AutocompleteClassifierFactory::GetForBrowserState(browser_state_); |
| 117 } | 117 } |
| 118 | 118 |
| 119 gfx::Image ChromeOmniboxClientIOS::GetIconIfExtensionMatch( | 119 gfx::Image ChromeOmniboxClientIOS::GetIconIfExtensionMatch( |
| 120 const AutocompleteMatch& match) const { | 120 const AutocompleteMatch& match) const { |
| 121 // Extensions are not supported on iOS. | 121 // Extensions are not supported on iOS. |
| 122 return gfx::Image(); | 122 return gfx::Image(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 bool ChromeOmniboxClientIOS::ProcessExtensionKeyword( | 125 bool ChromeOmniboxClientIOS::ProcessExtensionKeyword( |
| 126 TemplateURL* template_url, | 126 const TemplateURL* template_url, |
| 127 const AutocompleteMatch& match, | 127 const AutocompleteMatch& match, |
| 128 WindowOpenDisposition disposition, | 128 WindowOpenDisposition disposition, |
| 129 OmniboxNavigationObserver* observer) { | 129 OmniboxNavigationObserver* observer) { |
| 130 // Extensions are not supported on iOS. | 130 // Extensions are not supported on iOS. |
| 131 return false; | 131 return false; |
| 132 } | 132 } |
| 133 | 133 |
| 134 void ChromeOmniboxClientIOS::OnInputStateChanged() {} | 134 void ChromeOmniboxClientIOS::OnInputStateChanged() {} |
| 135 | 135 |
| 136 void ChromeOmniboxClientIOS::OnFocusChanged(OmniboxFocusState state, | 136 void ChromeOmniboxClientIOS::OnFocusChanged(OmniboxFocusState state, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 const AutocompleteMatch& current_match, | 168 const AutocompleteMatch& current_match, |
| 169 bool user_input_in_progress, | 169 bool user_input_in_progress, |
| 170 base::string16& user_text, | 170 base::string16& user_text, |
| 171 const AutocompleteResult& result, | 171 const AutocompleteResult& result, |
| 172 bool is_popup_open, | 172 bool is_popup_open, |
| 173 bool has_focus) {} | 173 bool has_focus) {} |
| 174 | 174 |
| 175 void ChromeOmniboxClientIOS::OnInputAccepted(const AutocompleteMatch& match) {} | 175 void ChromeOmniboxClientIOS::OnInputAccepted(const AutocompleteMatch& match) {} |
| 176 | 176 |
| 177 void ChromeOmniboxClientIOS::OnRevert() {} | 177 void ChromeOmniboxClientIOS::OnRevert() {} |
| OLD | NEW |