| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #if defined(OS_CHROMEOS) | 7 #if defined(OS_CHROMEOS) |
| 8 // For GdkScreen | 8 // For GdkScreen |
| 9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
| 10 #endif // defined(OS_CHROMEOS) | 10 #endif // defined(OS_CHROMEOS) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "chrome/browser/hung_renderer_dialog.h" | 45 #include "chrome/browser/hung_renderer_dialog.h" |
| 46 #include "chrome/browser/message_box_handler.h" | 46 #include "chrome/browser/message_box_handler.h" |
| 47 #include "chrome/browser/load_from_memory_cache_details.h" | 47 #include "chrome/browser/load_from_memory_cache_details.h" |
| 48 #include "chrome/browser/load_notification_details.h" | 48 #include "chrome/browser/load_notification_details.h" |
| 49 #include "chrome/browser/metrics/metric_event_duration_details.h" | 49 #include "chrome/browser/metrics/metric_event_duration_details.h" |
| 50 #include "chrome/browser/modal_html_dialog_delegate.h" | 50 #include "chrome/browser/modal_html_dialog_delegate.h" |
| 51 #include "chrome/browser/omnibox_search_hint.h" | 51 #include "chrome/browser/omnibox_search_hint.h" |
| 52 #include "chrome/browser/password_manager/password_manager.h" | 52 #include "chrome/browser/password_manager/password_manager.h" |
| 53 #include "chrome/browser/platform_util.h" | 53 #include "chrome/browser/platform_util.h" |
| 54 #include "chrome/browser/plugin_installer.h" | 54 #include "chrome/browser/plugin_installer.h" |
| 55 #include "chrome/browser/popup_blocked_animation.h" |
| 55 #include "chrome/browser/pref_service.h" | 56 #include "chrome/browser/pref_service.h" |
| 56 #include "chrome/browser/printing/print_view_manager.h" | 57 #include "chrome/browser/printing/print_view_manager.h" |
| 57 #include "chrome/browser/profile.h" | 58 #include "chrome/browser/profile.h" |
| 58 #include "chrome/browser/renderer_host/render_process_host.h" | 59 #include "chrome/browser/renderer_host/render_process_host.h" |
| 59 #include "chrome/browser/renderer_host/render_view_host.h" | 60 #include "chrome/browser/renderer_host/render_view_host.h" |
| 60 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 61 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
| 61 #include "chrome/browser/renderer_host/resource_request_details.h" | 62 #include "chrome/browser/renderer_host/resource_request_details.h" |
| 62 #include "chrome/browser/renderer_host/site_instance.h" | 63 #include "chrome/browser/renderer_host/site_instance.h" |
| 63 #include "chrome/browser/renderer_host/web_cache_manager.h" | 64 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 64 #include "chrome/browser/renderer_preferences_util.h" | 65 #include "chrome/browser/renderer_preferences_util.h" |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 ViewMsg_ExecuteCode_Params(request_id, extension_id, host_permissions, | 940 ViewMsg_ExecuteCode_Params(request_id, extension_id, host_permissions, |
| 940 is_js_code, code_string, all_frames))); | 941 is_js_code, code_string, all_frames))); |
| 941 } | 942 } |
| 942 | 943 |
| 943 void TabContents::PopupNotificationVisibilityChanged(bool visible) { | 944 void TabContents::PopupNotificationVisibilityChanged(bool visible) { |
| 944 if (is_being_destroyed_) | 945 if (is_being_destroyed_) |
| 945 return; | 946 return; |
| 946 content_settings_delegate_->SetPopupsBlocked(visible); | 947 content_settings_delegate_->SetPopupsBlocked(visible); |
| 947 if (!dont_notify_render_view_) | 948 if (!dont_notify_render_view_) |
| 948 render_view_host()->AllowScriptToClose(!visible); | 949 render_view_host()->AllowScriptToClose(!visible); |
| 950 if (visible) |
| 951 PopupBlockedAnimation::Show(this); |
| 949 } | 952 } |
| 950 | 953 |
| 951 gfx::NativeView TabContents::GetContentNativeView() const { | 954 gfx::NativeView TabContents::GetContentNativeView() const { |
| 952 return view_->GetContentNativeView(); | 955 return view_->GetContentNativeView(); |
| 953 } | 956 } |
| 954 | 957 |
| 955 gfx::NativeView TabContents::GetNativeView() const { | 958 gfx::NativeView TabContents::GetNativeView() const { |
| 956 return view_->GetNativeView(); | 959 return view_->GetNativeView(); |
| 957 } | 960 } |
| 958 | 961 |
| (...skipping 2276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3235 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); | 3238 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); |
| 3236 } | 3239 } |
| 3237 | 3240 |
| 3238 Profile* TabContents::GetProfileForPasswordManager() { | 3241 Profile* TabContents::GetProfileForPasswordManager() { |
| 3239 return profile(); | 3242 return profile(); |
| 3240 } | 3243 } |
| 3241 | 3244 |
| 3242 bool TabContents::DidLastPageLoadEncounterSSLErrors() { | 3245 bool TabContents::DidLastPageLoadEncounterSSLErrors() { |
| 3243 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); | 3246 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); |
| 3244 } | 3247 } |
| OLD | NEW |