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

Side by Side Diff: ios/chrome/browser/ui/omnibox/chrome_omnibox_client_ios.mm

Issue 2707963002: [ObjC ARC] Converts ios/chrome/browser/ui/omnibox:omnibox_internal to ARC. (Closed)
Patch Set: ARC in new code Created 3 years, 9 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
OLDNEW
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"
11 #include "components/search_engines/template_url_service.h" 11 #include "components/search_engines/template_url_service.h"
12 #include "ios/chrome/browser/autocomplete/autocomplete_classifier_factory.h" 12 #include "ios/chrome/browser/autocomplete/autocomplete_classifier_factory.h"
13 #include "ios/chrome/browser/autocomplete/autocomplete_provider_client_impl.h" 13 #include "ios/chrome/browser/autocomplete/autocomplete_provider_client_impl.h"
14 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h" 14 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
15 #include "ios/chrome/browser/bookmarks/bookmarks_utils.h" 15 #include "ios/chrome/browser/bookmarks/bookmarks_utils.h"
16 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 16 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
17 #include "ios/chrome/browser/chrome_url_constants.h" 17 #include "ios/chrome/browser/chrome_url_constants.h"
18 #include "ios/chrome/browser/search_engines/template_url_service_factory.h" 18 #include "ios/chrome/browser/search_engines/template_url_service_factory.h"
19 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h" 19 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h"
20 #include "ios/chrome/browser/ui/omnibox/web_omnibox_edit_controller.h" 20 #include "ios/chrome/browser/ui/omnibox/web_omnibox_edit_controller.h"
21 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 21 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
22 #import "ios/web/public/navigation_manager.h" 22 #import "ios/web/public/navigation_manager.h"
23 #include "ios/web/public/web_state/web_state.h" 23 #include "ios/web/public/web_state/web_state.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 #if !defined(__has_feature) || !__has_feature(objc_arc)
27 #error "This file requires ARC support."
28 #endif
29
26 ChromeOmniboxClientIOS::ChromeOmniboxClientIOS( 30 ChromeOmniboxClientIOS::ChromeOmniboxClientIOS(
27 WebOmniboxEditController* controller, 31 WebOmniboxEditController* controller,
28 ios::ChromeBrowserState* browser_state) 32 ios::ChromeBrowserState* browser_state)
29 : controller_(controller), browser_state_(browser_state) {} 33 : controller_(controller), browser_state_(browser_state) {}
30 34
31 ChromeOmniboxClientIOS::~ChromeOmniboxClientIOS() {} 35 ChromeOmniboxClientIOS::~ChromeOmniboxClientIOS() {}
32 36
33 std::unique_ptr<AutocompleteProviderClient> 37 std::unique_ptr<AutocompleteProviderClient>
34 ChromeOmniboxClientIOS::CreateAutocompleteProviderClient() { 38 ChromeOmniboxClientIOS::CreateAutocompleteProviderClient() {
35 return base::MakeUnique<AutocompleteProviderClientImpl>(browser_state_); 39 return base::MakeUnique<AutocompleteProviderClientImpl>(browser_state_);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const AutocompleteMatch& current_match, 168 const AutocompleteMatch& current_match,
165 bool user_input_in_progress, 169 bool user_input_in_progress,
166 base::string16& user_text, 170 base::string16& user_text,
167 const AutocompleteResult& result, 171 const AutocompleteResult& result,
168 bool is_popup_open, 172 bool is_popup_open,
169 bool has_focus) {} 173 bool has_focus) {}
170 174
171 void ChromeOmniboxClientIOS::OnInputAccepted(const AutocompleteMatch& match) {} 175 void ChromeOmniboxClientIOS::OnInputAccepted(const AutocompleteMatch& match) {}
172 176
173 void ChromeOmniboxClientIOS::OnRevert() {} 177 void ChromeOmniboxClientIOS::OnRevert() {}
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/omnibox/BUILD.gn ('k') | ios/chrome/browser/ui/omnibox/location_bar_view_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698