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

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

Issue 3547008: Handle resize corner layout entirely in the platform BrowserWindow*/BrowserView* code... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 (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 #include <cmath> 7 #include <cmath>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 2922 matching lines...) Expand 10 before | Expand all | Expand 10 after
2933 2933
2934 void TabContents::OnCrossSiteResponse(int new_render_process_host_id, 2934 void TabContents::OnCrossSiteResponse(int new_render_process_host_id,
2935 int new_request_id) { 2935 int new_request_id) {
2936 // Allows the TabContents to react when a cross-site response is ready to be 2936 // Allows the TabContents to react when a cross-site response is ready to be
2937 // delivered to a pending RenderViewHost. We must first run the onunload 2937 // delivered to a pending RenderViewHost. We must first run the onunload
2938 // handler of the old RenderViewHost before we can allow it to proceed. 2938 // handler of the old RenderViewHost before we can allow it to proceed.
2939 render_manager_.OnCrossSiteResponse(new_render_process_host_id, 2939 render_manager_.OnCrossSiteResponse(new_render_process_host_id,
2940 new_request_id); 2940 new_request_id);
2941 } 2941 }
2942 2942
2943 gfx::Rect TabContents::GetRootWindowResizerRect() const {
2944 if (delegate())
2945 return delegate()->GetRootWindowResizerRect();
2946 return gfx::Rect();
2947 }
2948
2949 void TabContents::RendererUnresponsive(RenderViewHost* rvh, 2943 void TabContents::RendererUnresponsive(RenderViewHost* rvh,
2950 bool is_during_unload) { 2944 bool is_during_unload) {
2951 if (is_during_unload) { 2945 if (is_during_unload) {
2952 // Hang occurred while firing the beforeunload/unload handler. 2946 // Hang occurred while firing the beforeunload/unload handler.
2953 // Pretend the handler fired so tab closing continues as if it had. 2947 // Pretend the handler fired so tab closing continues as if it had.
2954 rvh->set_sudden_termination_allowed(true); 2948 rvh->set_sudden_termination_allowed(true);
2955 2949
2956 if (!render_manager_.ShouldCloseTabOnUnresponsiveRenderer()) 2950 if (!render_manager_.ShouldCloseTabOnUnresponsiveRenderer())
2957 return; 2951 return;
2958 2952
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
3333 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); 3327 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save));
3334 } 3328 }
3335 3329
3336 Profile* TabContents::GetProfileForPasswordManager() { 3330 Profile* TabContents::GetProfileForPasswordManager() {
3337 return profile(); 3331 return profile();
3338 } 3332 }
3339 3333
3340 bool TabContents::DidLastPageLoadEncounterSSLErrors() { 3334 bool TabContents::DidLastPageLoadEncounterSSLErrors() {
3341 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); 3335 return controller().ssl_manager()->ProcessedSSLErrorFromRequest();
3342 } 3336 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698