| 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 2737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2748 | 2748 |
| 2749 void TabContents::OnCrossSiteResponse(int new_render_process_host_id, | 2749 void TabContents::OnCrossSiteResponse(int new_render_process_host_id, |
| 2750 int new_request_id) { | 2750 int new_request_id) { |
| 2751 // Allows the TabContents to react when a cross-site response is ready to be | 2751 // Allows the TabContents to react when a cross-site response is ready to be |
| 2752 // delivered to a pending RenderViewHost. We must first run the onunload | 2752 // delivered to a pending RenderViewHost. We must first run the onunload |
| 2753 // handler of the old RenderViewHost before we can allow it to proceed. | 2753 // handler of the old RenderViewHost before we can allow it to proceed. |
| 2754 render_manager_.OnCrossSiteResponse(new_render_process_host_id, | 2754 render_manager_.OnCrossSiteResponse(new_render_process_host_id, |
| 2755 new_request_id); | 2755 new_request_id); |
| 2756 } | 2756 } |
| 2757 | 2757 |
| 2758 bool TabContents::CanBlur() const { |
| 2759 return delegate() ? delegate()->CanBlur() : true; |
| 2760 } |
| 2761 |
| 2758 gfx::Rect TabContents::GetRootWindowResizerRect() const { | 2762 gfx::Rect TabContents::GetRootWindowResizerRect() const { |
| 2759 if (delegate()) | 2763 if (delegate()) |
| 2760 return delegate()->GetRootWindowResizerRect(); | 2764 return delegate()->GetRootWindowResizerRect(); |
| 2761 return gfx::Rect(); | 2765 return gfx::Rect(); |
| 2762 } | 2766 } |
| 2763 | 2767 |
| 2764 void TabContents::RendererUnresponsive(RenderViewHost* rvh, | 2768 void TabContents::RendererUnresponsive(RenderViewHost* rvh, |
| 2765 bool is_during_unload) { | 2769 bool is_during_unload) { |
| 2766 if (is_during_unload) { | 2770 if (is_during_unload) { |
| 2767 // Hang occurred while firing the beforeunload/unload handler. | 2771 // Hang occurred while firing the beforeunload/unload handler. |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3180 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); | 3184 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); |
| 3181 } | 3185 } |
| 3182 | 3186 |
| 3183 Profile* TabContents::GetProfileForPasswordManager() { | 3187 Profile* TabContents::GetProfileForPasswordManager() { |
| 3184 return profile(); | 3188 return profile(); |
| 3185 } | 3189 } |
| 3186 | 3190 |
| 3187 bool TabContents::DidLastPageLoadEncounterSSLErrors() { | 3191 bool TabContents::DidLastPageLoadEncounterSSLErrors() { |
| 3188 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); | 3192 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); |
| 3189 } | 3193 } |
| OLD | NEW |