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

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

Issue 2870050: renderer_host: Remove CanBlur method. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 5 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 (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 2736 matching lines...) Expand 10 before | Expand all | Expand 10 after
2747 2747
2748 void TabContents::OnCrossSiteResponse(int new_render_process_host_id, 2748 void TabContents::OnCrossSiteResponse(int new_render_process_host_id,
2749 int new_request_id) { 2749 int new_request_id) {
2750 // Allows the TabContents to react when a cross-site response is ready to be 2750 // Allows the TabContents to react when a cross-site response is ready to be
2751 // delivered to a pending RenderViewHost. We must first run the onunload 2751 // delivered to a pending RenderViewHost. We must first run the onunload
2752 // handler of the old RenderViewHost before we can allow it to proceed. 2752 // handler of the old RenderViewHost before we can allow it to proceed.
2753 render_manager_.OnCrossSiteResponse(new_render_process_host_id, 2753 render_manager_.OnCrossSiteResponse(new_render_process_host_id,
2754 new_request_id); 2754 new_request_id);
2755 } 2755 }
2756 2756
2757 bool TabContents::CanBlur() const {
2758 return delegate() ? delegate()->CanBlur() : true;
2759 }
2760
2761 gfx::Rect TabContents::GetRootWindowResizerRect() const { 2757 gfx::Rect TabContents::GetRootWindowResizerRect() const {
2762 if (delegate()) 2758 if (delegate())
2763 return delegate()->GetRootWindowResizerRect(); 2759 return delegate()->GetRootWindowResizerRect();
2764 return gfx::Rect(); 2760 return gfx::Rect();
2765 } 2761 }
2766 2762
2767 void TabContents::RendererUnresponsive(RenderViewHost* rvh, 2763 void TabContents::RendererUnresponsive(RenderViewHost* rvh,
2768 bool is_during_unload) { 2764 bool is_during_unload) {
2769 if (is_during_unload) { 2765 if (is_during_unload) {
2770 // Hang occurred while firing the beforeunload/unload handler. 2766 // Hang occurred while firing the beforeunload/unload handler.
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
3157 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); 3153 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save));
3158 } 3154 }
3159 3155
3160 Profile* TabContents::GetProfileForPasswordManager() { 3156 Profile* TabContents::GetProfileForPasswordManager() {
3161 return profile(); 3157 return profile();
3162 } 3158 }
3163 3159
3164 bool TabContents::DidLastPageLoadEncounterSSLErrors() { 3160 bool TabContents::DidLastPageLoadEncounterSSLErrors() {
3165 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); 3161 return controller().ssl_manager()->ProcessedSSLErrorFromRequest();
3166 } 3162 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698