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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 18339006: Rename RenderViewGone IPC/methods to better reflect reality (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for reviews by creis@ and palmer@. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #include <QuartzCore/QuartzCore.h> 7 #include <QuartzCore/QuartzCore.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 } else { 908 } else {
909 [cocoa_view_ setNeedsDisplayInRect:ns_rect]; 909 [cocoa_view_ setNeedsDisplayInRect:ns_rect];
910 } 910 }
911 } 911 }
912 912
913 if (!about_to_validate_and_paint_) 913 if (!about_to_validate_and_paint_)
914 [cocoa_view_ displayIfNeeded]; 914 [cocoa_view_ displayIfNeeded];
915 } 915 }
916 } 916 }
917 917
918 void RenderWidgetHostViewMac::RenderViewGone(base::TerminationStatus status, 918 void RenderWidgetHostViewMac::RenderProcessGone(base::TerminationStatus status,
919 int error_code) { 919 int error_code) {
920 Destroy(); 920 Destroy();
921 } 921 }
922 922
923 void RenderWidgetHostViewMac::Destroy() { 923 void RenderWidgetHostViewMac::Destroy() {
924 AckPendingSwapBuffers(); 924 AckPendingSwapBuffers();
925 925
926 [[NSNotificationCenter defaultCenter] 926 [[NSNotificationCenter defaultCenter]
927 removeObserver:cocoa_view_ 927 removeObserver:cocoa_view_
928 name:NSWindowWillCloseNotification 928 name:NSWindowWillCloseNotification
929 object:popup_window_]; 929 object:popup_window_];
(...skipping 2798 matching lines...) Expand 10 before | Expand all | Expand 10 after
3728 return YES; 3728 return YES;
3729 } 3729 }
3730 3730
3731 - (BOOL)isOpaque { 3731 - (BOOL)isOpaque {
3732 if (renderWidgetHostView_->use_core_animation_) 3732 if (renderWidgetHostView_->use_core_animation_)
3733 return YES; 3733 return YES;
3734 return [super isOpaque]; 3734 return [super isOpaque];
3735 } 3735 }
3736 3736
3737 @end 3737 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698