| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/tab_contents/tab_contents.h" | 5 #include "chrome/browser/tab_contents/tab_contents.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/file_version_info.h" | 9 #include "base/file_version_info.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 void TabContents::StopFinding(bool clear_selection) { | 969 void TabContents::StopFinding(bool clear_selection) { |
| 970 // When |clear_selection| is true, it means the find string has been cleared | 970 // When |clear_selection| is true, it means the find string has been cleared |
| 971 // by the user, but the UI has not been dismissed. | 971 // by the user, but the UI has not been dismissed. |
| 972 if (!clear_selection) | 972 if (!clear_selection) |
| 973 find_ui_active_ = false; | 973 find_ui_active_ = false; |
| 974 find_op_aborted_ = true; | 974 find_op_aborted_ = true; |
| 975 last_search_result_ = FindNotificationDetails(); | 975 last_search_result_ = FindNotificationDetails(); |
| 976 render_view_host()->StopFinding(clear_selection); | 976 render_view_host()->StopFinding(clear_selection); |
| 977 } | 977 } |
| 978 | 978 |
| 979 void TabContents::GetPageLanguage() { |
| 980 render_view_host()->GetPageLanguage(); |
| 981 } |
| 982 |
| 979 void TabContents::OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg, | 983 void TabContents::OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg, |
| 980 bool success, | 984 bool success, |
| 981 const std::wstring& prompt) { | 985 const std::wstring& prompt) { |
| 982 last_javascript_message_dismissal_ = base::TimeTicks::Now(); | 986 last_javascript_message_dismissal_ = base::TimeTicks::Now(); |
| 983 render_manager_.OnJavaScriptMessageBoxClosed(reply_msg, success, prompt); | 987 render_manager_.OnJavaScriptMessageBoxClosed(reply_msg, success, prompt); |
| 984 } | 988 } |
| 985 | 989 |
| 986 void TabContents::OnJavaScriptMessageBoxWindowDestroyed() { | 990 void TabContents::OnJavaScriptMessageBoxWindowDestroyed() { |
| 987 render_manager_.OnJavaScriptMessageBoxWindowDestroyed(); | 991 render_manager_.OnJavaScriptMessageBoxWindowDestroyed(); |
| 988 } | 992 } |
| (...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2339 NavigationController::LoadCommittedDetails& committed_details = | 2343 NavigationController::LoadCommittedDetails& committed_details = |
| 2340 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); | 2344 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); |
| 2341 ExpireInfoBars(committed_details); | 2345 ExpireInfoBars(committed_details); |
| 2342 break; | 2346 break; |
| 2343 } | 2347 } |
| 2344 | 2348 |
| 2345 default: | 2349 default: |
| 2346 NOTREACHED(); | 2350 NOTREACHED(); |
| 2347 } | 2351 } |
| 2348 } | 2352 } |
| OLD | NEW |