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

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more Android fix Created 6 years, 6 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // defined(OS_WIN) 10 #endif // defined(OS_WIN)
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "chrome/browser/sync/profile_sync_service.h" 78 #include "chrome/browser/sync/profile_sync_service.h"
79 #include "chrome/browser/sync/profile_sync_service_factory.h" 79 #include "chrome/browser/sync/profile_sync_service_factory.h"
80 #include "chrome/browser/sync/sync_ui_util.h" 80 #include "chrome/browser/sync/sync_ui_util.h"
81 #include "chrome/browser/tab_contents/background_contents.h" 81 #include "chrome/browser/tab_contents/background_contents.h"
82 #include "chrome/browser/tab_contents/retargeting_details.h" 82 #include "chrome/browser/tab_contents/retargeting_details.h"
83 #include "chrome/browser/tab_contents/tab_util.h" 83 #include "chrome/browser/tab_contents/tab_util.h"
84 #include "chrome/browser/themes/theme_service.h" 84 #include "chrome/browser/themes/theme_service.h"
85 #include "chrome/browser/themes/theme_service_factory.h" 85 #include "chrome/browser/themes/theme_service_factory.h"
86 #include "chrome/browser/translate/translate_tab_helper.h" 86 #include "chrome/browser/translate/translate_tab_helper.h"
87 #include "chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.h" 87 #include "chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.h"
88 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" 88 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
89 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" 89 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h"
90 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 90 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
91 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" 91 #include "chrome/browser/ui/bookmarks/bookmark_utils.h"
92 #include "chrome/browser/ui/browser_command_controller.h" 92 #include "chrome/browser/ui/browser_command_controller.h"
93 #include "chrome/browser/ui/browser_commands.h" 93 #include "chrome/browser/ui/browser_commands.h"
94 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h" 94 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h"
95 #include "chrome/browser/ui/browser_content_translate_driver_observer.h" 95 #include "chrome/browser/ui/browser_content_translate_driver_observer.h"
96 #include "chrome/browser/ui/browser_dialogs.h" 96 #include "chrome/browser/ui/browser_dialogs.h"
97 #include "chrome/browser/ui/browser_finder.h" 97 #include "chrome/browser/ui/browser_finder.h"
98 #include "chrome/browser/ui/browser_instant_controller.h" 98 #include "chrome/browser/ui/browser_instant_controller.h"
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 SessionServiceFactory::GetForProfileIfExisting(profile_); 1036 SessionServiceFactory::GetForProfileIfExisting(profile_);
1037 if (session_service && !tab_strip_model_->closing_all()) { 1037 if (session_service && !tab_strip_model_->closing_all()) {
1038 session_service->SetSelectedTabInWindow(session_id(), 1038 session_service->SetSelectedTabInWindow(session_id(),
1039 tab_strip_model_->active_index()); 1039 tab_strip_model_->active_index());
1040 } 1040 }
1041 1041
1042 // This needs to be called after notifying SearchDelegate. 1042 // This needs to be called after notifying SearchDelegate.
1043 if (instant_controller_) 1043 if (instant_controller_)
1044 instant_controller_->ActiveTabChanged(); 1044 instant_controller_->ActiveTabChanged();
1045 1045
1046 autofill::TabAutofillManagerDelegate::FromWebContents(new_contents)-> 1046 autofill::ChromeAutofillClient::FromWebContents(new_contents)->TabActivated();
1047 TabActivated();
1048 SearchTabHelper::FromWebContents(new_contents)->OnTabActivated(); 1047 SearchTabHelper::FromWebContents(new_contents)->OnTabActivated();
1049 } 1048 }
1050 1049
1051 void Browser::TabMoved(WebContents* contents, 1050 void Browser::TabMoved(WebContents* contents,
1052 int from_index, 1051 int from_index,
1053 int to_index) { 1052 int to_index) {
1054 DCHECK(from_index >= 0 && to_index >= 0); 1053 DCHECK(from_index >= 0 && to_index >= 0);
1055 // Notify the history service. 1054 // Notify the history service.
1056 SyncHistoryWithTabs(std::min(from_index, to_index)); 1055 SyncHistoryWithTabs(std::min(from_index, to_index));
1057 } 1056 }
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 if (contents && !allow_js_access) { 2419 if (contents && !allow_js_access) {
2421 contents->web_contents()->GetController().LoadURL( 2420 contents->web_contents()->GetController().LoadURL(
2422 target_url, 2421 target_url,
2423 content::Referrer(), 2422 content::Referrer(),
2424 content::PAGE_TRANSITION_LINK, 2423 content::PAGE_TRANSITION_LINK,
2425 std::string()); // No extra headers. 2424 std::string()); // No extra headers.
2426 } 2425 }
2427 2426
2428 return contents != NULL; 2427 return contents != NULL;
2429 } 2428 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698